The information in this article applies to:
SUMMARYUsing Microsoft Excel, you can write a formula to calculate the hours and minutes in a given period of time, based on an hourly workday. This can be useful for calculating time spent on a project. MORE INFORMATION
The following example calculates elapsed time based on an 8 hour
workday that runs from 8:00 AM to 5:00 PM with 1 hour off for lunch.
The formulas in cells A6 and A7 calculate the number of hours in the time interval. The formula in cell A8 calculates any remainder in minutes. The formula in cell A10 combines the results of the three formulas, using concatenation to display the total time in "hh:mm" format. NOTE: The results of this formula include weekends and holidays. In version 4.0 of Excel you can modify the forumla to exclude weekends and holidays. To exclude weekends and holidays, replace the formula in cell A6 with: A6: =ABS((NETWORKDAYS(A1,A2)-1)*A3) NETWORKDAYS() returns the number of full working days (excluding weekends and holidays) between two dates. This function is not available in versions earlier than Excel 4.0. REFERENCES
"Microsoft Excel Function Reference," version 4.0, pages 1, 95, 222,
244, 275, 284
Additional query words: 7.00 elapsed change difference 3.0 3.00 4.0 4.00
Keywords : |
Last Reviewed: March 26, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |