Dynamic list based on multiple criteria

liampog

Active Member
Joined
Aug 3, 2010
Messages
308
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

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Let's just pretend that you have 3 job titles.

Care to post a 10 row sample (input) and the output you want from this input given A1:A3 housing the criterion job titles?
 
Upvote 0
Hi

Thanks for the reply.

Basically, out of a list of general staff names and positions, I'm trying to create a dynamic list of senior staff names.

Dynamic being that if someone's position is manually changed to a "senior" position, they will then appear in the dynamic list.

Hope this makes it clear.

Thanks
Liam



ABCE
1ManagerNAMEPOSITIONOUTPUT
2SupervisorAndy ASupervisorColin E
3SeniorBob BAttendantHugh H
4Bob CSeniorLiam E
5Colin EManagerAndy A
6Colin MAttendantGary H
7Dave DSeniorBob C
8Ed GAttendantDave D
9Fiona CAttendantJack D
10Gary HSupervisor
11Hugh HManager
12Ian DAttendant
13Jack DSenior
14Kevin GAttendant
15Liam EManager

<tbody>
</tbody>
 
Upvote 0
In E2 control+shift+enter, not just enter, and copy down:

=IFERROR(INDEX($B$2:$B$15,SMALL(IF(ISNUMBER(MATCH($C$2:$C$15,$A$1:$A$3,0)),ROW($B$2:$B$15)-ROW($B$2)+1),ROWS($E$2:E2))),"")

Alternatively, in E2 just enter and copy down:

=IFERROR(INDEX($B$2:$B$15,AGGREGATE(15,6,(ROW($B$2:$B$15)-ROW($B$2)+1)/ISNUMBER(MATCH($C$2:$C$15,$A$1:$A$3,0)),ROWS($E$2:E2))),"")
 
Last edited:
Upvote 0
Hi Aladin

Thanks, that worked perfectly with a little tweaking!

Liam
 
Upvote 0
Hi Aladin

Oh nothing related to the formula... just the cell references, etc.

Liam
 
Upvote 0
In E2 control+shift+enter, not just enter, and copy down:

=IFERROR(INDEX($B$2:$B$15,SMALL(IF(ISNUMBER(MATCH($C$2:$C$15,$A$1:$A$3,0)),ROW($B$2:$B$15)-ROW($B$2)+1),ROWS($E$2:E2))),"")

Alternatively, in E2 just enter and copy down:

=IFERROR(INDEX($B$2:$B$15,AGGREGATE(15,6,(ROW($B$2:$B$15)-ROW($B$2)+1)/ISNUMBER(MATCH($C$2:$C$15,$A$1:$A$3,0)),ROWS($E$2:E2))),"")

Hi Aladin, hope you can help here.

I have a similar problem where the above formula can help, but after replicating the dataset above, the formula is returning "Bob C" for all rows in column E.
Can you please check?

I have large dataset where I need to extract unique values from one column (say column A), and it need to be based on multiple criteria from another column (column B).
So similar to above where the criteria in column A is to match the POSITION column (column C), and return NAME (column B). However in my case, the NAME column may have duplicates.

Thank you for your help in advanced.
 
Upvote 0

Forum statistics

Threads
1,214,834
Messages
6,121,876
Members
449,056
Latest member
ruhulaminappu

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