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
 

jim may

Well-known Member
Joined
Jul 4, 2004
Messages
7,454
By what means have you inserted the drop down?

1) Data Validation
2) Forms ComboBox
3) Active-X ComboBox
 

jim may

Well-known Member
Joined
Jul 4, 2004
Messages
7,454
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?
 

CWatts

Well-known Member
Joined
Jan 22, 2010
Messages
701
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
 

Forum statistics

Threads
1,082,343
Messages
5,364,794
Members
400,815
Latest member
gangstar67

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top