ABS function

ABS() function

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 

Return the absolute value of a number

=ABS(number)


The absolute value of a number is the number without its sign. Positive remains positive. Negative turns positive.


ABS is useful when calculating variances, the square root of negative numbers or when building dynamic sentences that require positive numbers.


ABS and numbers.

In the examples below, the ABS function is applied to positive and negative numbers and calculations.

Use the ABS function to return the absolute value of a number.

Use the ABS function to return the absolute value of a number.


Syntax

=ABS(number)

The ABS function consists of 1 argument:

  1. number. Required. The value to be converted into an absolute value.

Try it now!

  • Enter your formulas into the grey cells.

Scope

ABS defines 'the value to convert to an absolute number'.

  • Positive:
=ABS(2) || result is 2. Positives (and zero) stay positive.
  • Negative:
=ABS(-2) || result is 2. Negatives turn positive.
  • Cell reference:
=ABS(C2) || result is the absolute value of the number in cell C2. If cell C2 contains a non-numeric value, #VALUE! is returned.
  • Formula:
=ABS(C2-D2) || result is the absolute value of the result of subtracting the value in cell D2 from the value in cell C2.

Caveats

  • ABS requires a numeric value. Non-numeric values will return #VALUE!.

Common issues

  • #VALUE!: number is not a numeric value.

Functions Category

 


Register (for free!) or Login to access bonus materials

About xlsnippets

Learn how to master functions, charts, pivot tables and more using Excel for Microsoft Office 365. Simple instructions and embedded spreadsheets help you practise the basics.

Latest Updates

26 March 2022
26 March 2022
26 March 2022
25 March 2022
22 March 2022

Coming soon

xlsnippets.com is currently in beta version. More functions and bonus content for registered users will be added weekly. Detailed training courses with additional downloadable resources are also on the horizon!