Create list based on user selection from multiple drop down boxes

ten1jmj

New Member
Joined
Jan 10, 2019
Messages
7
I am trying to create a list on one worksheet based on data from another worksheet using two drop down boxes. I have a main spreadsheet that houses a list of operators, with their corresponding status (active, dropped, termed) and supervisor name. I would like to be able to select the supervisor name and status and the result be a list of operators that match that information. I currently have the formula =IF(ROWS($C$17:C17)<=$B$16,INDEX(Data!$A$2:$A$1048576,AGGREGATE(15,3,(Data!$H$2:$H$1048576=$A$1)/(Data!$H$2:$H$1048576=$A$1)*(ROW(Data!$H$2:$H$1048576)-ROW(Data!$H$1)),ROWS($C$17:C17))),"") which allows me to select a drop down to get a list based on the supervisor name, but I can't figure out how to add the status to the formula.

$B$16 is a reference to a helper cell to do a count: =COUNTIF(Data!$H$2:$H$1048576,$A$1)

Sheet1 = DATA
A B C D E F G H
1Name Carrier Position Status Model S.Date T.Date Supv
2 AA Active A Smith
3 BB Active J Doe
4 CC Term A Smith
5 DD Active J Doe
6 EE Term J Doe
7 FF Dropped A Smith
8 GG Active A Smith

Sheet2
A
1 Dropdown box to select Supv
2 Dropdown box to select Status

Example:

Supv: A Smith
Status: Active
Resulting list:
AA
GG
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Hi Ten,

It would be faster for calculation if you convert your data to a table first rather than indexing the whole sheet.

I've built the countif into formula if you dont need B16 Helper cell.


Book1
ABCDEFGH
11NameCarrierPositionStatusModelS.DateT.DateSupv
2AAActiveASmith
3BBActiveJDoe
4CCTermASmith
5DDActiveJDoe
6EETermJDoe
7FFDroppedASmith
8GGActiveASmith
data




Book1
ABCDEFGH
1Smith
2Active
3
4
51NameCarrierPositionStatusModelS.DateT.DateSupv
6AAActiveASmith
7GGActiveASmith
Sheet2
Cell Formulas
RangeFormula
A6{=IF(ROWS(Sheet2!$A$6:A6)>COUNTIFS(data!$D$2:$D$8,Sheet2!$A$1,data!$B$2:$B$8,Sheet2!$A$2),"",INDEX(data!A$2:A$8,SMALL(IF(data!$D$2:$D$8&data!$B$2:$B$8=Sheet2!$A$1&Sheet2!$A$2,ROW(data!$D$2:$D$8)-ROW(data!$D$2)+1),ROWS(Sheet2!$A$6:A6))))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,448
Members
448,966
Latest member
DannyC96

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