Cascading validation (again)

kcmuppet

Active Member
Joined
Nov 2, 2005
Messages
412
Office Version
  1. 365
  2. 2010
I know this has been addressed a bunch of times, but I can't a solution for where the data are not already organised.

In the following example I'd like to have E1 validated on the countries, and E2 based on the subset of cities corresponding to the country selected in E1. Ideally E1 would not include duplicate entries
Book1
ABCDEF
1CountriesCities.Selected.Country:USAE1.validated.based.on.list.of.Countries
2USANew.York.Selected.City:.How.can.I.validate.E2.based.on.subset.of.cities.that.corresponds.to.value.selected.in.the.E1?
3USAPittsburgh....
4FranceParis....
5USALos.Angeles....
6USABoston..Defined.names:.
7FranceToulon..Countries=OFFSET(Sheet1!$A$2,0,0,COUNTA(Sheet1!$A:$A)-1,1)
8FranceNice..Cities=OFFSET(Sheet1!$B$2,0,0,COUNTA(Sheet1!$A:$A)-1,1)
Sheet1
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Here is something that might work, or be modified.
In column C (which can be hidden) put formula :-
=A2 & B2
copied down to create a list of unique values.

Cell E1 can be validated from the list of countries.
Cell E2 can have validation formula :-
=VLOOKUP(E1&E2,C2:C100,1,FALSE)=TRUE
(change the range accordingly)
 
Upvote 0

Forum statistics

Threads
1,203,502
Messages
6,055,772
Members
444,822
Latest member
Hombre

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