ABS Function

Excel Functions › Math & Trig

All versions Math & Trig

The Excel ABS function returns the absolute value of a number — the distance from zero, always positive. It strips the sign off negatives and leaves positives unchanged.


Quick answer:
=ABS(-7) = 7

Syntax

=ABS(number)
ArgumentDescription
numberRequiredThe number whose absolute (unsigned) value you want.

How to use it

ABS removes the minus sign from a number: negatives become positive, positives stay the same, and zero stays zero.

=ABS(-7) // = 7
=ABS(7) // = 7
=ABS(0) // = 0

The most common use is measuring the size of a difference regardless of direction — for example, how far an actual figure is from a target, whether it came in over or under: =ABS(actual - target).

Pair ABS with SIGN. Any number equals SIGN(n) * ABS(n). ABS gives you the magnitude; SIGN gives you the direction (-1, 0, or 1).

Try it: interactive demo

Live demo

Pick a ABS example to see the formula and its result.

Result:

Practice workbook

📊
Download the free ABS practice workbook
Every example on this page, ready to open in Excel — plus practice challenges with answers on a separate tab. No sign-up required.

Frequently asked questions

What does ABS do to a positive number?
Nothing — positive numbers (and zero) are returned unchanged. ABS only affects negatives, flipping them to positive.
How do I find the difference between two numbers ignoring sign?
Wrap the subtraction in ABS: =ABS(A1-B1). This returns the gap as a positive number whether A1 or B1 is larger.
Does ABS work on text or dates?
ABS needs a number. A date works (dates are stored as serial numbers), but non-numeric text returns a #VALUE! error. Convert text to a number first.
What is the difference between ABS and SIGN?
ABS returns the magnitude (always ≥ 0); SIGN returns only the direction: -1 for negatives, 0 for zero, 1 for positives. Together they reconstruct the original number.

Master functions like this in one day

This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related functions: SIGN · MOD · INT · ROUND · SQRT