#1   Report Post  
Old July 13th 05, 07:55 PM
tkaplan
 
Posts: n/a
Default 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
View this thread: http://www.excelforum.com/showthread...hreadid=386912


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

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM
How to calculate a sum as one outcome of an IF statement barb in NC Excel Worksheet Functions 2 March 31st 05 08:01 PM
What statement to use? Paul Excel Worksheet Functions 6 February 13th 05 05:23 PM
How do I fix a circular reference in a financial statement? drjayhawk25 Excel Discussion (Misc queries) 0 February 7th 05 05:19 PM
Statement lintan Excel Worksheet Functions 1 December 2nd 04 11:31 PM


All times are GMT +1. The time now is 04:46 AM.

Powered by vBulletin® Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright 2004-2021 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"

 

Copyright © 2017