Multiple Conditional Dropdown list, without Duplicate

Shayanan

New Member
Joined
Feb 11, 2021
Messages
8
Office Version
  1. 2019
Platform
  1. Windows
I have a Table, with 3 column. In picture I showed what I want. I need 3 dropdown list that depend each.
List 1= list cul-1 (without duplicate).
list 2= everything in Cul-2 related to return of list 1 (without duplicate).
list 3= everything in Cul-3 related to return of list 2 (without duplicate).

In the picture, column "J" is what I want.
 

Attachments

  • 222.jpg
    222.jpg
    145.9 KB · Views: 18

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Try something like this.
Helper columns L:N could be hidden if you want.

Shayanan.xlsm
ABCDEFGHIJKLMN
1$L$3:$L$5$M$3:$M$4$N$3:$N$6
2Game9617000Game2
3Game9617500Game9617000
4Game9618000Productivity217500
5Game9618500Utility 18000
6Game217000  18500
7Game217500   
8Game218000   
9Game218500   
10Productivity12410000   
11Productivity12410500   
12Productivity12411000   
13Utility1821000   
14Utility1822000   
15Utility1823000   
16   
Sheet1
Cell Formulas
RangeFormula
L1L1=ADDRESS(3,COLUMN())&":"&ADDRESS(2+COUNTIF(L3:L21,"?*"),COLUMN())
M1:N1M1=ADDRESS(3,COLUMN())&":"&ADDRESS(2+MAX(COUNT(M3:M21),1),COLUMN())
L3:L16L3=IFERROR(INDEX(A$2:A$20,MATCH(0,INDEX(COUNTIF(L$2:L2,A$2:A$20)+(A$2:A$20=""),0),0)),"")
M3:M16M3=IF($F$2="","",IFERROR(INDEX(B$2:B$20,AGGREGATE(15,6,(ROW(B$2:B$20)-ROW(B$2)+1)/((A$2:A$20=F$2)*(ISNA(MATCH(B$2:B$20,M$2:M2,0)))),1)),""))
N3:N16N3=IF(H$2="","",IFERROR(INDEX(C$2:C$20,AGGREGATE(15,6,(ROW(C$2:C$20)-ROW(C$2)+1)/((B$2:B$20=H$2)*(ISNA(MATCH(C$2:C$20,N$2:N2,0)))),1)),""))
Cells with Data Validation
CellAllowCriteria
F2List=INDIRECT($L$1)
H2List=INDIRECT($M$1)
J2List=INDIRECT($N$1)


1613195434205.png
 
Upvote 0
Try something like this.
Helper columns L:N could be hidden if you want.

Shayanan.xlsm
ABCDEFGHIJKLMN
1$L$3:$L$5$M$3:$M$4$N$3:$N$6
2Game9617000Game2
3Game9617500Game9617000
4Game9618000Productivity217500
5Game9618500Utility 18000
6Game217000  18500
7Game217500   
8Game218000   
9Game218500   
10Productivity12410000   
11Productivity12410500   
12Productivity12411000   
13Utility1821000   
14Utility1822000   
15Utility1823000   
16   
Sheet1
Cell Formulas
RangeFormula
L1L1=ADDRESS(3,COLUMN())&":"&ADDRESS(2+COUNTIF(L3:L21,"?*"),COLUMN())
M1:N1M1=ADDRESS(3,COLUMN())&":"&ADDRESS(2+MAX(COUNT(M3:M21),1),COLUMN())
L3:L16L3=IFERROR(INDEX(A$2:A$20,MATCH(0,INDEX(COUNTIF(L$2:L2,A$2:A$20)+(A$2:A$20=""),0),0)),"")
M3:M16M3=IF($F$2="","",IFERROR(INDEX(B$2:B$20,AGGREGATE(15,6,(ROW(B$2:B$20)-ROW(B$2)+1)/((A$2:A$20=F$2)*(ISNA(MATCH(B$2:B$20,M$2:M2,0)))),1)),""))
N3:N16N3=IF(H$2="","",IFERROR(INDEX(C$2:C$20,AGGREGATE(15,6,(ROW(C$2:C$20)-ROW(C$2)+1)/((B$2:B$20=H$2)*(ISNA(MATCH(C$2:C$20,N$2:N2,0)))),1)),""))
Cells with Data Validation
CellAllowCriteria
F2List=INDIRECT($L$1)
H2List=INDIRECT($M$1)
J2List=INDIRECT($N$1)


View attachment 31981


thanks for your help. its work but there is a little problem.

in column-B , if utility=18 become utility=96, so we have 96 common in game and utility and it became sub of irrelevant parent.
 
