Can a worksheet column be the source for dependent drop down lists on a different worksheet tab?

Mr_Phil

Board Regular
Joined
May 28, 2018
Messages
150
Office Version
  1. 365
I have an employee worksheet that shows the basics Name, Job, Location, Supervisor etc.
I need to make a counseling form. I would like to make a drop down list of Locations. Then a different dropdown on the other side of the page to select the employee name from a list of employees at that selected location. But, from reading it appears I am going to have to create a table with just those items to serve as data validation sources. Am I reading it right? It just seems to me that what I’ve read is telling me I can’t just use the location column as the first dropdown and then the employees as the second. Maybe I am reading too much into it. Thanks for anyone offering advice.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
If you define your lists as Named Ranges throughout the workbook you can use ='namedrangename' as your data validation source.

Sheet where the names are defined:
Mr Excel Questions 4.xlsm
ABCD
1Name Job Location Supervisor
2JohnClerkNew YorkJane
3JaneManagerBrooklynSally
4SallyExecutiveTrentonSally
5
6Job=DVSheet!$B$2:$B$4
7Location=DVSheet!$C$2:$C$4
8Name=DVSheet!$A$2:$A$4
9Supervisor=DVSheet!$D$2:$D$4
DVSheet


Sheet where the names are used for Data Validation:

Mr Excel Questions 4.xlsm
ABC
1
2DropDown: Name
3
4Drop Down: Position
5
6Drop Down: Locaiton:
7
8Drop Down: Reports To:
9
10
DVMain
Cells with Data Validation
CellAllowCriteria
B2List=Name
B4List=Job
B6List=Location
B8List=Supervisor
 
Upvote 0
Here is the name manager (select from formulas menu on ribbon) where you see the 'scope' of the named range:
1676168674269.png
 
Upvote 0
Thanks. That gives me hope. I will try it tomorrow and make a go of it. I appreciate the time you took to help me out. Thanks again.
 
Upvote 0
I can’t just use the location column as the first dropdown and then the employees as the second.
No, because once you have chosen the location, the number of employees at that location will (probably) be less than the total list of your employees that exist in the original employee column.

You can however do it without named ranges like this. Set up a section in the Employees sheet (or could be anywhere) like columns E:J (or more) below. If you want, those columns could then be hidden.

Mr_Phil.xlsm
ABCDEFGHIJ
1NameJobLocationLocationLoc 1Loc 2Loc 3
2Name 1Job 1Loc 1NamesName 1Name 2Name 7  
3Name 2Job 2Loc 2Name 3Name 4Name 8
4Name 3Job 3Loc 1Name 5Name 6
5Name 4Job 4Loc 2Name 9
6Name 5Job 2Loc 1
7Name 6Job 3Loc 2
8Name 7Job 1Loc 3
9Name 8Job 2Loc 3
10Name 9Job 3Loc 2
Employees
Cell Formulas
RangeFormula
F1:H1F1=TRANSPOSE(UNIQUE(C2:C10))
F2:F4,I2:J2,H2:H3,G2:G5F2=IF(F1="","",FILTER($A2:$A10,$C2:$C10=F1))
Dynamic array formulas.


Then set up your Data Validation like this

Mr_Phil.xlsm
AB
1LocationName
2Loc 2
3
4
5
Sheet2
Cells with Data Validation
CellAllowCriteria
A2:A5List=Employees!$F$1#
B2:B5List=INDEX(Employees!F$2:$J$2,MATCH(A2,Employees!$F$1#,0))#


1676198886862.png
.......
1676198922344.png


1676198999964.png
 
Upvote 0
Solution
No, because once you have chosen the location, the number of employees at that location will (probably) be less than the total list of your employees that exist in the original employee column.

You can however do it without named ranges like this. Set up a section in the Employees sheet (or could be anywhere) like columns E:J (or more) below. If you want, those columns could then be hidden.

Mr_Phil.xlsm
ABCDEFGHIJ
1NameJobLocationLocationLoc 1Loc 2Loc 3
2Name 1Job 1Loc 1NamesName 1Name 2Name 7  
3Name 2Job 2Loc 2Name 3Name 4Name 8
4Name 3Job 3Loc 1Name 5Name 6
5Name 4Job 4Loc 2Name 9
6Name 5Job 2Loc 1
7Name 6Job 3Loc 2
8Name 7Job 1Loc 3
9Name 8Job 2Loc 3
10Name 9Job 3Loc 2
Employees
Cell Formulas
RangeFormula
F1:H1F1=TRANSPOSE(UNIQUE(C2:C10))
F2:F4,I2:J2,H2:H3,G2:G5F2=IF(F1="","",FILTER($A2:$A10,$C2:$C10=F1))
Dynamic array formulas.


Then set up your Data Validation like this

Mr_Phil.xlsm
AB
1LocationName
2Loc 2
3
4
5
Sheet2
Cells with Data Validation
CellAllowCriteria
A2:A5List=Employees!$F$1#
B2:B5List=INDEX(Employees!F$2:$J$2,MATCH(A2,Employees!$F$1#,0))#


View attachment 85217 ....... View attachment 85218

View attachment 85219

Perfect. I don't understand most of it. But it works and I can deconstruct it and learn it. Thank you so much.
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,187
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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