ABS function
the absolute value of a number.
Math and trigonometry
Where can you use it?
Reporting, manufacturing and engineering teams. When a total, rounding step or numerical transformation is needed, use the example to see which operation fits your inputs.
Scenario in the workbook
Measure the magnitude of an inventory discrepancy. Keep the raw sign in a separate column to tell shortages from surpluses.
A worked example from the workbook
| Row | A |
|---|---|
| 6 | Count discrepancy |
| 7 | -24 |
| 8 | 12 |
| 9 | 0 |
Shortage
=ABS(A7)Expected result24
See the inputs and instructions for all 3 examplesSyntax
ABS(number)
Copyable formulas
English Excel · en-US
=ABS(-24)Turkish Excel · tr-TR
=MUTLAK(-24)Expected result
24
Worked examples
Measure the magnitude of an inventory discrepancy. Keep the raw sign in a separate column to tell shortages from surpluses.
Open the English sheet. Inputs begin at A6. F7:F9 show the live results and G7:G9 show the original results for comparison.
| Row | A |
|---|---|
| 6 | Count discrepancy |
| 7 | -24 |
| 8 | 12 |
| 9 | 0 |
| Case | Formula | Expected result |
|---|---|---|
| Shortage | =ABS(A7) |
24 |
| Surplus | =ABS(A8) |
12 |
| Match | =ABS(A9) |
0 |