Changing time hh:mm:ss field

akhlaq768

Board Regular
Joined
Jan 17, 2008
Messages
69
I’m currently working on time (hh:mm:ss) field.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p></o:p>
<o:p> </o:p>
I currently have 3 fields: - <o:p></o:p>
<o:p> </o:p>
Time Out (populated)<o:p></o:p>
Time In (populated)<o:p></o:p>
Total Time (empty)<o:p></o:p>
<o:p> </o:p>
The Total Time field is worked out by Time Out less (minus) Time In.<o:p></o:p>
<o:p> </o:p>
=SUM(AZ2-AW2)<o:p></o:p>
<o:p> </o:p>
I’ve noticed that when the time goes over the 24hr (<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:eek:ffice:smarttags" /><st1:time Hour="12" Minute="0">12pm</st1:time>) I get an error, so I use the following<o:p></o:p>
<o:p> </o:p>
=SUM(AZ2-AW2)+1<o:p></o:p>
<o:p> </o:p>
What I need is to show it in hours – i.e. “<st1:time Hour="4" Minute="15">04:15:00</st1:time>” should be shown as 4.25 hours<o:p></o:p>
<o:p> </o:p>
Is this possible? And how?<o:p></o:p>
<o:p> </o:p>
Thanks in advance<o:p></o:p>
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Or you could just format your cell with
[h]:mm:ss
and that would show you the total hours between to given times.

Paul
 
Upvote 0

Forum statistics

Threads
1,214,864
Messages
6,121,986
Members
449,060
Latest member
mtsheetz

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top