Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Typo:
And here's a weird one: 1:06 PM = 1.1 Should be: 1:06 PM = 13.1 -- Biff Microsoft Excel MVP "T. Valko" wrote in message ... =INT(A1/TIME(1,,))+ROUNDUP(((MOD(A1,TIME(1,,)))*24),1) That returns incorrect results. The OP's conversion table starts at 1 minute so does that mean a time like 11:00 PM should return 23.0 ? With the above formula: 11:00 PM = 23.1 9:54 AM = 10.0 9:42 PM = 21.8 4:12 AM = 4.3 And here's a weird one: 1:06 PM = 1.1 11:06 PM = 23.2 Both have the same minute yet return a different decimal. This seems to work: =INT(A1*24)+CEILING(MINUTE(A1)/60,0.1) Format as General or Number 0 minutes doesn't get rounded. 11:00 PM = 23.0 -- Biff Microsoft Excel MVP "Glenn" wrote in message ... dwhapp wrote: I use excel spreadsheet for entering my time worked. I have it currently set to add up hours worked, etc. Is there a formula I can enter to have excel convert from time format to tenths. For example, if I work 8 hours and 12 minutes, I want it to convert it to 8.2 hours. We use the conversion chart below. Any suggestions? 1-6 minutes = .1 7-12 minutes = .2 13-18 = .3 19-24 = .4 25-30 = .5 31-36 = .6 37-42 = .7 43-48 = .8 49-54 = .9 55-60 = 1.0 =INT(A1/TIME(1,,))+ROUNDUP(((MOD(A1,TIME(1,,)))*24),1) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Converting time to decimal | Excel Worksheet Functions | |||
converting a decimal to time | Excel Worksheet Functions | |||
Converting decimal to time | Excel Discussion (Misc queries) | |||
Converting Decimal to Time | Excel Discussion (Misc queries) | |||
Converting from time format to decimal and figuring the difference | Excel Discussion (Misc queries) |