@T. Valko, thank you soooo much. I have no idea why it works, but I knew it could be done, just not by me.
You're amazing!
Even though it doesn't look like it, all you're doing is subtracting one number from another.
You're subtracting the start date/time from the end date/time.
In Excel dates are really just integer numbers formatted to look like a date. These numbers are also known as the date serial number. They are simply the count of days starting from a base date.
The default base date is Jan 1 1900. This is date serial number 1. Each successive day the count increases by 1 such that:
1/1/1900 = 1
1/2/1900 = 2
1/3/1900 = 3
1/4/1900 = 4
1/5/1900 = 5
1/1/1970 = 25569
1/1/2000 = 36526
5/21/2011 = 40684
You can see the date serial number by entering a date in a cell then changing the format of that cell to General.
In Excel time is also just a number that's formatted to look like a time.
In Excel time is the fractional part of a day. A day has the numeric value of 1. Time starts at 12:00 AM and has the numeric value of 0. 12:00 PM is the mid point of a day and has the numeric value 0.5.
12:00 AM = 0
3:00 AM = 0.125
8:15 AM = 0.34375
12:00 PM = 0.5
8:00 PM = 0.833333333333333
Again, You can see the time numeric value by entering a time in a cell then changing the format of that cell to General.
So, a date/time is the date serial number plus the numeric time value
4/15/2011 8:15 AM = date serial number 40648 + numeric time value 0.34375 = 40648.34375
4/17/2011 8:00 PM = date serial number 40650 + numeric time value 0.8333333333 = 40650.8333333333
To find the difference we simply subtract:
40650.8333333333 - 40648.34375 = 2.48958333333576
2.48958333333576 formatted as the time format [h]:mm = 59:45