aenimosity7
New Member
- Joined
- May 15, 2011
- Messages
- 2
I have a cell (Cell 1) with a drop down list containing three choices. Each choice is the name of a range (I.e. Range 1, Range 2, and Range 3). I have another cell (Cell 2) which uses the INDIRECT function to reference Cell 1. What I want to do is take Cell 2 one step further by saying "if Cell 1 equals Range 1, do X function to Range 1, if Cell 1 equals Range 2, do Y function to Range 2, if Cell 1 equals Range 3, do Z function to Range 3. To make things more complicated, I don't want to use nested if statements because I would rather not hard code the commands into the formula. One idea I had was to make a two column table, with Range 1, Range 2, etc., in column 1, and the command in column 2 (i.e. do X for Range 1, do Y for Range 2, etc.). That would allow me to add additional ranges and corresponding commands in the future. However, I have had no luck trying that strategy.
Can anyone think of a way to do this? I can post a workbook if that would help. Thanks!
Can anyone think of a way to do this? I can post a workbook if that would help. Thanks!