Excel
ABS function in Excel
Returns the absolute value of a number
=ABS(number)ABS syntax and parameters
One argument, one required.
- numbernumberRequired
The real number of which you want the absolute value.
ABS examples
Formulas you'll actually reuse.
The size of a variance, ignoring its direction:
=ABS(B2 - C2)Result
340Total absolute error between forecast and actual:
=SUMPRODUCT(ABS(B2:B50 - C2:C50))Result
4120
ABS in Google Sheets
Same name — your formula ports as-is.
Try ABS in the playground
Edit the example — nothing to install.
Preloaded with the ABS formula from Example 1 — change anything and watch it respond.
Loading the editor…
Related functions
More ways Excel gets this done.
- ACOSReturns the arccosine of a numberMathGoogle Sheets
- ACOSHReturns the inverse hyperbolic cosine of a numberMathGoogle Sheets
- ACOTReturns the arccotangent of a numberMathGoogle Sheets
- ACOTHReturns the hyperbolic arccotangent of a numberMathGoogle Sheets
- AGGREGATEReturns an aggregate in a list or databaseMathNo Google Sheets equivalent
- ARABICConverts a Roman number to Arabic, as a numberMathGoogle Sheets