tz62lm said:thanks for the info. but I'm have 4 columns of data validation. each one is dependent on the previous. And the issue is when any of the data values is duplicated, Excel doesn't handle this well with the formula I'm using with INDIRECT and MATCH.
Ekim said:Gurps,
You could do this with “real” combo boxes.
See the exhibit:
Your data is in sheet2, columns G, H and I.
It is assumed that the max number of rows for the data is 20 (column H).
Step 1
In column K, list your data headings and name this list as “myData”.
Step 2
D3: put the formula -
=$C$3+6
From the Forms menu, create a Combo box that covers cells C3:D3.
The input range is “MyData” (no quotes)
Cell link is $C$3.
By covering cells C3:D3 with the Combo Box, you are hiding the formula in D3 and the link cell in C3.
Step 3
D5: put the formula -
=(ADDRESS(2,D3) &":"&ADDRESS(20,D3))
Note that the formula in D5 is linked to the formula in D3 (step 2 above).
Step 4
From the Insert menu | Name | Define, create a named range called “Master” that refers to “=INDIRECT(Sheet2!$D$5)” (no quotes).
Step 5
From the Forms menu, create another Combo box that covers cells C5:D5.
Input range is “Master” (no quotes)
Cell link range is $C$5.
Again, by using the second combo box to cover cells C5:D5, you are hiding the link cell in C5 and the formula in D5.
That’s it.
Access the first combo box and make a selection. The second combo box will reflect your choice from the first combo box.
HTH
Mike
UHsoccer said:...
Is it possible to have the lists on a different sheet than the dropdown selections?
sameena said:I have just used the method to create indirect links - this works really well if you have a single entry in each cell. How about if I had multiple words in a cell for example in the first column I had a country called New Zealand and then in the next column I had towns in new zealand.
At the moment the first column countries has an entry with 2 words in ie "New" and "Zealand" - when you pick this from the list the dependent cell with the formula indirect is blank.
How do you solve this problem.
Thanks
Aladin Akyurek said:On 2002-02-17 07:20, Gurps wrote:
if I use the data validation method, how do I lay out the table of data??
I would prefer to use "real" combo boxes.Would you be able to tell me how to do this method as well?
I don't believe the ComboBox would suit your purpose. The "Input range" appears not to like INDIRECT formulas.
As Juan suggested, it's more convenient to use Lists thru data validation.
The method is as follows:
Enter in some column what follows:
{"USA";"FRANCE"}[ That's, enter USA in a cell, then FRANCE in the next cell down ]
Select these cells, go to the Name Box on the Formula Bar, and type COUNTRIES followed by enter.
Enter in a column next to COUNTRIES:
{"New York";"Pittsburgh";"Los Angeles";"Boston"}
Name this range of cells USA via the Name Box as described above.
Enter in a column next to USA:
{"Paris";"Nice";"Toulon"}
Name this range FRANCE.
Just to see how this works,
activate A1 in some worksheet in the same workbook;
activate Data|Validation;
choose 'List' for 'Allow';
enter as 'Source' the formula:
=COUNTRIES
click OK;
activate another cell in the same worksheet, say, C1;
activate Data|Validation;
choose 'List' for 'Allow';
enter as 'Source' the formula:
=INDIRECT(A1)
click OK.
Now you have two lists of which the 2nd depends on the selection from the 1st.