Hello Everyone. I am facing an uphill task in to creating formula to calculate duration of time taken in hours using 24hours input. Can someone show me how to do so? Thanks for your time
Hello Everyone. I am facing an uphill task in to creating formula to calculate duration of time taken in hours using 24hours input. Can someone show me how to do so? Thanks for your time
Enter time as TIME format not TEXT
03:00
16:45
then time difference
=MOD(C4-B4,1)
For total format cell as [h]:mm
Use this formula:
=MOD(C4-B4,1)*24
Format as General or Number
Biff
Microsoft MVP Excel
Keep It Simple Stupid
Let's Go Pens. We Want The Cup.
to keep the same format try
Please Login or Register to view this content.
Hi Toonies
Your formula works terrific for B4 & C4. It does not work from B5 & C5 onward as they exceed into the following days.
Is it possible to calculate till next day up to 24hrs?
Eg: Time start: 2045hrs Time End: 1930hrs Duration: 22.75hrs
If the Time end is larger than Time start, it will consider completion on that day and calculate directly?
Eg: Time Start: 2045hrs Time End: 2200hrs Duration: 1.25hrs
Last edited by maxonline; 04-02-2016 at 10:33 AM. Reason: Elaborate details
Hello
If you're not going to use John's suggestion of using time formats, and using text, then you could amend Tony's idea with the TIMEVALUE function, for example:
Formula:Please Login or Register to view this content.
DBY
Last edited by DBY; 04-02-2016 at 11:10 AM.
The Formula does work
If you check your Start and End Times in
C5 You have input as '330 instead of 330 Remove the ' from infront of the Time
Do the same for B6, C6, C7
You have for some reason put a ' in front of your Time
Glad we could help.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks