Time format DD is restarting after 31 days back to day 1

tarek

New Member
Joined
Nov 21, 2006
Messages
24
Hi,

I am trying to sum data in a column which is formatted as [HH]:MM; as the number of hours are in thousands now I thought it'll be helpful to give the user the opportunity to see data in days to better quantify the data point. To do so I convert the data from [HH]:MM to DD:HH however now when the hours are equivalent to more than 31 days, the cell is restarting at 1.
Example:

[HH]:MM = 2207:00
DD:HH = 31:23

[HH]:MM = 2208:00
DD:HH = 01:00 (instead of moving to 32)

How can I prevent the DD:HH from restarting?

Thanks for all your help on this
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
You can't use the day format to do that because it is used to specify days of the month which only go up to 31.

But how do you get that 2207 hours is 31 days, 23 hours? It's closer to 92 days.
 
Upvote 0
You can't use the day format to do that because it is used to specify days of the month which only go up to 31.

But how do you get that 2207 hours is 31 days, 23 hours? It's closer to 92 days.

Hi Scott, I am using Excel 2010. let's say you have cell A1 formatted as [HH]:MM and Cell B1 formatted as dd:hh
now in cell A1 enter 2207:00 and in B1 enter =A1
A1 now will show 31:23
 
Upvote 0
Andrew, the issue am having now is that excel is treating results from =INT(A1)&":"&ROUND(MOD(A1,1)*24,0) as text and I am not able to graph results. any suggestions how to resolve this?

Thank you
 
Upvote 0
Wh don't you chart the original data? Or to convert the result of the formula to a value:

=(INT(A1)&":"&ROUND(MOD(A1,1)*24,0))+0
 
Upvote 0
Hi Andrew, currently the information is being entered in decimal example 1.75 hours is really 1:45; therefore, I created a column translating decimal hours to more user friendly format by dividing decimal hours by 24 and formatting the column in [HH]:MM . when creating the dashboard several views are depended on aggregate view of total hours. My graphs are PivotCharts where the hours is based on the additional column I created. I thought translating hours to days would make the graph more effective and this is how the issue came up.

I do appreciate you taking the time to help.. Thank you Sir.

Tarek
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,847
Members
452,361
Latest member
d3ad3y3

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