ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Data validation and empty cells (https://www.excelbanter.com/excel-discussion-misc-queries/61100-data-validation-empty-cells.html)

Kris

Data validation and empty cells
 
range("d1").Validation.add formula1:=
"=$A$1:$A$7",Type:=xlValidateList,operator:=xlBetw een


How to avoid empty entries in drop down box if some of cell from A1:A7
are empty?

Thanks

Bob Phillips

Data validation and empty cells
 
Sort A1:A7 so that the empties are at the bottom and use

=OFFSET($A$1,,,COUNT($A$1:$A$7),1)

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Kris" wrote in message
...
range("d1").Validation.add formula1:=
"=$A$1:$A$7",Type:=xlValidateList,operator:=xlBetw een


How to avoid empty entries in drop down box if some of cell from A1:A7
are empty?

Thanks




Kris

Data validation and empty cells
 
Bob Phillips wrote:
Sort A1:A7 so that the empties are at the bottom and use

=OFFSET($A$1,,,COUNT($A$1:$A$7),1)



Perfect, with one correction COUNTA

Thanks



Bob Phillips

Data validation and empty cells
 
I was assuming they were all numbers <vbg

Good spot!

Bob

"Kris" wrote in message
...
Bob Phillips wrote:
Sort A1:A7 so that the empties are at the bottom and use

=OFFSET($A$1,,,COUNT($A$1:$A$7),1)



Perfect, with one correction COUNTA

Thanks






All times are GMT +1. The time now is 06:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com