Converting hours/minutes to working days/hours/minutes

JohnRuddy

New Member
Joined
Dec 1, 2017
Messages
2
Hi
I have a spreadsheet which records hours worked and produces a running total of whether this is up or down on contracted hours (37.5 hours a week). The working day is 7 hours 30 minutes.

This total is expressed in hours:minutes (see below). I am trying to get a formula which will show this has days in one cell, hours in the next and minutes in a third. I've tried many of the solutions listed on here (and elsewhere), without success.

In the table below, 66:10 should be converted into 8 days 6 hours 10 minutes.

Actual No of hours worked during weekHours required by contractBalance of time, +/-Running total of overtime
60:45:00
MondayTuesdayWednesdayThursdayFriday
27-Nov-1728-Nov-1729-Nov-1730-Nov-171-Dec-17
Start7:157:157:157:107:25
Lunch start12:0012:0012:4512:0012:00
Lunch stop12:1512:1513:0012:1512:15
Finish16:0016:0016:3016:0016:00
Time OffActual ContractBalanceTotal
Total8:308:309:008:358:2042:55:0037:30:005:25:0066:10

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

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
66:10 should be converted into 8 days 6 hours 10 minutes.

Hi, welcome to the posting side of the forum. Maybe you can adapt this to your set-up - note: You may need to change the format of the cells in which you place the formulas to general or number.


Excel 2013/2016
ABCD
1TotalDaysHoursMinutes
266:10:008610
Sheet1
Cell Formulas
RangeFormula
B2=INT(A2/"7:30")
C2=INT(MOD(A2,"7:30")*24)
D2=MOD(MOD(A2,"7:30"),"1:00")*1440
 
Last edited:
Upvote 0
I came across this solution for an almost identical requirement I had. My implementation works ok except that when the number of days is an exact multiple of the hours and minutes for a standard day (in my case "9:30") rather than display 1 day 0 Hours and 0 Minutes for 1 business day, it displays 1 day 9 hours and 30 minutes effectively adding an additional day. Is there a way of refining the above formulas so this doesn't happen?
Thanks
 
Upvote 0
Hi, welcome to the forum!

Is there a way of refining the above formulas so this doesn't happen?

You could try like this instead:


Excel 2013/2016
ABCD
1TotalDaysHoursMinutes
209:30100
319:00200
428:30300
538:00400
647:30500
757:00600
866:30700
Sheet1
Cell Formulas
RangeFormula
B2=INT(A2/"9:30")
C2=INT((A2-(B2*"9:30"))*24)
D2=INT((A2-("9:30"*B2)-(C2/24))*1440)
 
Upvote 0

Forum statistics

Threads
1,215,011
Messages
6,122,677
Members
449,092
Latest member
tayo4dgacorbanget

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