Drop Down depencies

rup1234

New Member
Joined
Sep 20, 2018
Messages
12
[TABLE="width: 192"]
<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Cars[/TD]
[TD="width: 64"]TYPE[/TD]
[TD="width: 64"]MODEL[/TD]
[/TR]
[TR]
[TD]Hyundai[/TD]
[TD]h1[/TD]
[TD]I20[/TD]
[/TR]
[TR]
[TD]Hyundai[/TD]
[TD]h1[/TD]
[TD]I10[/TD]
[/TR]
[TR]
[TD]Hyundai[/TD]
[TD]h2[/TD]
[TD]I30[/TD]
[/TR]
[TR]
[TD]Hyundai[/TD]
[TD]h2[/TD]
[TD]I40[/TD]
[/TR]
[TR]
[TD]Suzuki[/TD]
[TD]S1[/TD]
[TD]WHITE[/TD]
[/TR]
[TR]
[TD]Suzuki[/TD]
[TD]S2[/TD]
[TD]black[/TD]
[/TR]
[TR]
[TD]Suzuki[/TD]
[TD]S3[/TD]
[TD]PINK
[/TD]
[/TR]
</tbody>[/TABLE]

[FONT=&quot]If I select Cars then it should show a unique identity like Hyundai and Suzuki.[/FONT]
[FONT=&quot]And if i select Hyundai Then it should show Unique Type Like h1,h2 , likewise in Suzuki also s1,s2,s3[/FONT]
[FONT=&quot]And in h1 (I20,I10), h2(I30,I40), S1(White), S2(black), S3(PINK)[/FONT]

[FONT=&quot]The result should show on a different sheet.[/FONT]

[FONT=&quot]Thanks in advance [/FONT]
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hey,

I'd take a look at using named ranges with INDIRECT - although the types you have listed may cause issues as they also refer to cells in Excel! Interesting...

The first dependent dropdown can be made easily enough.

Method:

I assume you already have the drop down for the Cars sorted out so I will skip on to the Type.
In the example provided make a column "Type" and put the following values:
h1
h2
S1
S2
S3
Name the h1 & h2 range as "Hyundai", then name the S1, S2 & S3 range as "Suzuki"

Now where you have the type dropdown list put the list formula as: =INDIRECT(A2)
Where A2 would be the car.

[TABLE="class: grid, width: 1000"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Cars[/TD]
[TD]Type[/TD]
[TD]Model[/TD]
[TD][/TD]
[TD]Cars[/TD]
[TD]Type[/TD]
[TD]Model[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Hyundai[/TD]
[TD]h1[/TD]
[TD][/TD]
[TD][/TD]
[TD]Hyundai[/TD]
[TD]h1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Hyundai[/TD]
[TD]h1[/TD]
[TD][/TD]
[TD][/TD]
[TD]Suzuki[/TD]
[TD]h2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Hyundai[/TD]
[TD]h2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]S1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Hyundai[/TD]
[TD]h2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]S2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Suzuki[/TD]
[TD]S1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]S3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Suzuki[/TD]
[TD]S2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Suzuki[/TD]
[TD]S3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

The data validation (DV) rule should be placed in cell B2 (=INDIRECT(A2))

Named ranges in example:
F2:F3 as "Hyundai"
F4:F6 as "Suzuki"
 
Upvote 0
Just thought of an idea as to get the type and model dependent list figured out, as you can't name the ranges "h1", "h2" etc, try name them with a preceeding underscore "_h1", "_h2" etc, then using the same logic as above give the DV rule as: =INDIRECT(CHAR(95)&B2) to the cell C2 (model column)

It will then look at the named range _h1 (in the example above) and return a drop-down for anything related to _h1 (I10 / I20)!
 
Upvote 0
@rup1234
While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.

Please supply links to ALL other sites where you have asked this question.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,287
Members
452,631
Latest member
a_potato

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