Syntax
| Parameter | Description |
|---|---|
| number | Parameter of the ABS function. |
Examples
Get absolute difference between two values
=ABS(A2-B2)
Convert negative numbers to positive
=ABS(A2)
Calculate variance magnitude
=IF(ABS(A2-B2)>100, "Significant", "Normal")
Common Errors
The argument is text, not a number. ABS requires a numeric value or a cell reference containing a number.
Tips
=ABS(A1-B1)/A1 gives the absolute percentage change, always positive regardless of increase or decrease.
=ABS(A1-B1)+ABS(A2-B2) calculates Manhattan distance. For Euclidean distance, use SQRT(A^2+B^2).
=ABS(actual-expected)<tolerance is a common pattern for checking if a value is within an acceptable range.
Try ABS in Viztab
Import your data and use ABS with 370+ other formulas. No signup required.
Open Viztab