Data Validation With Multiple Criteria & Level

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,077
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
hi all...

i have problem how to make data validation list/formula with multiple criteria

CityModelType
Inner CityIArteri
Inner CityIIArteri
Inner CityIIIAArteri
Inner CityIIIAKolektor
Inner CityIIIBKolektor
Inner CityIIICJalan Lokal
Outer CityIArteri Primer
Outer CityIKolektor Primer
Outer CityIArteri Sekunder
Outer CityIIKolektor Primer
Outer CityIIArteri Sekunder
Outer CityIIKolektor Sekunder
Outer CityIIIAKolektor Sekunder
Outer CityIIIAJalan Lokal
Outer CityIIIB1Jalan Lokal/Parkir
Outer CityIIIB2Jalan Lokal/Parkir
Outer CityIIICJalan Lokal/Parkir

<tbody>
</tbody>

expected result :

Data Validation
CityModelType
Inner CityIIIAArteri
Kolektor
Ineer cityIArteri
Ineer cityIIIBKolektor

<tbody>
</tbody>

- when i select Inner City , in the cell adjacent possible in Model show I, II, IIIA, IIIB, IIIC...then i select I ....shown Arteri..

please, don't use vba/macro.
any help is greatly appreciated....
m.susanto
 
Last edited:
hi Eric...you have help me like in M1 now i want too..you can make me drop down box in L1 based on K1 (Outer..& Inner...) like in M1
 
