time calculations
Posted by Brian on December 04, 2000 7:35 PM
Is there a formula that will calculate the hours between two times when the second time is past 12:00 AM (midnight) and the first time is either AM or PM the previous day.
1) If A1= 10:00 AM and B1= 1:00 AM (the following day) Total Should = 15 Hrs
2) If A1= 4:00 PM and B1= 1:00 AM (the following day) Total Should = 9 Hrs.
I need a formula that will work for either case. I checked the excel functions but didnt find one that worked. I can get No. 2 to work but cant get a formula that works for both.
Thanks to anyone who can help.