Upvote 0
but there is a little problem.

in column-B , if utility=18 become utility=96, so we have 96 common in game and utility and it became sub of irrelevant parent.
I'm not sure that I directly understand what you have written, but I think I can see the problem anyway. See if this is better

Shayanan.xlsm
ABCDEFGHIJKLMN
1$L$3:$L$5$M$3:$M$3$N$3:$N$5
2Game9617000Utility96
3Game9617500Game9621000
4Game9618000Productivity 22000
5Game9618500Utility 23000
6Game217000   
7Game217500   
8Game218000   
9Game218500   
10Productivity12410000   
11Productivity12410500   
12Productivity12411000   
13Utility9621000   
14Utility9622000   
15Utility9623000   
16   
Sheet1
Cell Formulas
RangeFormula
L1L1=ADDRESS(3,COLUMN())&":"&ADDRESS(2+COUNTIF(L3:L21,"?*"),COLUMN())
M1:N1M1=ADDRESS(3,COLUMN())&":"&ADDRESS(2+MAX(COUNT(M3:M21),1),COLUMN())
L3:L16L3=IFERROR(INDEX(A$2:A$20,MATCH(0,INDEX(COUNTIF(L$2:L2,A$2:A$20)+(A$2:A$20=""),0),0)),"")
M3:M16M3=IF($F$2="","",IFERROR(INDEX(B$2:B$20,AGGREGATE(15,6,(ROW(B$2:B$20)-ROW(B$2)+1)/((A$2:A$20=F$2)*(ISNA(MATCH(B$2:B$20,M$2:M2,0)))),1)),""))
N3:N16N3=IF(H$2="","",IFERROR(INDEX(C$2:C$20,AGGREGATE(15,6,(ROW(C$2:C$20)-ROW(C$2)+1)/((B$2:B$20=H$2)*(A$2:A$20=F$2)*(ISNA(MATCH(C$2:C$20,N$2:N2,0)))),1)),""))
Cells with Data Validation
CellAllowCriteria
F2List=INDIRECT($L$1)
H2List=INDIRECT($M$1)
J2List=INDIRECT($N$1)


1613259168643.png
 
Upvote 0
Solution
I'm not sure that I directly understand what you have written, but I think I can see the problem anyway. See if this is better

Shayanan.xlsm
ABCDEFGHIJKLMN
1$L$3:$L$5$M$3:$M$3$N$3:$N$5
2Game9617000Utility96
3Game9617500Game9621000
4Game9618000Productivity 22000
5Game9618500Utility 23000
6Game217000   
7Game217500   
8Game218000   
9Game218500   
10Productivity12410000   
11Productivity12410500   
12Productivity12411000   
13Utility9621000   
14Utility9622000   
15Utility9623000   
16   
Sheet1
Cell Formulas
RangeFormula
L1L1=ADDRESS(3,COLUMN())&":"&ADDRESS(2+COUNTIF(L3:L21,"?*"),COLUMN())
M1:N1M1=ADDRESS(3,COLUMN())&":"&ADDRESS(2+MAX(COUNT(M3:M21),1),COLUMN())
L3:L16L3=IFERROR(INDEX(A$2:A$20,MATCH(0,INDEX(COUNTIF(L$2:L2,A$2:A$20)+(A$2:A$20=""),0),0)),"")
M3:M16M3=IF($F$2="","",IFERROR(INDEX(B$2:B$20,AGGREGATE(15,6,(ROW(B$2:B$20)-ROW(B$2)+1)/((A$2:A$20=F$2)*(ISNA(MATCH(B$2:B$20,M$2:M2,0)))),1)),""))
N3:N16N3=IF(H$2="","",IFERROR(INDEX(C$2:C$20,AGGREGATE(15,6,(ROW(C$2:C$20)-ROW(C$2)+1)/((B$2:B$20=H$2)*(A$2:A$20=F$2)*(ISNA(MATCH(C$2:C$20,N$2:N2,0)))),1)),""))
Cells with Data Validation
CellAllowCriteria
F2List=INDIRECT($L$1)
H2List=INDIRECT($M$1)
J2List=INDIRECT($N$1)


View attachment 32026
Thanks a lot. You correct what problem I've got.
 
Upvote 0
Hi - following this thread worked very nicely for a similar problem I had - thank you. However, if I wanted the dropdown data validation on a different tab, how do I use the INDIRECT() function to return the contents of a desired array kept on a separate tab please?

The desirable product I need is for a table to be maintained on one tab, with the input/dropdown selection forms on another tab.
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,207
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