SheetsLessons
Math & Counting function

ABS function in Google Sheets

ABS returns the absolute value of a number, its size without the sign. It's used to measure how far apart two values are regardless of which one is bigger.

Syntax

=ABS(value)
value
The number (or calculation) to make positive.

Practice ABS

Task 1 of 1

How far off was the forecast, regardless of direction? Return the absolute difference between actual and forecast. Answer in D2.

D2
fx

Tip: while typing a formula, click a cell or drag across cells to insert references. Press Enter to check, and Tab to accept a function suggestion.

ABS examples

Each example below runs against this sample sheet. The results are calculated by the same engine as the practice grid.

AB
1ValueOther
2-7.453
312.54
4812
52.50
61234.5675
Assorted numbers
FormulaResultWhat it shows
=ABS(A2)7.45Removes the minus sign.
=ABS(B2 - A5)0.5Distance between two values, always positive.
=ABS(A3)12.5Positive numbers are unchanged.

Tips and common mistakes

  • Great for forecast errors and variances: =ABS(actual - forecast).
  • To flag big misses, combine with IF: =IF(ABS(C2-B2) > 100, "Check", "").

Related functions