Dependent Drop Down List with Hyphens

jleigh37

New Member
Joined
Feb 12, 2016
Messages
9
Hello,

I'm having trouble creating a dependent drop down list. I need to create a drop down list with a "department number - description"...which I did and it came out fine. Then I need to create a dependent drop down list that has "class number - description", however this is where I'm getting stuck. Here is my data. The first column is the Department drop down list and the next four columns would be dependent if I chose 100 - Tops, 200 - Dresses, ect. Any help would be greatly appreciated. I've tried reading other blog posts but can't seem to fix it?

DeptTopsDressesBottomsAccessories
100 - Tops100 - Tops/BlousesTops150 - Dresses170 - Denim210 - Accessories
200 - Dresses110 - TanksTops160 - Skirts180 - Pants230 - Intimates
300 - Bottoms120 - TeesTops200 - Shorts240 - Shoes
400 - Accessories130 - Sweaters/CardigansTops250 - Jewelry
140 - OuterwearTops

<colgroup><col><col><col span="2"><col></colgroup><tbody>
</tbody>
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Here's the easiest way I can think of to do it.

Let's say your data looks like this:

ABCDE
1DeptTopsDressesBottomsAccessories
2100 - Tops100 - Tops/BlousesTops150 - Dresses170 - Denim210 - Accessories
3200 - Dresses110 - TanksTops160 - Skirts180 - Pants230 - Intimates
4300 - Bottoms120 - TeesTops200 - Shorts240 - Shoes
5400 - Accessories130 - Sweaters/CardigansTops250 - Jewelry
6140 - OuterwearTops

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



Names in row 1, data below. Now select columns A:E, then from the Formulas tab, Defined Names section, click on Create from Selection, check Top row and uncheck Left column. You have now just created a named range for each of those columns, with the name being the heading.

Now let's say your first drop down is in G1. Select G1, and from the Data Tab, Data Tools section, click Data Validation > Allow: List, and in the Source: box put: =Dept

And if your second drop down is in H1, Select H1, > Data Validation > Allow: List, and in the Source: box put:
=INDIRECT(MID(G1,7,99))

You're done! The MID in the formula is to skip past the "100 - " part of the Dept name in G1, otherwise the name does not match the names in B1:E1.

Let me know if this helps.
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,821
Members
449,049
Latest member
cybersurfer5000

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