Click here to Skip to main content
15,895,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can anyone here please tell me how can i find duration difference between two time columns in excel...?


i have two Time datatype columns with 24 hour format.

Thanks for having a look !!
Posted

1 solution

You may subtract one time from another.

But, the result must be positive. So, test the values before subtraction. For example,

=IF(B2>C2;B2-C2;C2-B2)

Then you use Excel functions to get time difference in hours, minutes, or seconds:

=HOUR(E2)
=MINUTE(E2)
=SECOND(E2)
 
Share this answer
 
Comments
Karan Fatehgarhia 29-Nov-13 14:38pm    
yeah This works for me , Thank you very much for your precious time :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900