Skip to main content
 

How to calculate the absolute difference between two values/times in Excel?

Author: Sun Last Modified: 2024-08-23

To calculate the difference between two values or times may be easy for most of Excel users, but have you tried to calculate the absolute difference between values as below screenshot shown? Here in this article, I introduce some tricks on quickly getting the ABS difference between values in Excel.
calculate the absolute difference

Calculate absolute differences with formula

Calculate absolute differences with Kutools for Excelgood idea3


Calculate absolute differences with formula

To calculate the absolute differences, you just need one of below formulas, paste one of below formulas to the blank cell you want to place the result, press Enter key, and drag fill handle over cells needed this formula.

=ABS(A2-B2)

=IF(B2>=A2,B2-A2,A2-B2)
Calculate absolute differences with formula

Note: if you want to calculate the absolute difference between times, you only can apply =ABS(A2-B2) and then format values as time. See screenshot:
format values as time if calculate the absolute difference between times


Calculate absolute differences with Kutools for Excel

If you have Kutools for Excel installed, its Change Sign of Values utility also can quickly calculate the absolute differences between two numbers.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Enhanced with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

After installing Kutools for Excel, please do as below:

1. Select a cell that you want to place the differences, type =F2-G2, and drag fill handle down to fill this formula to the cells.
enter a simple formula to get the normal difference of two numbers

2. Click Kutools > Content > Change Sign of Values, in the Change Sign of Values dialog, check Change all negative values to positive option. See screenshot:
click Change Sign of Values feature and set options in the dialog box

3. Click Ok or Apply, and a dialog pops out to remind you some information, click Yes to continue. See screenshot:
a dialog pops out to remind some information

Now all negative differences have been converted to absolute.
all negative differences have been converted to absolute


Sum absolute value in Excel

If there are two list of values mixed with negative and positive numbers, now you want to get the absolute sum of two list in the same row, how can you quickly solve? The Sum absolute values utility in Kutools for Excel can do you a favor without remember formula. . Click for full-featured 30 days free trial!
doc sum abs
 
Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days.

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!