Dynamically populate dropdown list

android1

Board Regular
Joined
Feb 12, 2016
Messages
69
Hi,

I have a 2 dropdown lists.
The second dropdown is (dynamically) populated depending on what is selected in the first (using =INDIRECT).


The second dropdown list gets it's source data from 6 columns. The number of rows varies in each column.
The first dropdown list gets it's data from these column headers.

My problem is:

The second dropdown list will not populate because the number of rows varies in each column.
(I have had to add random data in each column so the row total match)

How can I remove the random data so that dropdown 2 will populate correctly.

In attached file - Col C = Dropdown List 1, Col D = Dropdown List 2

Col D data source = Col T:Y

https://www.dropbox.com/s/ksf36qivu7ky00y/On Call.xlsx?dl=0


How can dropdown 2 populate if I remove the random data (z) from the 6 column T:Y
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
There's no need for all those zs, it works for me without them.
However the DV formula in D2 should be
=INDIRECT(SUBSTITUTE(C2," ","_"))
and you will need to remove the trailing spaces from some of the cells in T1:Y1
 
Upvote 0
There's no need for all those zs, it works for me without them.
However the DV formula in D2 should be
=INDIRECT(SUBSTITUTE(C2," ","_"))
and you will need to remove the trailing spaces from some of the cells in T1:Y1

Thank you.
 
Upvote 0

Forum statistics

Threads
1,214,780
Messages
6,121,527
Members
449,037
Latest member
tmmotairi

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