LaneBrewer
New Member
- Joined
- Feb 1, 2022
- Messages
- 4
- Office Version
- 2016
- Platform
- Windows
Hi Everyone,
Below I have the following worksheet sample:
I am trying to figure out a formula to put into Data Validation that will then give me a dropdown that has all occurrences of Table1
for each EmpName chosen.
I have tried using =IFERROR(INDEX(GPTabPT,SMALL(IF(G3=EmpName,MATCH(ROW(EmpName),ROW(EmpName)),""),ROW($C1))),"")
and
=INDEX(GPTabPT,AGGREGATE(15,3,((EmpName=G3)/(EmpName=G3)*ROW(EmpName))-ROW(EmpName),ROWS(Sheet1!$B$2:Sheet1!B2)))
and
Offset() *I don't even remember what I tried but it didn't work.
I either get an error stating that I can't use arrays for Data Validation, the first value that matches, or I get no values in the dropdown. My actual table has over 100 unique values for EmpName so I don't want to have to create a named range for each to use the Indirect function
Excel Info:
Pro+ 2016
Version 2202 (Build 14931.20132 Click-to-Run)
Cheers,
Lane
Below I have the following worksheet sample:
Book2.xlsx | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | Name | Division | Center | JD | Select Name | Select Center | ||||
2 | Adams, Stan | A | U | 1 | Dropdown of EmpName | Dropdown with Center(s) based on G2 | ||||
3 | Adams, Stan | A | V | 1 | Carson, Rita | |||||
4 | Butler, Teddy | B | U | 2 | ||||||
5 | Butler, Teddy | B | V | 2 | ||||||
6 | Carson, Rita | C | X | 3 | ||||||
7 | Carson, Rita | C | Y | 1 | ||||||
8 | Day, Allison | A | Z | 4 | ||||||
9 | Evers, Leroy | C | U | 1 | ||||||
10 | ||||||||||
11 | ||||||||||
12 | EmpName | <--Name of Range (Removed Duplicates) | ||||||||
13 | Adams, Stan | |||||||||
14 | Butler, Teddy | |||||||||
15 | Carson, Rita | |||||||||
16 | Day, Allison | |||||||||
17 | Evers, Leroy | |||||||||
Sheet1 |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
G2 | Any value | |
G3 | List | =EmpName |
I am trying to figure out a formula to put into Data Validation that will then give me a dropdown that has all occurrences of Table1
for each EmpName chosen.
I have tried using =IFERROR(INDEX(GPTabPT,SMALL(IF(G3=EmpName,MATCH(ROW(EmpName),ROW(EmpName)),""),ROW($C1))),"")
and
=INDEX(GPTabPT,AGGREGATE(15,3,((EmpName=G3)/(EmpName=G3)*ROW(EmpName))-ROW(EmpName),ROWS(Sheet1!$B$2:Sheet1!B2)))
and
Offset() *I don't even remember what I tried but it didn't work.
I either get an error stating that I can't use arrays for Data Validation, the first value that matches, or I get no values in the dropdown. My actual table has over 100 unique values for EmpName so I don't want to have to create a named range for each to use the Indirect function
Excel Info:
Pro+ 2016
Version 2202 (Build 14931.20132 Click-to-Run)
Cheers,
Lane