Hello Everyone!
I am trying to calculate net working hours difference between 2 cells where date and time are in "12/21/2012 1:32:00 PM" format, so say for example cell A2 has "12/21/2012 1:32:00 PM" and b2 has "12/24/2012 6:24:00 AM" then i would like to know a formula which should give me the output as mentioned below:
cell a2 = 12/21/2012 1:32:00 PM; cell b2 = 12/24/2012 6:24:00 AM = cell c2 should give me the difference as 16:52
cell a2 = 12/20/2012 1:00:00 PM; cell b2 = 12/21/2012 6:00:00 PM = cell c2 should give me the difference as 29:00
Would be really great if someone can guide me, i just tried with this formula (hour(b2-a2)&":"&minute(b2-a2)) however it only works correctly if the difference between time are in AM & PM, but the formula does not work for the second scenario about where it gives me 05:00 which is wrong.
Regards,
Navin
Bookmarks