askXL
Question EN

How do I get the absolute value in Excel?

Answer

The ABS function returns the absolute value of a number. For example, =ABS(-15) returns 15, and =ABS(15) also returns 15.

Detailed explanation

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.

02.02.2026 Excel / Google Sheets

Need a custom formula?

Describe your task — AI will generate a working formula in seconds

Generate Formula

You've used your free requests

Sign in to continue generating formulas — it's free!

More requests
Save formulas to favorites
Access formula history
Continue with Google

By signing in, you agree to our Privacy Policy

Great formula!

Sign in to save formulas and get more free requests

Sign in for free

Save to favorites

Sign in to save formulas and access them anytime

Continue with Google