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

dates

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

Excel tip:

Change the default location for opening and saving spreadsheets

If you are always opening spreadsheets from and/or saving documents to a specific location that is not My Documents, save time by setting this folder as the default for opening files from and saving files to.

Here's how:
1. Go to Tools - Options.

2. Select the General tab.

3. Enter the pathname of the folder you wish to make the default in the Default File Location box (hint: it will be easier to use Windows Explorer to navigate to this folder, then copy and paste the pathname from the address bar at the top of the Windows Explorer screen).

4. Click OK.

You have now changed the default folder for opening and saving spreadsheets.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.