Remember Me?

#1
July 13th 05, 07:55 PM
 tkaplan Posts: n/a
switch statement

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

#2
July 13th 05, 08:12 PM
 JE McGimpsey Posts: n/a

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.

 Posting Rules Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are On

 Similar Threads Thread Thread Starter Forum Replies Last Post PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM barb in NC Excel Worksheet Functions 2 March 31st 05 08:01 PM Paul Excel Worksheet Functions 6 February 13th 05 05:23 PM drjayhawk25 Excel Discussion (Misc queries) 0 February 7th 05 05:19 PM lintan Excel Worksheet Functions 1 December 2nd 04 11:31 PM

All times are GMT +1. The time now is 03:50 AM.