List Box Question

  • Thread starter Thread starter Damil4real
  • Start date Start date
D

Damil4real

I have two list boxes, one in column I31 and the other in column E42.
They both have different data in them.

I want the list box in column E42 to show a specific value based on
the data chosen in list box I31.

If listbox in I31 shows A, then show C in listbox E42
If listbox in I31 shows F, then show G in listbox E42
If listbox in I31 shows Z, then show R in listbox E42.

I need to do this for about 7 Ifs.

Thanks!
 
Hi,

Here are the steps for creating a dynamic data validation list:

1. Create three or more list in the spreadsheet. For example:
A B C
New York Quebec Canada
Seattle Toronto US
Miami Victoria

You would name lists: US (A1:A3), Canada (B1:B3), Countries (C1:C2) this
last is optional

2. Select the cell where you want the initial validation list, for this
example, D1
3. Choose Data, Validation
4. From the Allow drop-down and choose List
5. In the Source box enter the following formula
=Countries
6. Move to the location where you want the dynamic (changing) list to
appear, say for example E1
7. Choose Data, Validation, List and in the Source box enter the formula
=INDIRECT(D1)

You can also make a self-referential dynamic data validation list.
 
Back
Top