G Guest Aug 2, 2007 #1 For example if I have, say, the value 4.88 in a cell I want to convert it to 4h 53'
P Peo Sjoblom Aug 2, 2007 #2 Divide by 24 =A1/24 format as time and you'll get 04:52:48 if you really want 04:53 you would need to round, but then you need to decide what rounding to use, nearest quarter hour, nearest half hour etc
Divide by 24 =A1/24 format as time and you'll get 04:52:48 if you really want 04:53 you would need to round, but then you need to decide what rounding to use, nearest quarter hour, nearest half hour etc
G Guest Aug 2, 2007 #4 Cool! Works well... Now, how do I roundup to nearest quarter hour? Regards, Bo0ts
G Guest Aug 3, 2007 #5 =CEILING(A1/24,1/96) Bo0ts said: Cool! Works well... Now, how do I roundup to nearest quarter hour? Regards, Bo0ts Click to expand...
=CEILING(A1/24,1/96) Bo0ts said: Cool! Works well... Now, how do I roundup to nearest quarter hour? Regards, Bo0ts Click to expand...
P Peo Sjoblom Aug 3, 2007 #6 One way =ROUND(A1/24/(1/96),)*(1/96) will round to the nearest quarter hour in time format, a couple of other ways =ROUND(A1/24/TIME(,15,),)*TIME(,15,) =ROUND(A1*4,)/4/24 the latter does the rounding first on the decimals and then converts it to time
One way =ROUND(A1/24/(1/96),)*(1/96) will round to the nearest quarter hour in time format, a couple of other ways =ROUND(A1/24/TIME(,15,),)*TIME(,15,) =ROUND(A1*4,)/4/24 the latter does the rounding first on the decimals and then converts it to time
P Peo Sjoblom Aug 3, 2007 #7 You said roundup didn't you. The formulas I provided round to the nearest quarter =ROUNDUP(A1/24/(1/96),)*(1/96) or =CEILING(A1/24,1/96) -- Regards, Peo Sjoblom
You said roundup didn't you. The formulas I provided round to the nearest quarter =ROUNDUP(A1/24/(1/96),)*(1/96) or =CEILING(A1/24,1/96) -- Regards, Peo Sjoblom