Convert Hr M to time

taffjohn

New Member
Joined
Oct 18, 2018
Messages
4
Hi

I have the following information of contractors of internal and external staff and when the sheet comes to me i get thousands of lines but i need to total the columns up into Days, Hours,Minutes but i need a little help with converting the cells because there is so much i need to change the way the cell shows its info, ive attached file to show my problem

Arrivel TimeDeparture TimeTotal hrs intTotal hrs ext
13/12/2018 14:2913/12/2018 15:491h 20min1h 20min
13/12/2018 14:2113/12/2018 16:081h 46min
13/12/2018 12:5413/12/2018 14:291h 34min1h 34min
Total??

<colgroup><col span="2"><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Try this in columns E,F,G,H and I.

=LEFT(A2,10)=RIGHT(A2,5)=LEFT(B2,10)=RIGHT(B2,5)=H2-F2
=LEFT(A3,10)=RIGHT(A3,5)=LEFT(B3,10)=RIGHT(B3,5)=H3-F3
=LEFT(A4,10)=RIGHT(A4,5)=LEFT(B4,10)=RIGHT(B4,5)=H4-F4
=SUM(I2:I4)

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Maybe try using a custom format, like DD hh:mm

Code:
[TABLE="width: 576"]
<tbody>[TR]
[TD="class: xl63, width: 171"]Arrivel Time[/TD]
[TD="class: xl63, width: 171"]Departure Time[/TD]
[TD="class: xl63, width: 115"]Total hrs int[/TD]
[TD="class: xl63, width: 119"]Total hrs ext[/TD]
[/TR]
[TR]
[TD="class: xl64, align: right"]13/12/2018 14:29[/TD]
[TD="class: xl64, align: right"]14/12/2018 15:49[/TD]
[TD="class: xl65, align: right"]01 01:20[/TD]
[TD="class: xl65, align: right"]01 01:20[/TD]
[/TR]
[TR]
[TD="class: xl64, align: right"]13/12/2018 14:21[/TD]
[TD="class: xl64, align: right"]13/12/2018 16:08[/TD]
[TD="class: xl65, align: right"]00 01:47[/TD]
[TD="class: xl63"][/TD]
[/TR]
[TR]
[TD="class: xl64, align: right"]13/12/2018 12:54[/TD]
[TD="class: xl64, align: right"]13/12/2018 14:29[/TD]
[TD="class: xl65, align: right"]00 01:35[/TD]
[TD="class: xl65, align: right"]00 01:35[/TD]
[/TR]
[TR]
[TD="class: xl63"]Total[/TD]
[TD="class: xl63"][/TD]
[TD="class: xl65, align: right"]01 04:42[/TD]
[TD="class: xl65, align: right"]01 02:55[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
this is what it came back with

Arrivel TimeDeparture TimeTotal hrs intTotal hrs ext
13/12/2018 14:2913/12/2018 15:491h 20min1h 20min43447.60356944443447.65969629626852
13/12/2018 14:2113/12/2018 16:081h 46min43447.59856944443447.6725.6725-69443.3
13/12/2018 12:5413/12/2018 14:291h 34min1h 34min43447.53765046343447.60356944418981
Total??-23610.3

<colgroup><col span="2"><col><col><col span="5"></colgroup><tbody>
</tbody>
 
Upvote 0
Is there any way i could attach my excel file i have and you might be able to work it out easier?
 
Upvote 0
To get your Total Hours etc you simply need to say Dep Time minus Arr Time, then sum for Totals and Format cells as I said above.

Check my sig for options to post a sample of data.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,659
Messages
6,120,786
Members
448,992
Latest member
prabhuk279

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