Practice free

ABS function

ABS strips the minus sign from a number and returns its positive value. It is handy for measuring the size of a gap or variance regardless of direction.

Example

Read it as a sentence: take -5.5 and drop the minus sign, which gives 5.5.

Practice this in the app

Syntax

ABS(number)

number (required)
Any number or a reference to one.

Returns: The number without its sign (always zero or positive).

What Excel actually returns

Each formula below was run in desktop Excel. The result is exactly what the cell showed, errors included.

FormulaExcel showsCase
=ABS(0.5) 0.5 Positive
=ABS(0) 0 Zero
=ABS(-0.5) 0.5 Negative
=ABS(2) 2 Larger value
=ABS("0.5") 0.5 Text number "0.5"
=ABS(TRUE) 1 TRUE
=ABS("abc") #VALUE! Non-numeric text
=ABS(Data!E4) #DIV/0! Error cell propagates

The Data sheet these formulas read

A cell that starts with = holds that formula.

Watch out for

  • Text that is not a number returns #VALUE!.

Where it works

Excel
ABS is in every version of Excel from 2007 on.
Google Sheets
Same name, same behaviour for everyday use.

Part of Math and trig functions. Every result on this page was measured in desktop Excel, build 16.0.20527. Last updated .