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