Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in


Excel ABS function

doc abs function 1


Syntax and Arguments

Usage and Examples


The ABS function returns the absolute value of a number. Negative numbers will be converted to positive with this function, but positive numbers and zero number will be unaffected.

Syntax and arguments

Formula syntax



  • Number: Required. The number whose absolute value you want to get.

Return Value

The ABS function returns the absolute value of the given number.

Usage and Examples

In this section, I provide some practical applications for using the ABS function in Excel.

Example 1: Get the absolute value of numbers (convert negative numbers to positive numbers)



Explain: Convert the number in A2 to absolute value (positive value).

You can drag the fill handle down to the cells which you want to apply this formula.
doc abs function 2

Example 2: Get sun/average of absolute value in Excel

Get the absolute sum of numbers in a range.

Array formula syntax:


Press Shift + Ctrl + Enter keys at the same time to get the correct calculation

Take getting absolute sum of numbers in A2:A7 as instance, enter formula


And press Shift + Ctrl + Enter keys simultaneously to get the correct result.
doc abs function 3


1. you also can use this formula =SUMPRODUCT(ABS(A2:A7)) and press the Enter key to get absolute sum.

2. If you want to get absolute average value of numbers in a range, use this array formula
and press Shift + Ctrl + Enter keys simultaneously.

Example 3: Get absolute difference between numbers/dates in Excel

Formula Syntax



Number1, number2: Required. The two numbers whose absolute difference you want to get.

Take below screenshot for instance:

Calculate the absolute difference of A2 and B2, use this formula

doc abs function 4

Tip: if you want to calculate the absolute difference between two times, use =ABS(number1-number2), and format the results to time.

Sample File
doc sample file

Excel Productivity Tools

300 Advanced Features Help You To Stand Out From Crowd

Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300 powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) and save 70% time.

  • Designed for 1500 work scenarios, helps you solve 80% Excel problems.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands.
  • Become an Excel expert in 3 minutes. No longer need to remember any painful formulas and VBA codes.
  • 60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years.

Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Office Tab Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.