Lookup for a cell based on value of a different cell

jonhall

New Member
Joined
Jul 27, 2010
Messages
12
Hi,

I have a spreadsheet in which the value of cells in Column B are selected from a drop down box (created through a Data Validation rule) from the values entered in Column M.

I'd like for the values in Column C to come from a drop down box with the relevant entries from the cells to the right of the relevant cell in Column M.

Ie: If the value of B10 is set as what's entered in M1, I'd like the options for C10 to be N1, O1, P1, etc.

Is this possible? And if so, would someone be so kind as to advise me how to do it.

Thanks, in advance for your help.

Jon
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
If I understand your question, you want to be able to select a value from a drop-down list in B and then have the neighboring cell, C, create a drop-down based on B. Correct?

If that's what your looking for, try an INDIRECT function and a set of Named Ranges.

For each item in Column M, make the cells to the right a Named Range with the same name as that item. For example, if M1 = "First" and it has three relevant entries in N1:P1, then name N1:P1 "First". (I like to make the Named Range refer to extra empty cells so I can add items without having to remember to changed the Range.)

Next, in C1, put the formula "=INDIRECT($B$1)" in the Data Validation "Source" box. The "Allow" box should show "List". When you click OK on the Data Validation form it will probably warn you that the "Source evaluates to an error". Just click Yes.

Now when you change the selection in B, the drop-down list in C will update.

If that didn't make sense, send me an e-mail/message and I'll send you a file with an example.
 
Upvote 0
Glad to help. If I remember correctly, it was someone on this board who first taught me this trick.
 
Upvote 0

Forum statistics

Threads
1,224,584
Messages
6,179,691
Members
452,938
Latest member
babeneker

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
Back
Top