Data Validation for 3 columns

nikhil_715

New Member
Joined
Apr 2, 2019
Messages
13
[TABLE="width: 500, align: center"]
<tbody>[TR]
[TD]TOM
[/TD]
[TD]CANADA
[/TD]
[TD]PANCAKE
[/TD]
[/TR]
[TR]
[TD]MACK
[/TD]
[TD]ENGLAND
[/TD]
[TD]HOTDOG
[/TD]
[/TR]
[TR]
[TD]HARDY
[/TD]
[TD]USA
[/TD]
[TD]BURGER
[/TD]
[/TR]
[TR]
[TD]TOM
[/TD]
[TD]CHINA
[/TD]
[TD]MOMOS
[/TD]
[/TR]
[TR]
[TD]MICK
[/TD]
[TD]CANADA
[/TD]
[TD]PIZZA
[/TD]
[/TR]
</tbody>[/TABLE]
Hi, I have 3 columns , in column A I have around 220 line items which are unique words, in column B there are 433 line items which are unique. All the items in one or the other form in column A are linked to each items in B. (Example I have Tom in column a which has further 2 items which are linked in column B ) and similarly column B is further linked up with column C which has another 1646 line items. I want to validate cells in such a way that when I select from column A drop list , the other cell for column B should only show me the items in the drop list which are related to column A (Ex if I select TOM from the drop list the other list should only allow me to select CANADA ,CHINA in the drop box) further in the third cell it should only allow me to select options which are linked to column B ,in the above case I selected TOM I get to select CANADA OR CHINA then I select CANADA it should allow me to only select from PANCAKE or PIZZA. This is a small example Pancakes might also be linked to another country or name .

The lines are in 1000s so its difficult for me to sort out the list in a new tab like the easy way where you List first column then under each name sorting out the country and then the food.

Thank you in advance
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Super duper cool thankyou so much

Hi Need to change or modify the code a bit, there are 2 sheets 1 and 2 ,as you are aware. The data validation is taking place in sheet 1 . I want to add 7 columns in sheet 1 before the data validation. You have created the coding based on the data is in column a b & c. Now since i have inserted columns before them, the columns have moved to h,i,j. In sheet 2 nothing has changed . Now the code is not working. Since I am not a coder i am finding it difficult to make the changes in the code .

Note: the inserted columns don't have any role to play with these 3 data validation columns.
I tried changing the codes but since I am not able to understand the coding language I am messing it up.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,179
Members
453,021
Latest member
Justyna P

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