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

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
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,572
Messages
6,120,306
Members
448,955
Latest member
Dreamz high

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