Dynamic List created with variable

GuyGadois

Active Member
Joined
Jan 12, 2009
Messages
342
Office Version
  1. 2019
Platform
  1. Windows
I have the following sheet. The source data is listed in columns A:C (in reality the length of this list is 2000 rows long). I am attempting to make a dynamic list located in E:G (under the green heading) where the dynamic list only includes "models" in J1 (heightened in yellow). In the example, the user picks the model from J1 (Data Validation) and the Dynamic list appears under the green heading only including the model name contained in J1. How would I accomplish this? I am using Excel 2019

Thank you very much

GG

Example.xlsm
ABCDEFGHIJ
1ModelFruitNumberModelFruitNumberModel Name:A
2AApple1AApple1
3BLime8ALime2
4CApricot6AApricot5
5DLemon3ALemon4
6ALime2
7BApricot6
8CLemon8
9DApricot4
10AApricot5
11BLemon4
12CLime8
13DApricot6
14ALemon4
15BApricot6
16CLemon3
17DLime8
Sheet2
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Try this

22 07 21.xlsm
ABCDEFGHIJ
1ModelFruitNumberModelFruitNumberModel Name:A
2AApple1AApple1
3BLime8ALime2
4CApricot6AApricot5
5DLemon3ALemon4
6ALime2   
7BApricot6   
8CLemon8   
9DApricot4   
10AApricot5   
11BLemon4   
12CLime8   
13DApricot6   
14ALemon4   
15BApricot6   
16CLemon3   
17DLime8   
List
Cell Formulas
RangeFormula
E2:E17E2=IFERROR(INDEX(A:A,AGGREGATE(15,6,ROW(A$2:A$3000)/($A$2:$A$3000=$J$1),ROWS(E$2:E2))),"")
F2:G17F2=IF($E2="","",INDEX(B:B,AGGREGATE(15,6,ROW(B$2:B$3000)/($A$2:$A$3000=$J$1),ROWS(F$2:F2))))
 
Upvote 0
If you don't mind using a helper column you could reduce the calculation burden like this.
Copy the column K formula down to the end of the data (or at least far enough to cover any list that is likely to appear in columns E:G) and then (if you want) hide column K
Then the simpler formula in E2 can be copied across and down as far as the column K formulas go.

22 07 21.xlsm
ABCDEFGHIJK
1ModelFruitNumberModelFruitNumberModel Name:A
2AApple1AApple12
3BLime8ALime26
4CApricot6AApricot510
5DLemon3ALemon414
6ALime2    
7BApricot6    
8CLemon8    
9DApricot4    
10AApricot5    
11BLemon4    
12CLime8    
13DApricot6    
14ALemon4    
15BApricot6    
16CLemon3    
17DLime8    
List (2)
Cell Formulas
RangeFormula
E2:G17E2=IF($K2="","",INDEX(A:A,$K2))
K2:K17K2=IFERROR(AGGREGATE(15,6,ROW(A$2:A$3000)/(A$2:A$3000=J$1),ROWS(K$2:K2)),"")
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,895
Members
449,097
Latest member
dbomb1414

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