FormulaCamp
Completed
← Google Sheets functions
Google Sheets function

ABS in Google Sheets

ABS with worked examples you can test in the live grid. The argument details are in the Excel guide.

In Google Sheets

The arguments and common errors are covered in the ABS Excel guide; check the function help in Google Sheets for its own argument list.

Worked examples in Google Sheets

Remove a negative sign

A
1Variance
2-12

Formula: C2: =ABS(A2)

Result: 12

The magnitude is twelve regardless of direction.

Positive input

A
1Variance
27

Formula: C2: =ABS(A2)

Result: 7

A positive number is unchanged.

Absolute difference

AB
1PlanActual
210086

Formula: D2: =ABS(A2-B2)

Result: 14

The formula measures the gap without labeling it positive or negative.

Try it

A tiny spreadsheet with example data. Edit the formula or any number and see the result.

Formula in D2: =ABS(A4)

Example spreadsheet for ABS
ABCD
1NumberStepResult
21234.567504.7
3175
4-4.712
51449
62.53
75012
Result in D2: 4.7

Google Sheets is used here only as a descriptive product name. FormulaCamp is not affiliated with Google.