Hi Guity ,
The master list of countries , cities and individudals is in columns H , I and J , on Sheet1.
First we need to connect the countries and the cities ; for this , the name of the country to which the cities belong , will be repeated as many times as there are cities e.g. if the U.S. has 4 cities , then the name United States is repeated 4 times. This connection is done in columns A and B , on Sheet1.
Next we need to connect the cities and the individuals ; this is done in columns O and P. Following the same concept as in the case of the countries and the cities , each city name will be repeated as many times as there are individuals from that city. For the same example of the U.S. , for the 4 cities , since there are 6 individuals from Washington D.C. , Washington D.C. should be repeated 6 times.
Thus Sheet1 just organizes the data in the way that makes it easy to create the dependent comboboxes' lists.
Generating these is done using the formulae on the Calculations tab , and two named ranges :
1. Selected_cities , which refers to the formula :
=OFFSET(Sheet1!$B$2:$B$33,Calculations!$B$2-1,0,Calculations!$B$3,1)
2. Selected_individuals , which refers to the formula :
=OFFSET(Sheet1!$P$2:$P$21,Calculations!$B$6-1,0,Calculations!$B$7,1)
If you need to extend the 3 ranges viz. the countries , cities and individuals , all you need to do are :
1. Extend the master list of countries , cities and individuals , in columns H , I and J , as required.
2. Make the necessary connections between the countries and the cities , in columns A and B , on tab Sheet1.
3. Make the necessary connections between the cities and the individuals , in columns O and P , on tab Sheet1.
4. Change the range address references $B$33 and $P$21 in the above formulae.
5. Change the range address references on tab Calculations viz.
a) $H$10 in the formula in B1
b) $A$33 in the formulae in B2 and B3
c) $B$33 in the formula in B5
d) $O$21 in the formulae in B6 and B7
Narayan