dates

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Dates

Dates

resolvedResolved · 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 courses

 

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
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Colouring cells containing formulas

Cells 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.

Follow these steps:
1. Choose Edit > Go To menu, or press either F5 or Ctrl+G. Excel displays the Go To dialog box.
2. Click Special. Excel displays the Go To Special dialog box.
3. Select the Formulas radio button option.
4. Select OK.

At this point, every formula cell in the worksheet is selected, and those cells can be coloured formatted as desired.

View all Excel hints and tips


Server loaded in 0.08 secs.