Dynamic list based on multiple criteria

liampog

Active Member
Joined
Aug 3, 2010
Messages
312
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi

I want to create a dynamic list that looks up one of a range of criteria and creates a list.

There are 14 criterias in (for example), cells A1:A14. All of them uniquely different (they are job titles).

I have a list of 100 staff members with their names and job titles in columns C and D respectively. There are more than 14 job titles but I want a list to be created in Column B that just selects the 14 job titles in question.

Is this a good enough explanation of what I want to do?

I imagine it's going to be an array formula of some description.

Thanks
Liam
 

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"
Yes, based on multiple criteria in column C, is that possible?

Thank you.

In D2 control+shift+enter, not just enter, and copy down:

=IFERROR(INDEX($B$2:$B$15,SMALL(IF(FREQUENCY(IF($B$2:$B$15<>"",IF(ISNUMBER(MATCH($C$2:$C$15,$A$1:$A$3,0)),MATCH($B$2:$B$15,$B$2:$B$15,0))),ROW($B$2:$B$15)-ROW($B$2)+1),ROW($B$2:$B$15)-ROW($B$2)+1),ROWS($D$2:D2))),"")
 
Upvote 0
In D2 control+shift+enter, not just enter, and copy down:

=IFERROR(INDEX($B$2:$B$15,SMALL(IF(FREQUENCY(IF($B$2:$B$15<>"",IF(ISNUMBER(MATCH($C$2:$C$15,$A$1:$A$3,0)),MATCH($B$2:$B$15,$B$2:$B$15,0))),ROW($B$2:$B$15)-ROW($B$2)+1),ROW($B$2:$B$15)-ROW($B$2)+1),ROWS($D$2:D2))),"")


Brilliant, thank you very much!!
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,279
Members
452,630
Latest member
OdubiYouth

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