Removing Blanks from Dropdown

Mayanwolfe

New Member
Joined
Jun 5, 2013
Messages
27
I have a dropdown in which a state can be selected. A second dropdown then retrieves and displays a list of the counties in that particular state that the user can choose from.

The available county list is retrieved using an array formula:
{=IFERROR(INDEX(RatingTables!$MF$8:$MF$3195, SMALL(IF(LandingPage!$G$20=RatingTables!$ME$8:$ME$3195, ROW(RatingTables!$ME$8:$ME$3195)-MIN(ROW(RatingTables!$ME$8:$ME$3195))+1, ""), ROW(B1))),"")}
and there are a variable number of counties in each state, so I have dragged the formula quite far down the column.

The problem is that because of this, my county dropdown has quite a few spaces at the end of its selection list (depending on the state). I've attemped to remove them using a dynamic table (the available counties populate in column R):
=OFFSET(LandingPage!$R$1,1,,COUNTA(LandingPage!$R:$R)-1)
but it still includes the spaces at the end of the dropbox scroll list.

Does anyone know how I can get rid of those pesky spaces? Thanks so much!
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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