Displaying Days as Hours

Kizzz

New Member
Joined
Jan 19, 2005
Messages
4
I'm trying to format cells in hours:minutes (HH:MM) so that days show up as hours. In other words, if you want to enter 30 hours, the cell would show 30:00 instead of just adding a day and calling it 6:00. I have no need for the dates themselves, I just need the hours:minutes relative to a starting point.

Any ideas?

Thanks in advance.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Thanks Fairwinds. That solved part of my problem. I'm trying to allow a user to enter "days" "hour" "minutes" and "seconds" in different cells, and then have Excel return the total time in the format of hh:mm:ss. I calculate the total hours in another cell (days * 24 + hours) and then try to use that cell to create my time.

Formatting the cell for [hh]:mm:ss works if I enter the data in the cell itself, but the "TIME" function divides all of the hours greater than 23 by 24 and returns the remainder as the hour value.

From the excel help:
"Hour is a number from 0 (zero) to 32767 representing the hour. Any value greater than 23 will be divided by 24 and the remainder will be treated as the hour value. For example, TIME(27,0,0) = TIME(3,0,0) = .125 or 3:00 AM."

Does anybody know a way around this or another formula that will read my total hours (greater than 24)/minutes/seconds and return to me "hh:mm:ss" with the hours being total hours elapsed?
 
Upvote 0

Forum statistics

Threads
1,214,989
Messages
6,122,622
Members
449,093
Latest member
catterz66

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