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!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

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
38,772
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!
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,561
Messages
5,832,507
Members
430,136
Latest member
Asir Jefferson

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