Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a spreadsheet that has hours and minutes manually inputed. Is there a
formula that will convert the following: 38:90 (38 hours and 90 minutes) to 39 hours and 30 minutes? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Probably not the most efficient, but this works...
=(LEFT(A1,FIND(":",A1)-1)+INT(MID(A1,FIND(":",A1)+1,4)/60)) &" hours and "&MOD(MID(A1,FIND(":",A1)+1,4),60)&" minutes" Rick "Beep Beep" wrote in message ... I have a spreadsheet that has hours and minutes manually inputed. Is there a formula that will convert the following: 38:90 (38 hours and 90 minutes) to 39 hours and 30 minutes? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
=LEFT(A1,2)/24+RIGHT(A1,2)/(24*60) and format as [h]:mm
-- Gary''s Student - gsnu200783 "Beep Beep" wrote: I have a spreadsheet that has hours and minutes manually inputed. Is there a formula that will convert the following: 38:90 (38 hours and 90 minutes) to 39 hours and 30 minutes? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
What if the user enters 123:123? You formula can be patched like this...
=LEFT(A1,FIND(":",A1)-1)/24+MID(A1,FIND(":",A1)+1,9)/(24*60) However, I assumed from the OP's post that he wanted the result to read like a sentence (xx hours and yy minutes) and not like a time value. Rick "Gary''s Student" wrote in message ... =LEFT(A1,2)/24+RIGHT(A1,2)/(24*60) and format as [h]:mm -- Gary''s Student - gsnu200783 "Beep Beep" wrote: I have a spreadsheet that has hours and minutes manually inputed. Is there a formula that will convert the following: 38:90 (38 hours and 90 minutes) to 39 hours and 30 minutes? |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
An excellent improvement!
Any idea of why the TIME() function does not work?? -- Gary''s Student - gsnu200783 "Rick Rothstein (MVP - VB)" wrote: What if the user enters 123:123? You formula can be patched like this... =LEFT(A1,FIND(":",A1)-1)/24+MID(A1,FIND(":",A1)+1,9)/(24*60) However, I assumed from the OP's post that he wanted the result to read like a sentence (xx hours and yy minutes) and not like a time value. Rick "Gary''s Student" wrote in message ... =LEFT(A1,2)/24+RIGHT(A1,2)/(24*60) and format as [h]:mm -- Gary''s Student - gsnu200783 "Beep Beep" wrote: I have a spreadsheet that has hours and minutes manually inputed. Is there a formula that will convert the following: 38:90 (38 hours and 90 minutes) to 39 hours and 30 minutes? |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
An excellent improvement!
Thanks! Any idea of why the TIME() function does not work?? My guess is that the 90, being greater than the maximum number of minutes for the minutes field, makes it look like plain text to Excel rather than a time (apparently colons alone is not enough to make Excel treat an entry as a time value). Rick Gary''s Student - gsnu200783 "Rick Rothstein (MVP - VB)" wrote: What if the user enters 123:123? You formula can be patched like this... =LEFT(A1,FIND(":",A1)-1)/24+MID(A1,FIND(":",A1)+1,9)/(24*60) However, I assumed from the OP's post that he wanted the result to read like a sentence (xx hours and yy minutes) and not like a time value. Rick "Gary''s Student" wrote in message ... =LEFT(A1,2)/24+RIGHT(A1,2)/(24*60) and format as [h]:mm -- Gary''s Student - gsnu200783 "Beep Beep" wrote: I have a spreadsheet that has hours and minutes manually inputed. Is there a formula that will convert the following: 38:90 (38 hours and 90 minutes) to 39 hours and 30 minutes? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I have 3053 minutes and I want to convert to hours and minutes | Excel Discussion (Misc queries) | |||
I need to convert 157.25 minutes, into hours, minutes and seconds. | Excel Discussion (Misc queries) | |||
Convert total minutes to hours and minutes | Excel Discussion (Misc queries) | |||
How do I convert 184 minutes into 3:04 (3 hours:4 minutes) in EXCE | Excel Discussion (Misc queries) | |||
Convert hours and minutes in time format into fractions of hours.. | Excel Worksheet Functions |