» Avoiding Errors When Subtracting Times
CATEGORY - Excel Date & Time Formulas
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:
- Special Edition Using Microsoft Outlook 2002
- How to Read A Financial Report
- Accounting and Financial Fundamentals for Nonfinancial Executives
- Infectious Greed: How Deceit and Risk Corrupted the Financial Markets
- Microsoft Excel 2002 Visual Basic for Applications Step by Step
- Lower Your Taxes - Big Time! : Wealth-Building, Tax Reduction Secrets from an IRS Insider
No comments have been submitted.

