Cellwise Try it free

Math function

Excel ABS function

ABS returns a number without its sign, so -45 becomes 45 and 45 stays 45. Use it when you care about how big a difference is, not which direction it went, like budget variances or tolerance checks.

=ABS(number)

Arguments

number
The number or cell you want the absolute value of.

ABS examples

Every result below was calculated from this sample sheet by the same spreadsheet engine the Cellwise app uses.

ABC
1CategoryBudgetActual
2Marketing50005620
3Travel32002740
4Software18001795
5Training25002150
  1. =ABS(C3-B3)

    Result: 460

    Travel came in under budget. ABS shows the size of the gap as a positive number.

  2. =ABS(C2-B2)

    Result: 620

    Marketing went over by the same kind of amount, and ABS gives a positive answer here too.

  3. =IF(ABS(C4-B4)<=10,"On target","Check")

    Result: On target

    Flag a line as on target if it is within $10 either way.

  4. =ROUND(ABS(C5-B5)/B5,2)

    Result: 0.14 shows as 14% with Percent format

    Divide by the budget to see the miss as a share. Training was off by 14%.

How to use ABS

  1. Click an empty cell.
  2. Type =ABS(
  3. Select a cell or type a calculation like C2-B2.
  4. Close the bracket and press Enter.

Common ABS mistakes

Summing variances without ABS

A +500 and a -500 cancel to 0. Wrap each difference in ABS if you want the total size of the misses.

Hiding a real direction

ABS throws away the sign. Keep a separate column if readers need to know over versus under.

Passing a range

ABS(B2:B5) spills a column of results in Excel 365 rather than one number. Wrap it in SUM or SUMPRODUCT for a total.

ABS FAQ

How do I make a negative number positive in Excel?

Use =ABS(A1). It turns -120 into 120 and leaves positive numbers unchanged.

How do I sum absolute values in Excel?

Use =SUMPRODUCT(ABS(A2:A10)). In Excel 365 =SUM(ABS(A2:A10)) also works.

How do I check if two numbers are within a tolerance?

Use =ABS(A1-B1)<=0.05, changing 0.05 to your tolerance. It returns TRUE or FALSE.

Practice ABS in these lessons

Guides that use ABS

Related functions

Updated