» Avoiding Errors when Subtracting Times
CATEGORY - Excel Formula and Function
VERSION - All Microsoft Excel Versions
In order to calculate the difference between two time values, the earlier time must be subtracted from the later one.
However, when the later time refers to the following day (with respect to the earlier time), an error will result.
We want to create a formula that avoids these errors when calculating the difference between any two time values.
Solution:
Use the MOD function as shown in the following formula:
=MOD(B2-A2,1)
Note:
Apply hh:mm format to all cells containing the formula.
Book Store:
Recommended Books:
- The Intelligent Investor: The Definitive Book On Value Investing, Revised Edition
- Monte Carlo Methods in Finance
- Fish! A Remarkable Way to Boost Morale and Improve Results
- Essentials of Investments with Standard & Poor's Educational Version of Market Insight + PowerWeb + Stock Trak Coupon
- Special Edition Using Microsoft Access 2002
- Millionaire Real Estate Mentor : The Secrets of Financial Freedom through Real Estate Investing
No comments have been submitted.


