Data Validation - Ignore Blanks Not Working?

cevors

New Member
Joined
Aug 1, 2019
Messages
4
Good evening,

I'm trying to create a drop-down that is essentially generated by an array formula. The range is 15 cells, but the list often has less than 15 values. Is there a way to get the drop-down menu to not have a bunch of blank white space at the bottom with a scrollbar for lists that are shorter than 15? In essence, is there a way to 'ignore blanks' even though the cells have formulas in them?
 

cevors

New Member
Joined
Aug 1, 2019
Messages
4
The formula is an array formula:
{=IFERROR(INDEX(Lists!$BS$3:$BS$521,SMALL(IF('Loot Council'!$Y$1=Lists!$BR$3:$BR$521,ROW(Lists!$BS$3:$BS$521)-MIN(ROW(Lists!$BS$3:$BS$521))+1,""),ROW()-2)),"")}

So the IFERROR formula displays a blank cell is there is an error -- but is there a way to have the Data Validation ignore the cells that display as blank?
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
42,250
Office Version
365
Platform
Windows
Here is one option for you to consider.
Suppose those 15 cells with formulas are J2:J16, but less actually show values.
In another cell (I have used K1) put this formula. =CELL("Address",J2)&":"&CELL("address",OFFSET(J2,COUNTIF(J2:J16,"?*")-1,0)) (You can hide the column with this formula if you want)
Now, in your Data Validation cell(s), choose for Data Validation: Allow: List -> Source: =INDIRECT($K$1)
 

Forum statistics

Threads
1,082,254
Messages
5,364,057
Members
400,776
Latest member
JimmyLee

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