In Excel: use =ABS(number) — it strips the sign and returns the magnitude, so both 42 and -42 return 42.
On this page8
Syntax
Arguments
| Argument | required / optional | Description |
|---|---|---|
number | required | The value whose sign should be discarded. |
Related functions
Select the cell for the unsigned value and type =ABS(.
Select the number or the difference, such as A2-B2.
Press Enter; negatives come back positive and positives are unchanged.
Wrap it in a comparison to build a tolerance check, or in SUMPRODUCT to total magnitudes across a range.
Need it as an auditable file?
Ships inside the linked template — formula-driven, unlocked, audit-ready.
What this does
ABS returns a number without its sign. Its everyday use is not arithmetic curiosity but comparison: the size of a variance matters more than its direction when you are asking "which figures moved most", and a tolerance check ("is this within 0.5 of target either way") is naturally written with ABS. It is also how you make a difference sortable regardless of direction. Note the name collision — ABS is unrelated to absolute cell references written with dollar signs, which is a different concept entirely and a common source of confusion when searching. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make. Treat “abs formula in excel” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected formula shows up while it is still harmless. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That turns a calculation you can defend to a CFO or an auditor into a method you can reuse, explain, and defend when the workbook leaves your screen.
A worked example
Budget variance in C2 might be -1,240 or +1,240; =ABS(C2) returns 1240 either way, so the column sorts by size of miss. A tolerance test reads =IF(ABS(A2-B2)<=0.5, "OK", "Check"). Summing the total movement regardless of direction: =SUMPRODUCT(ABS(D2:D50)). ABS turns "how far off" into a number you can sort, threshold and total, which is what variance and tolerance reporting need. If there is any chance you will reuse this, drop it into a small template tab right now: a labelled input area on the left and the formula beside it, checked once against the tool above. Next time the same question comes up, the answer is a single paste away instead of a rebuild from memory.
In Google Sheets
If you are in Google Sheets rather than Excel, the good news is that the formula shown here is identical and the workflow barely changes — menus sit across the top instead of in a ribbon, and a few function names differ slightly, but anything you build here moves across with little or no rework. Keep this page bookmarked for the next time the same question comes up. Better still, repeat the steps once in your own workbook — doing it yourself is what turns a copied answer into something you remember. Treat “abs formula in excel” as a small building block rather than a chore. Once the inputs sit in their own cells and the formula reads from them, the same setup answers a dozen related questions with a tweak, and Excel keeps every dependent figure current as the data changes. The tool above is there so you can rehearse and verify before committing anything to a real workbook; the steps and worked example are there so the logic sticks. Get it right once and it stops costing you time — it starts saving it, every time the question comes back around.
Common mistakes
- Confusing
ABSwith absolute cell references ($A$1) — they share a word and nothing else. - Applying
ABSbefore summing when the signs were meaningful, which turns a net figure into a gross one and hides offsetting movements. - Passing text:
ABSreturns#VALUE!on anything that is not a number.
Frequently asked questions
How do I make a negative number positive in Excel?
=ABS(A2) returns the value without its sign. To flip a sign instead, multiply by -1.
Is ABS related to absolute references?
No. ABS is a maths function for magnitude; absolute references are the $ signs that stop a reference shifting when you copy a formula.
How do I sum the sizes of changes regardless of direction?
Use =SUMPRODUCT(ABS(range)), which applies ABS across the whole range before totalling it.