Convert Hours to Days

Robby19

Board Regular
Joined
Mar 19, 2018
Messages
227
Hello,

I have a table the looks like the following;
[TABLE="width: 500"]
<TBODY>[TR]
[TD]Jan
[/TD]
[TD]Feb
[/TD]
[TD]Mar
[/TD]
[TD]Total
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]11.75
[/TD]
[TD]6.00
[/TD]
[TD]17.75
[/TD]
[/TR]
[TR]
[TD]21.50
[/TD]
[TD]19.75
[/TD]
[TD][/TD]
[TD]41.25
[/TD]
[/TR]
</TBODY>[/TABLE]
These are total hours calculations.

How do I convert the Total column to days? I got the Total/24, but I need it to look like the following. For example, 17.75 should read 18 Hours and 41.25 should read 1 Day XX Hours (pardon my math :rofl:)
 
Last edited:

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Unknown
ABCDE
1JanFebMarTotal
211.75617.750 Days and 18 Hours
321.519.7541.251 Days and 18 Hours
Sheet1
Cell Formulas
RangeFormula
E2=INT(D2/24)&" Days and "&ROUNDUP(MOD(D2,24),0)&" Hours"
 
Last edited:
Upvote 0
This is great! One last question. Is there a way to total the data in this column to show an overall amount of time, for example with the above calculation it should read "2 Days and 12 Hours."
 
Upvote 0
Just kidding. I'm an idiot. I can just total the Total column and use this same formula for that. Don't mind me.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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