Removing blanks from a drop down

darwinquintero

New Member
Joined
Nov 20, 2011
Messages
14
Hi guys :) I've inserted a drop down list in my spreadsheet, and I am getting (as well as the information I desire), blanks when I click the drop down, does anyone know how to remove these blanks? It is imperative that I do not remove the cells highlighted in the range.

Thank you in advance for any answers :D
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
By what means have you inserted the drop down?

1) Data Validation
2) Forms ComboBox
3) Active-X ComboBox
 
Upvote 0
So, the obvious question.. Whay are there blanks? Are you using within your Data validation List and in the Source have entered "=MyList" (without the quote marks)?
Is MyList a valid Named range, including the Blank rows? Does this range (MyList) get overwritten with new data periodically form some update process?
 
Upvote 0
You can use OFFSET in your defined names if the blanks aren't scattered throughout your list and are only at the end.

For example, if you have a range of cells A1:A10 and only the first 5 are filled out, and you don't want blanks at the end, make this your named range. It basically says it starts in cell A1, and counts the number of cells that aren't blank and expands the range based on that result.

=OFFSET(Sheet1!$A$1,0,0,COUNTA(Sheet1!$A$1:$A$10),1)

Here's a YouTube video that may help illustrate it, too.

http://www.youtube.com/watch?v=2UDRm-hU0Jw
 
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,727
Members
449,049
Latest member
MiguekHeka

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