Data Validation Dependent List (Using Indirect and Substitute functions)

yusbar15

New Member
Joined
Jun 7, 2017
Messages
13
Hi, I would like to ask question on data validation dependent list that involves the use of indirect and substitute function. Once the code is chosen from drop down list. Only the relevant data will be put in the drop down list in another column. The data source is is another worksheet.

Here is the example.

Food Name Area Location
Noodle2800-China100123-China
Sandwich0100-Germany100631-Germany
0300-Austria100571-Austria

<tbody>
</tbody>
#Above is the data source in another worksheet.

On another worksheet, I would like to make the dependent list for data entry.

Thanks
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Try this...
B​
C​
D​
E​
F​
3​
Type​
Category​
Breed​
4​
FishMarineShark
5​
6​
7​
1. create a range name for the main category
8​
2. create a range name for each sub-category, based on what it is
9​
10​
for mine, the main category is called Type (A2)
11​
for the sub categories I give them the same name as in Type (B2:E2)
12​
(if you have another level, you would repeat this for eacg subcategory, to get sub-sub-categries)
13​
14​
To get the DD's to work...
15​
16​
DD for B4 =TYPE
17​
DD for C4 =INDIRECT(SUBSTITUTE(B4," ","_"))
This would get used with the following data table...
A​
B​
C​
D​
E​
F​
G​
H​
I​
J​
2​
TypeMammalBirdFishBugDogCatFresh WaterMarine
3​
MammalDogDomesticFresh WaterInsectDobermanLionTroutShark
4​
BirdCatWildMarineArachnidPoodleTigerMinowBarracuda
5​
FishCowbulldogHousePike
6​
Bugs
 
Upvote 0

Forum statistics

Threads
1,215,606
Messages
6,125,803
Members
449,261
Latest member
Rachel812321

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