dates
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

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

Dates

resolvedResolved · Low Priority · Version 2007

replyReply Fri 13 Nov 2009, 09:20Delegate Tom said...

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

For upcoming training course dates see: Pricing & availability

replyReply Fri 13 Nov 2009, 16:37Trainer Simon said...

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

replyReply Fri 27 Nov 2009, 12:49Delegate Tom said...

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.

 

Please browse our web site to find out more about
excel classes and other Microsoft training courses.

Excel tip:

Generate randon numbers

Some types of analysis require you to use randomly generated numbers. You can also use randomly generated numbers to quickly populate an Excel spreadsheet. There's an easy function you can use to do this automatically. Here are a few of the ways you can use it:

Type =RAND() in a cell to generate a number between 0 and 1.
Type =RAND()*100 to generate a number between 1 and 100.

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard