Data Validation List, IF Statements, and Iteration

thefreeline

New Member
Joined
Nov 23, 2011
Messages
1
Hello,

I have a data validation list in Sheet1:A2 that will change a set of data in C2:F10 when a selection is made.

In Sheet2, I would like to create a formula that says something like this (I know how it would work in SQL, just not Excel):

WHERE S1:A2 = 'x' CHOOSE C2 (value associated with 'x')
WHERE S1:A2 = 'y' CHOOSE C2 (value associated with 'y')

An IF statement here doesn't seem to work because it only returns a value IF a certain value is selected in S1:A2. I need to choose the corresponding cell value AS-IF I certain list item were chosen.

I'll try to attach a picture of what I have in mind...

6391014271
aJKBTe

http://www.flickr.com/photos/thefreeline/6391014271/
 

Some videos you may like

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Jerry Sullivan

MrExcel MVP
Joined
Mar 18, 2010
Messages
8,787
Hello and Welcome to the Board,

The link you posted doesn't seem to be working, but your description was pretty clear.

If I'm understanding you correctly, a common way to handle this is through the use of one of the lookup functions.

If your DV list source is Sheet1!$AA$2:$AA$10, place your associated values in Sheet1!$AB$2:$AB$10, then in Sheet2 use the formula:

=VLOOKUP(Sheet1!A2,Sheet1!$AA$2:$AB$10,2,FALSE)
 

Watch MrExcel Video

Forum statistics

Threads
1,122,604
Messages
5,597,128
Members
414,126
Latest member
jellevansoelen

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top