Dates and Times are interesting items within spreadsheets. Ok, I’m a tad sad, or geeky, or both. It you enter dates and times into a spreadsheet correctly then you can use them to the fullest.

I am going to assume they have been entered correctly. What I would like to do is take two dates, such as 05/01/2011 14:00 and 06/01/2011 16:30 and find out how much time is between them, not the number of days.

I start with simple subtraction. If the first date is in A2 and the second B2 the calculation would look like this:

=B2-A2

What I get usually looks terrible. Now comes the formatting. Regular date and time formatting is based on 24 hours in a day. So when time gets to hour 24 it will add another day to the date end. Some people format the date to a number to get an idea but I prefer something called cumulative time. Time over 24 hours.

Change the format to the custom format of [hh]:mm you can use 1 h if you like, both this will show the number of hours between the dates now.