How do I get the absolute value in Excel?
The ABS function returns the absolute value of a number. For example, =ABS(-15) returns 15, and =ABS(15) also returns 15.
The absolute value is a number without its sign. In Excel, use the ABS function for this.
Syntax
=ABS(number)
Examples
=ABS(-15)→ 15=ABS(15)→ 15=ABS(A1-B1)→ difference between cells without the sign
When It's Useful
- Calculating deviations: when you care about the size of the difference, not the direction
- Checking tolerances:
=ABS(actual-target) - Distance between points:
=ABS(X1-X2)
Combined with Other Functions
=IF(ABS(A1-B1)<0.01, "Equal", "Different")
Compares numbers with a tolerance for small differences.
Need a custom formula?
Describe your task — AI will generate a working formula in seconds
Generate Formula