dependent dropdowns for child/parent table

Oscar_NL

New Member
Joined
May 17, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I have a table with a parent-child relationship and some other data:
ChildParentInfo
1
21
32
52
4512
5111
7211
722721
724721
1275721
1294721
13081
13091308
13111308
14601308
14791308
14931


In a tree format this would look like this:
Picture2.png


I want to have 3 dependent dropdowns, one for each level.
For example:
  • I choose 1 in the 1st.
  • Then in the 2nd I can only choose from [2, 511, 721, 1308, 1493].
  • Would I choose 721, then for the 3rd dropdown my options should be limited to [722, 724, 1275, 1294].

Any ideas about how to achieve this (with or without VBA)?
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
I think it does not, unfortunately.

Looking at it again, probably the example table with the numbers that I provided is not really intuitive to read. Here the same table with different values:
ChildParentInfo
Car
BMWCar
M1BMW
X3BMW
325iBMW
BugattiCar
AudiCar
A3Audi
A7Audi
Q3Audi
S8Audi
VolvoCar
V60Volvo
V90Volvo
XC40Volvo
XC90Volvo
BentleyCar


So, after choosing Car in the first dropdown, I want to see only the brands (from the Child column) in the 2nd dropdown (which are identified by the value Car in the Parent column). After that, in the 3rd dropdown I want the models that are valid for the active brand only.

Once I have this, I can make the solution scalable, catering for more levels.
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,306
Members
452,633
Latest member
DougMo

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