Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I want a quick way to enter a time in a cell.
example: F5 can either be 00:45 or 00:30 If the value 1 is entered into G5 then F5 will return 00:45 and if the value 2 is entered into G5 then F5 will return 00:30 what formula do I need for F5 Thank you, your help is appreciated. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() "Gotroots" wrote in message ... I want a quick way to enter a time in a cell. example: F5 can either be 00:45 or 00:30 If the value 1 is entered into G5 then F5 will return 00:45 and if the value 2 is entered into G5 then F5 will return 00:30 what formula do I need for F5 Thank you, your help is appreciated. Try this formula in cell F5: =CHOOSE(G5,"00:45","00:30") Hope this helps / Lars-Ã…ke |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try the below formula and format the cell to time format
=IF(G5=1,45/1440,IF(G5=2,30/1440,"")) OR =IF(G5=1,TIMEVALUE("00:45"),IF(G5=2,TIMEVALUE("00: 30"),"")) OR =IF(G5=1,TIME(0,45,0),IF(G5=2,TIME(0,30,0),"")) -- Jacob "Gotroots" wrote: I want a quick way to enter a time in a cell. example: F5 can either be 00:45 or 00:30 If the value 1 is entered into G5 then F5 will return 00:45 and if the value 2 is entered into G5 then F5 will return 00:30 what formula do I need for F5 Thank you, your help is appreciated. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have just put a file up for you at:-
http://www.pierrefondes.com/ Item number 29 towards the top of the page (at the top at the moment) where you can see your example working successfully. Take a look at Sheet1. I have done things slightly differently from Jacob. Done in EXCEL 2007. Please hit Yes if my comments have helped. Thanks. "Gotroots" wrote: I want a quick way to enter a time in a cell. example: F5 can either be 00:45 or 00:30 If the value 1 is entered into G5 then F5 will return 00:45 and if the value 2 is entered into G5 then F5 will return 00:30 what formula do I need for F5 Thank you, your help is appreciated. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formula to add depending upon value entered | Excel Worksheet Functions | |||
Formula to display text depending upon date entered in a cell | Excel Worksheet Functions | |||
Colouring a row depending on data entered in a column | Excel Worksheet Functions | |||
Formula is entered but will not display result | Excel Worksheet Functions | |||
How do I automatically shade cells depending on data entered? | Excel Worksheet Functions |