disturbedone
Vendor
Hi,
I've seen various posts on this and also various websites with various solutions to calculating time between two date/time values that go over midnight. The problem is that all of these solutions only deal with it going from one day to the next not, as in my case, over 2/3/5/10 days.
There are ways to tell Excel to see if the first time is greater than the second and if so add 1 day to the value but this doesn't work if it spans more than 1 day.
eg Date/Time 1 = 9/9/09 10:00 AM
Date/Time 2 = 10/10/09 11:00 PM
The result should be 31 days and 1 hour. But using various methods all I can get Excel to show is 13 hours.
Is there an easy formula for this? I've tried =A2-A1, =A2+(A2>A1)-A1 and a few others.
Cheers
I've seen various posts on this and also various websites with various solutions to calculating time between two date/time values that go over midnight. The problem is that all of these solutions only deal with it going from one day to the next not, as in my case, over 2/3/5/10 days.
There are ways to tell Excel to see if the first time is greater than the second and if so add 1 day to the value but this doesn't work if it spans more than 1 day.
eg Date/Time 1 = 9/9/09 10:00 AM
Date/Time 2 = 10/10/09 11:00 PM
The result should be 31 days and 1 hour. But using various methods all I can get Excel to show is 13 hours.
Is there an easy formula for this? I've tried =A2-A1, =A2+(A2>A1)-A1 and a few others.
Cheers