Validation list with array formula (index/ match)?

vbeee

New Member
Joined
Oct 28, 2014
Messages
5
Hi All,

I am trying to achieve the following, using the table below as expample:

Set up in D1 a validation list (dropdown) that pulls the right values from column B, based on the filter on A (from user choice in C1).

E.g. if user inputs "Joe" in C1, then the validation list in D1 should have {apple, corn, pear}.

[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]Joe[/TD]
[TD]apple[/TD]
[TD][user enters column A value here][/TD]
[TD][validation list with filtered column B values here--depending on user input on C1][/TD]
[/TR]
[TR]
[TD]Joe[/TD]
[TD]corn[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Joe[/TD]
[TD]pear[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Mary[/TD]
[TD]apple[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Mary[/TD]
[TD]corn[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Question: what should be the formula for the validation list in D1, taking into account that it seems that array formulas do not work there (i.e. index/match)

Finally, I do not want to have separate columns or sheets to precalculate stuff. Also, order is not significant.

I tried I am busting my head but cannot make it work...

Thanks!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Try:

=OFFSET($B$1,MATCH($C$1,$A:$A,0)-1,0,COUNTIF($A:$A,$C$1),1)

Adjust to match your ranges/sheet names.
 
Upvote 0

Forum statistics

Threads
1,226,739
Messages
6,192,740
Members
453,755
Latest member
IQBS

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