Upvote 0

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Code:
[COLOR=#333333]=OFFSET($E$2,0,MATCH(K1,$F$1:$I$1,0),MAX(IF(OFFSET($[/COLOR][COLOR=#ff0000]E$[/COLOR][COLOR=#333333]1:[/COLOR][COLOR=#ff0000]$E$1[/COLOR][COLOR=#333333]00,0,MATCH(K1,$F$1:$I$1,0))<>"",ROW($[/COLOR][COLOR=#ff0000]E$2[/COLOR][COLOR=#333333]:$[/COLOR][COLOR=#ff0000]E$[/COLOR][COLOR=#333333]100)))-1)[/COLOR]

hello Eric...

why not working?...i mean in L1
 
Last edited:
Upvote 0
Excel 2007 32 bit#FFFFFF ;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6">
ABCDEFGHIJKLM
1CitymodeltipeCityInner CityOuter CityInner CityI,II,IIIA,IIIB,IIICJalan Lokal/Parkir
2Inner CityIArteriInner CityII
3Inner CityIIArteriOuter CityIIII
4Inner CityIIIAArteriIIIAIIIA
5Inner CityIIIAKolektorIIIBIIIB1
6Inner CityIIIBKolektorIIICIIIB2
7Inner CityIIICJalan LokalIIIC
8Outer CityIArteri Primer
9Outer CityIKolektor Primer
10Outer CityIArteri Sekunder
11Outer CityIIKolektor Primer
12Outer CityIIArteri Sekunder
13Outer CityIIKolektor Sekunder
14Outer CityIIIAKolektor Sekunder
15Outer CityIIIAJalan Lokal
16Outer CityIIIB1Jalan Lokal/Parkir
17Outer CityIIIB2Jalan Lokal/Parkir
18Outer CityIIICJalan Lokal/Parkir

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
rumus

#FFFFFF " >
Array Formulas#FFFFFF ;border-collapse: collapse; border-color: #A6AAB6">
CellFormula
D2{=IFERROR(INDEX(C:C,SMALL(IF($A$2:$A$100=K$1,IF($B$2:$B$100=L$1,ROW($A$2:$A$100))),ROWS($D$2:$D2))),"")}
D3{=IFERROR(INDEX(C:C,SMALL(IF($A$2:$A$100=K$1,IF($B$2:$B$100=L$1,ROW($A$2:$A$100))),ROWS($D$2:$D3))),"")}
D4{=IFERROR(INDEX(C:C,SMALL(IF($A$2:$A$100=K$1,IF($B$2:$B$100=L$1,ROW($A$2:$A$100))),ROWS($D$2:$D4))),"")}
D5{=IFERROR(INDEX(C:C,SMALL(IF($A$2:$A$100=K$1,IF($B$2:$B$100=L$1,ROW($A$2:$A$100))),ROWS($D$2:$D5))),"")}
D6{=IFERROR(INDEX(C:C,SMALL(IF($A$2:$A$100=K$1,IF($B$2:$B$100=L$1,ROW($A$2:$A$100))),ROWS($D$2:$D6))),"")}
D7{=IFERROR(INDEX(C:C,SMALL(IF($A$2:$A$100=K$1,IF($B$2:$B$100=L$1,ROW($A$2:$A$100))),ROWS($D$2:$D7))),"")}
D8{=IFERROR(INDEX(C:C,SMALL(IF($A$2:$A$100=K$1,IF($B$2:$B$100=L$1,ROW($A$2:$A$100))),ROWS($D$2:$D8))),"")}
D9{=IFERROR(INDEX(C:C,SMALL(IF($A$2:$A$100=K$1,IF($B$2:$B$100=L$1,ROW($A$2:$A$100))),ROWS($D$2:$D9))),"")}
D10{=IFERROR(INDEX(C:C,SMALL(IF($A$2:$A$100=K$1,IF($B$2:$B$100=L$1,ROW($A$2:$A$100))),ROWS($D$2:$D10))),"")}
D11{=IFERROR(INDEX(C:C,SMALL(IF($A$2:$A$100=K$1,IF($B$2:$B$100=L$1,ROW($A$2:$A$100))),ROWS($D$2:$D11))),"")}
D12{=IFERROR(INDEX(C:C,SMALL(IF($A$2:$A$100=K$1,IF($B$2:$B$100=L$1,ROW($A$2:$A$100))),ROWS($D$2:$D12))),"")}
D13{=IFERROR(INDEX(C:C,SMALL(IF($A$2:$A$100=K$1,IF($B$2:$B$100=L$1,ROW($A$2:$A$100))),ROWS($D$2:$D13))),"")}
D14{=IFERROR(INDEX(C:C,SMALL(IF($A$2:$A$100=K$1,IF($B$2:$B$100=L$1,ROW($A$2:$A$100))),ROWS($D$2:$D14))),"")}
D15{=IFERROR(INDEX(C:C,SMALL(IF($A$2:$A$100=K$1,IF($B$2:$B$100=L$1,ROW($A$2:$A$100))),ROWS($D$2:$D15))),"")}
F1{=IFERROR(INDEX($A:$A,SMALL(IF($A$2:$A$100<>"",IF(COUNTIF($E$1:E1,$A$2:$A$100)=0,ROW($A$2:$A$100))),1)),"")}
G1{=IFERROR(INDEX($A:$A,SMALL(IF($A$2:$A$100<>"",IF(COUNTIF($E$1:F1,$A$2:$A$100)=0,ROW($A$2:$A$100))),1)),"")}
F2{=IFERROR(INDEX($B:$B,SMALL(IF($A$2:$A$100=F$1,IF(COUNTIF(F$1:F1,$B$2:$B$100)=0,ROW($A$2:$A$100))),1)),"")}
G2{=IFERROR(INDEX($B:$B,SMALL(IF($A$2:$A$100=G$1,IF(COUNTIF(G$1:G1,$B$2:$B$100)=0,ROW($A$2:$A$100))),1)),"")}
F3{=IFERROR(INDEX($B:$B,SMALL(IF($A$2:$A$100=F$1,IF(COUNTIF(F$1:F2,$B$2:$B$100)=0,ROW($A$2:$A$100))),1)),"")}
G3{=IFERROR(INDEX($B:$B,SMALL(IF($A$2:$A$100=G$1,IF(COUNTIF(G$1:G2,$B$2:$B$100)=0,ROW($A$2:$A$100))),1)),"")}
F4{=IFERROR(INDEX($B:$B,SMALL(IF($A$2:$A$100=F$1,IF(COUNTIF(F$1:F3,$B$2:$B$100)=0,ROW($A$2:$A$100))),1)),"")}
G4{=IFERROR(INDEX($B:$B,SMALL(IF($A$2:$A$100=G$1,IF(COUNTIF(G$1:G3,$B$2:$B$100)=0,ROW($A$2:$A$100))),1)),"")}
F5{=IFERROR(INDEX($B:$B,SMALL(IF($A$2:$A$100=F$1,IF(COUNTIF(F$1:F4,$B$2:$B$100)=0,ROW($A$2:$A$100))),1)),"")}
G5{=IFERROR(INDEX($B:$B,SMALL(IF($A$2:$A$100=G$1,IF(COUNTIF(G$1:G4,$B$2:$B$100)=0,ROW($A$2:$A$100))),1)),"")}
F6{=IFERROR(INDEX($B:$B,SMALL(IF($A$2:$A$100=F$1,IF(COUNTIF(F$1:F5,$B$2:$B$100)=0,ROW($A$2:$A$100))),1)),"")}
G6{=IFERROR(INDEX($B:$B,SMALL(IF($A$2:$A$100=G$1,IF(COUNTIF(G$1:G5,$B$2:$B$100)=0,ROW($A$2:$A$100))),1)),"")}
F7{=IFERROR(INDEX($B:$B,SMALL(IF($A$2:$A$100=F$1,IF(COUNTIF(F$1:F6,$B$2:$B$100)=0,ROW($A$2:$A$100))),1)),"")}
G7{=IFERROR(INDEX($B:$B,SMALL(IF($A$2:$A$100=G$1,IF(COUNTIF(G$1:G6,$B$2:$B$100)=0,ROW($A$2:$A$100))),1)),"")}
F8{=IFERROR(INDEX($B:$B,SMALL(IF($A$2:$A$100=F$1,IF(COUNTIF(F$1:F7,$B$2:$B$100)=0,ROW($A$2:$A$100))),1)),"")}
G8{=IFERROR(INDEX($B:$B,SMALL(IF($A$2:$A$100=G$1,IF(COUNTIF(G$1:G7,$B$2:$B$100)=0,ROW($A$2:$A$100))),1)),"")}
F9{=IFERROR(INDEX($B:$B,SMALL(IF($A$2:$A$100=F$1,IF(COUNTIF(F$1:F8,$B$2:$B$100)=0,ROW($A$2:$A$100))),1)),"")}
G9{=IFERROR(INDEX($B:$B,SMALL(IF($A$2:$A$100=G$1,IF(COUNTIF(G$1:G8,$B$2:$B$100)=0,ROW($A$2:$A$100))),1)),"")}
F10{=IFERROR(INDEX($B:$B,SMALL(IF($A$2:$A$100=F$1,IF(COUNTIF(F$1:F9,$B$2:$B$100)=0,ROW($A$2:$A$100))),1)),"")}
G10{=IFERROR(INDEX($B:$B,SMALL(IF($A$2:$A$100=G$1,IF(COUNTIF(G$1:G9,$B$2:$B$100)=0,ROW($A$2:$A$100))),1)),"")}
F11{=IFERROR(INDEX($B:$B,SMALL(IF($A$2:$A$100=F$1,IF(COUNTIF(F$1:F10,$B$2:$B$100)=0,ROW($A$2:$A$100))),1)),"")}
G11{=IFERROR(INDEX($B:$B,SMALL(IF($A$2:$A$100=G$1,IF(COUNTIF(G$1:G10,$B$2:$B$100)=0,ROW($A$2:$A$100))),1)),"")}
F12{=IFERROR(INDEX($B:$B,SMALL(IF($A$2:$A$100=F$1,IF(COUNTIF(F$1:F11,$B$2:$B$100)=0,ROW($A$2:$A$100))),1)),"")}
F13{=IFERROR(INDEX($B:$B,SMALL(IF($A$2:$A$100=F$1,IF(COUNTIF(F$1:F12,$B$2:$B$100)=0,ROW($A$2:$A$100))),1)),"")}
F14{=IFERROR(INDEX($B:$B,SMALL(IF($A$2:$A$100=F$1,IF(COUNTIF(F$1:F13,$B$2:$B$100)=0,ROW($A$2:$A$100))),1)),"")}
F15{=IFERROR(INDEX($B:$B,SMALL(IF($A$2:$A$100=F$1,IF(COUNTIF(F$1:F14,$B$2:$B$100)=0,ROW($A$2:$A$100))),1)),"")}
F16{=IFERROR(INDEX($B:$B,SMALL(IF($A$2:$A$100=F$1,IF(COUNTIF(F$1:F15,$B$2:$B$100)=0,ROW($A$2:$A$100))),1)),"")}
F17{=IFERROR(INDEX($B:$B,SMALL(IF($A$2:$A$100=F$1,IF(COUNTIF(F$1:F16,$B$2:$B$100)=0,ROW($A$2:$A$100))),1)),"")}
F18{=IFERROR(INDEX($B:$B,SMALL(IF($A$2:$A$100=F$1,IF(COUNTIF(F$1:F17,$B$2:$B$100)=0,ROW($A$2:$A$100))),1)),"")}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>

i mean..in L1 is my problem..how to make Data Validation-List (drop down boxes)
 
Last edited:
Upvote 0
I'm not sure what you're asking. In your picture, the L1 cell shows all the options, which would not happen if you used the DV. And based on your picture, and last post, you're expecting something in L2? Are you putting the DV rule in multiple rows?
 
Upvote 0
hello Eric....yes you're right...i think it need the DV rule in multiple rows..
 
Upvote 0
Upvote 0

Forum statistics

Threads
1,214,537
Messages
6,120,096
Members
448,944
Latest member
SarahSomethingExcel100

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