
π This article includes 1 downloadable practice file β
In this article
ABS returns a number without its sign: β250 becomes 250.
Syntax
=ABS(number)
| Argument | What it means |
|---|---|
number |
Any number. |
Examples
Example 1
=ABS(B2-C2)
Size of a difference, whichever way round.
Example 2
=IF(ABS(B2-C2)<=1, "OK", "Check")
Reconciliation with a βΉ1 tolerance for rounding.
ABS in practice
Where you will use it
- Size of a budget variance regardless of over/under spend
- Distance between two readings, e.g. stock count vs system stock
- Tolerance checks: flag differences above Rs 100 either way
Worked example
Variance size, ignoring whether it is over or under budget.
| Head | Budget | Actual | Formula | Result |
|---|---|---|---|---|
| Rent | 50000 | 47500 | =ABS(C2-B2) | 2500 |
| Travel | 20000 | 26300 | =ABS(C3-B3) | 6300 |
| Salaries | 410000 | 410000 | =ABS(C4-B4) | 0 |
Results calculated in Excel.
Mistakes people make
| Mistake | What to do instead |
|---|---|
| Using ABS on the total of variances | Take ABS of each row first, then SUM, or overs and unders cancel out |
| Losing the direction completely | Keep a signed variance column too; ABS only shows size |
Related functions
ROUND Β· SIGN Β· IF
π Part of the free Excel course: Beginner β Expert Β· Try it in the Formula Lab or ask the AI Helper.
Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.
π Practice files for this article
- πPractice workbook: Math & rounding24 tasks on realistic sales data β type your formula, the Check column turns green when it is right. Answers sheet included.β¬ XLSX Β· 35 KB
Free to use for learning. Files with macros (.bas) are plain text β import them with Alt+F11 β File β Import File, and always test on a copy.
Atul (AJ) builds office-automation and local-first AI tools as Atulya AI, and works with Excel, SAP and Oracle EPM every day. He writes about the shortcuts, macros and automations that actually save time β plus the occasional wacky fact. Videos on YouTube: Lazy Automator AI (@LazyAutomatorAI).
More posts by Atul βBuild this skill next
This page is a quick function reference. Use it for syntax, then practise the function in a broader workflow.
Stuck on a step? Ask a question and the AI answers using this article.