Horizontal dependent drop down list with unequal amount of supervisors.

Excelquestion35

Board Regular
Joined
Nov 29, 2021
Messages
53
Office Version
  1. 2016
Platform
  1. Windows
Hi all,

Trying to create a dependent drop down list, but ran into some issue. I want to create a drop down list that is dependent on a previous drop down list. The first drop down list includes the management unit, which is already working fine. For that I created a small macro that retrieves the unique values and paste there somewhere hidden and uses that list for the drop down.
Now I am dealing with the second drop down. This should be the list of supervisor that belongs to a certain management unit. Thus Supervisor 1-13 should be visible when Customer 1 was selected in the previous drop down etc.
What is a good way to deal with this situation?
Important to mention: The list of supervisors should be dynamic, in case a new supervisor will work for customer 1, this person will be added as a new row.

I know that you would normally could use OFFSET & MATCH for this, however I only used that with lists per column. I tried to use this same work around but I seem to be getting errors. The best result I can get is that I get all management units when Customer 1 was selected. Yet, I want the list of corresponding supervisors.

1644401494436.png
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi Excelquestion35,

I'm not following why you can't use OFFSET and MATCH?

Excelquestion25.xlsx
ABCDEFGH
1CustomerSupervisor
2Customer 2Supervisor 16
3Management UnitSupervisorsCustomer 3Supervisor 18
4Customer 1Supervisor 1Customer 1Supervisor 1
5Customer 1Supervisor 2
6Customer 1Supervisor 3
7Customer 1Supervisor 4
8Customer 1Supervisor 5
9Customer 1Supervisor 6
10Customer 1Supervisor 7
11Customer 1Supervisor 8
12Customer 1Supervisor 9
13Customer 1Supervisor 10
14Customer 1Supervisor 11
15Customer 1Supervisor 12
16Customer 1Supervisor 13
17Customer 2Supervisor 14
18Customer 2Supervisor 15
19Customer 2Supervisor 16
20Customer 2Supervisor 17
21Customer 3Supervisor 18
22Customer 4Supervisor 19
Sheet1
Cells with Data Validation
CellAllowCriteria
G2:G5ListCustomer 1,Customer 2,Customer 3,Customer 4
H2:H10List=OFFSET($C$3,MATCH(G2,$B$4:$B$999,0),,COUNTIF($B$4:$B$999,G2))
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,206
Members
452,618
Latest member
Tam84

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