Forum

Notifications
Clear all

Convert decimal time into days AND hours AND time

4 Posts
3 Users
0 Reactions
101 Views
(@dal124)
Posts: 2
New Member
Topic starter
 

Hello,

I would like to change decimal time (positive or negative) into days and hours and minutes.

Ex : 53.5 would be 2 days 5 hours 30 minutes

Ex : -0.25 would be -15 minutes

Thanks!

 
Posted : 21/04/2021 11:27 am
(@khatikvasim13)
Posts: 24
Eminent Member
 

Use this formula

=IF(D8>24,ROUND(D8/24,0)&" Days "&ROUNDDOWN(D8-(ROUND(D8/24,0)*24),0)&" Hours "&ROUND((D8-((ROUND(D8/24,0)*24)+ROUNDDOWN(D8-(ROUND(D8/24,0)*24),0)))*60,0)&" Minutes",ROUND(D8,0)&" Hours "&IFERROR(RIGHT(D8,LEN(D8)-FIND(".",D8)+1)*60,0)&" Minutes")

 
Posted : 22/04/2021 5:28 am
(@dal124)
Posts: 2
New Member
Topic starter
 

Thank you Vasim. Unfortunately the formula only gives me the days and not the days, hours and minutes.

How could I add those?

Thanks!

 
Posted : 22/04/2021 7:07 am
(@purfleet)
Posts: 412
Reputable Member
 

Works perfectly for me - did you look at the attached file?

 
Posted : 22/04/2021 4:22 pm
Share: