» Calculating Absolute Difference between Two Time Values
CATEGORY - Excel Date & Time Formulas
VERSION - All Microsoft Excel Versions
Problem:Columns A & B contain pairs of time values from the same day.
We want to create a formula that always subtracts the earlier time from the later one, regardless of which column each is in.
Solution 1:
Use the IF function as shown in the following formula:
=IF(B2>=A2,B2-A2,A2-B2)
Solution 2:
Use the ABS function as shown in the following formula:
=ABS(B2-A2)
Note: Apply hh:mm format to cells containing the formulas.
Book Store:
Recommended Books:
- Millionaire Real Estate Mentor : The Secrets of Financial Freedom through Real Estate Investing
- Special Edition Using Microsoft Word 2002
- Advanced modelling in finance using Excel and VBA
- Financial Statements: A Step-By-Step Guide to Understanding and Creating Financial Reports
- Microsoft Access Version 2002 Step by Step
No comments have been submitted.

