98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel Training and help » Dates
Dates
Resolved · Low Priority · Version 2007
Tom has attended:
Excel Advanced course
Dates
hello,
whats the best way to calculate the difference between two dates?
is it a case of converting the dates back to the Excel serial numbers and then simply subtracting one from the other, or is there a quicker way?
thanks
tom
RE: Dates
Hi Tom,
Thank you for your question.
If you have a hire date in cell C1 and a finish date in cell D1, you can use one of the following formulas to calculate how many days there are bewteen the two dates:
1. = D1-C1
The answer should appear as a date so then format the cell as a number. This answer includes Saturdays and Sundays.
2. = networkdays(C1,D1)
The answer is the number of working days so it excludes the weekend days but not inclusive of Bank holidays. If you had the bank holiday dates and the holiday dates the employee has taken in that time period listed down a column(E1:E12) update the formula to this:
3. = networkdays(C1,D1,E1:E12)
The answer would now be the number of working days between the two dates excluding the bank holidays and any personal holiday.
I hope this answers your question.
Regards
Simon
RE: Dates
thanks for the reply, pity my reponse wasnt quite as fast as yours...
i have another question related to this.
i have two dates and times that i want to work out the difference between.
presumably the simple calculation of first value cell minus the 2nd would give you the answer.
how do i display the resultant value?
for instance
29/06/09 20:00:33
30/06/09 13:00:33
thanks again
tom
Fri 20 Nov 2009: Automatically marked as resolved.
Training information:
See also:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Colouring cells containing formulasCells in a worksheet can contain values or they can contain formulas. You may wish to identify all the cells in your worksheet that contain formulas by colouring those cells. |