Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]() is there a switch statement that i can use in a cell as a formula? i have a value in col a. in col e i want that if the value in a is 1, it should return the value in col B, if it's 2, return col C if it's 3, return col D. I know that i can do this with a nested if statement but i prefer switch - if someone can please tell me how to do this i would really appreciate it. Thank you. -- tkaplan ------------------------------------------------------------------------ tkaplan's Profile: http://www.excelforum.com/member.php...o&userid=22987 View this thread: http://www.excelforum.com/showthread...hreadid=386912 |
#2
![]() |
|||
|
|||
![]()
One way:
E1: =CHOOSE(A1,B1,C1,D1) In article , tkaplan wrote: is there a switch statement that i can use in a cell as a formula? i have a value in col a. in col e i want that if the value in a is 1, it should return the value in col B, if it's 2, return col C if it's 3, return col D. I know that i can do this with a nested if statement but i prefer switch - if someone can please tell me how to do this i would really appreciate it. Thank you. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Do I need a sumif or sum of a vlookup formula? | Excel Worksheet Functions | |||
How to calculate a sum as one outcome of an IF statement | Excel Worksheet Functions | |||
What statement to use? | Excel Worksheet Functions | |||
How do I fix a circular reference in a financial statement? | Excel Discussion (Misc queries) | |||
Statement | Excel Worksheet Functions |