Hours to Days Hours Minutes Conversion Frustration

TurtleontheRun

New Member
Joined
Sep 7, 2017
Messages
6
Hello,

I have a sum of hours in [h]:mm and need to convert it to Days Hours Minutes. Just selecting a different format doesn't work (ridiculous! :nya:) but understandable. INT and MOD I've used before but in some cases it will make say 26 hours as one day and one hour when I need it to be 1 day and 2 hours. I've used a Rounddown (=Rounddown(time/1, 1), (Rounddown(time-days)/0.042, 0) and Roundup(((Time-days-)-(Hours*0.042))/0.00069, 0) but it seems to break around either the day or minute formulas. I've supplied a simple table below to give a better idea. Any suggestions? Thanks in advance!

[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Time[/TD]
[TD]Days[/TD]
[TD]Hours[/TD]
[TD]Mins[/TD]
[/TR]
[TR]
[TD]26:40[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Note:
This will eventually end in a =B2&U2&" "&C2&U3&" "&D2&U4 to end in 1d 2h 40mins
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Cell format works for me


Book1
DEFG
620:0006:4026:40:001d 2h 40mins
718:0013:2031:20:001d 7h 20mins
806:0012:1118:11:000d 18h 11mins
Week 28
Cell Formulas
RangeFormula
F6=SUM(D6:E6)
G6=F6


Format in col G is
d"d" h"h" m"mins"
 
Upvote 0
Glad we could help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,184
Members
452,615
Latest member
bogeys2birdies

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