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.
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. Check the referenced cells, argument order and result type in your workbook. Start with the worked example before changing an input, then compare the changed result with the calculation you expected. An error value or a result of a different type is a reason to inspect the inputs and arguments.
In Google Sheets
Google Sheets support for this task has not been verified. Check the function, arguments and workflow in the target product before transferring the example. Matching formula notation does not establish identical behaviour. 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. For “abs formula in excel”, keep the input cells and the result visible while you check the formula in Excel. Follow the worked example and change one input at a time. The steps explain the workbook calculation; this page does not run a live calculator for that task.
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.