blanks in data validation list dropdown

C

confused

Hi,

I am uing data validation on cell A1 and choosing to allow from a list.
In the source box, I am clicking on column L (source =$L:$L). I have
selected the 'ignore blank' checkbox.

column L has 13 names. If there is something in columns A, B, C....etc in
rows 14 or greater then the dropdown list in cell A1 shows blanks along with
the names from column L.

does anyone know how I stop this happening?

Thanks for any help you cangive
 
M

Mark Lincoln

This *is* interesting. This behavior also occurs if you have data in
the same row as a blank cell in the validation area when you specify a
finite range rather than a whole column. But it does not occur when
you have data a different column from that in which the validation is
defined.

What to do? You could move your validation data down below your other
data and set your print area to not include the validation area(s).
For that matter, you could move it to column A, below your working
data. Or perhaps somebody else on this list has a better answer,
because for now I don't.

Too bad validation data can't be on a separate sheet.
 
M

Mark Lincoln

Oops! It turns out that data in any column that is in the same row as
a blank cell in the validation table causes the problem. Yuck.
 
M

Mark Lincoln

I found a solution. Define a named range on another sheet. Then in
the Data Validation dialog, enter as the data validation source:

=namedrange

changing "namedrange" to the name of your data validation range.

Note that data next to blank cells in the named range will still cause
the blank lines to appear. To prevent this, use that sheet only for
data validation tables and put the tables in a single column so that
there is no data next to them. (This may be why I've never seen this
behavior before. All my validation tables in the few spreadsheets in
which I use them happen to be in single columns.)
 
C

confused

this works a treat, thanks Mark!

Mark Lincoln said:
I found a solution. Define a named range on another sheet. Then in
the Data Validation dialog, enter as the data validation source:

=namedrange

changing "namedrange" to the name of your data validation range.

Note that data next to blank cells in the named range will still cause
the blank lines to appear. To prevent this, use that sheet only for
data validation tables and put the tables in a single column so that
there is no data next to them. (This may be why I've never seen this
behavior before. All my validation tables in the few spreadsheets in
which I use them happen to be in single columns.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top