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}.

ABCD
Joeapple[user enters column A value here][validation list with filtered column B values here--depending on user input on C1]
Joecorn
Joepear
Maryapple
Marycorn

<tbody>
</tbody>

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!
 

Some videos you may like

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

vbeee

New Member
Joined
Oct 28, 2014
Messages
5
Forgot to mention that the solution is for Excel 2010 (no 2013!!!).
 

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
36,118
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2010
Platform
  1. Windows
  2. MacOS
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.
 

vbeee

New Member
Joined
Oct 28, 2014
Messages
5
Thanks a ton Rory! This was really neat and helpful! Greatly appreciated!
 

Watch MrExcel Video

Forum statistics

Threads
1,122,964
Messages
5,599,069
Members
414,281
Latest member
Engjamal2021

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