ABS
Returns the absolute value of a number, removing any negative sign.
Spreadsheet editor
Spreadsheet editor
Syntax
=ABS(number)
Returns: Number Arguments
| Argument | Required | Description |
|---|---|---|
| number | Yes | The number you want the absolute value of. |
About
This comes up a lot in variance analysis: =ABS(actual - budget) tells you how far off you are, whether you're over or under budget. It's also useful for deviation calculations, distance measurements, and any case where you only care about the gap, not the direction.
Pair ABS with SQRT for distance formulas, or combine it with SUMPRODUCT to sum absolute deviations across a range. If you need to know whether a value is positive or negative (rather than removing the sign), try SIGN instead.
Exercises using ABS
Examples
Negative, zero, and positive inputs
Spreadsheet editor
ABS removes direction info
Spreadsheet editor
Summing all variances with SUMPRODUCT
Spreadsheet editor
Watch out for
Non-numeric input returns an error
If the cell contains text or something ABS can't read as a number, you'll get a #VALUE! error.
→ Check the input first with ISNUMBER, or wrap the formula in IFERROR: =IF(ISNUMBER(A1), ABS(A1), 0)
ABS only takes a single value
=ABS(A1:A10) won't process the whole range in older Excel versions. You'll only get the result for the first cell.
→ In Excel 365, ABS spills over a range automatically. In older versions, use Ctrl+Shift+Enter to enter it as an array formula, or use SUMPRODUCT(ABS(A1:A10)) to work with a range.
Using ABS when you need SIGN
If you need to know whether a number is positive or negative (not just its size), ABS removes exactly the information you want.
→ Use SIGN instead. It returns 1 for positive, -1 for negative, and 0 for zero.