Skip to main content
SheetCraft
Math Function · beginner

ABS Function in Google Sheets

Returns the absolute value of a number.

Syntax

ABS(value)

Returns: Non-negative version of value.

Excel equivalent: ABS (identical)

Parameters

NameRequiredDescription
valueRequiredThe number.

Examples

Variance regardless of direction

=ABS(A2 - B2)

Distance between values, always positive.

Sum of magnitudes

=SUMPRODUCT(ABS(A2:A100))

Sums treating negatives as positive.

Detect change

=ABS(A2 - A1) > 0.01

TRUE if value moved in either direction.

When to use an alternative

  • SQRT(x^2)Rare power math.

Common errors and how to fix them

  • Lost sign matters

    Cause: Discards direction.

    Fix: Keep SIGN(x) alongside if needed.

Related functions

Frequently Asked Questions

ABS vs SIGN?

ABS is magnitude. SIGN is just sign (-1/0/1). SIGN(x) * ABS(x) = x.

Source: Google Sheets official function reference.