Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Kris
 
Posts: n/a
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.misc
Kris
 
Posts: n/a
Default 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


  #4   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default 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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Validation range Nigel Excel Discussion (Misc queries) 2 December 15th 05 10:33 AM
Data Validation and Empty Row mzafar Excel Discussion (Misc queries) 1 July 19th 05 03:36 PM
Excel2000: Data Validation to restrict entries Arvi Laanemets Excel Discussion (Misc queries) 0 February 22nd 05 08:17 AM
Empty Cells in validation List Jasper Excel Worksheet Functions 1 January 28th 05 01:09 PM
Effect of Conditional Formatting, Data Validation Bill Sturdevant Excel Discussion (Misc queries) 1 January 25th 05 11:50 PM


All times are GMT +1. The time now is 07:39 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"