Applies ToExcel for Microsoft 365 Excel for Microsoft 365 for Mac Excel for the web Excel 2024 Excel 2024 for Mac Excel 2021 Excel 2021 for Mac Excel 2019 Excel 2016

This article describes the formula syntax and usage of the ABS function in Microsoft Excel.

Description

Returns the absolute value of a number. The absolute value of a number is the number without its sign.

Syntax

ABS(number)

The ABS function syntax has the following arguments:

  • Number    Required. The real number of which you want the absolute value.

Example

Copy the table below, and paste into cell A1 in Excel. You may need to select any cells that contain formulas and press F2 and then Enter to make the formulas work. You may also want to make the columns wider to make your worksheet easier to read.

Data

-4

Formula

Description

Result

=ABS(2)

Absolute value of 2

2

=ABS(-2)

Absolute value of -2

2

=ABS(A2)

Absolute value of -4

4

See Also

Subtract numbers

Multiply and divide numbers in Excel

Calculate percentages

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.