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

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
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,223,887
Messages
6,175,199
Members
452,617
Latest member
Narendra Babu D

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