Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Validation List Box

I am using a validation list box but would like the list to not show any
blank cells that are in my list range. Is that possible?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Validation List Box

You would need to filter out the blanks into a new list and show that.

This formula will create a new such list

=IF(ISERROR(SMALL(IF($A$1:$A$20<"",ROW($A1:$A20), ""),ROW($A1:$A20))),"",
INDEX($A$1:$A$20,SMALL(IF($A$1:$A$20<"",ROW($A1:$ A20),""),ROW($A1:$A20))))

it is an array formula, select a range of cells for the no-blanks data, ad
the formula to the formula bar, and Ctrl-Shift-Enter

--

HTH

RP
(remove nothere from the email address if mailing direct)


"SMBR" wrote in message
...
I am using a validation list box but would like the list to not show any
blank cells that are in my list range. Is that possible?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Validation List Box


Hi Bob,

I tried out your formula but it didn't work well

Is this what your formula should do?
1) list with blanks in cells A1:A20
2) copy 20 times your formula in, let say, C1:C20 so that this range
contains no blanks (except at the end af course)

Thanks for any reaction
Alain


--
mcs51mc
------------------------------------------------------------------------
mcs51mc's Profile: http://www.excelforum.com/member.php...o&userid=28645
View this thread: http://www.excelforum.com/showthread...hreadid=482204

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Validation List Box

Alain,

Yes that is it. Remember to array enter it.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"mcs51mc" wrote in
message ...

Hi Bob,

I tried out your formula but it didn't work well

Is this what your formula should do?
1) list with blanks in cells A1:A20
2) copy 20 times your formula in, let say, C1:C20 so that this range
contains no blanks (except at the end af course)

Thanks for any reaction
Alain


--
mcs51mc
------------------------------------------------------------------------
mcs51mc's Profile:

http://www.excelforum.com/member.php...o&userid=28645
View this thread: http://www.excelforum.com/showthread...hreadid=482204



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Validation List Box


Bob Phillips Wrote:
Alain,

Yes that is it. Remember to array enter it.That array thing does it all :) Thanks a lot it works now



--
mcs51mc
------------------------------------------------------------------------
mcs51mc's Profile: http://www.excelforum.com/member.php...o&userid=28645
View this thread: http://www.excelforum.com/showthread...hreadid=482204

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 invalid in dynamic validation list ilia Excel Discussion (Misc queries) 0 November 7th 06 12:54 PM
data validation invalid in dynamic validation list ilia Excel Worksheet Functions 0 November 7th 06 12:54 PM
Validation (Drop down list vs simple text length validation) Bob Phillips[_6_] Excel Programming 2 April 27th 04 07:47 PM
Validation (Drop down list vs simple text length validation) Jason Morin[_2_] Excel Programming 1 April 27th 04 04:56 PM
Validation (Drop down list vs simple text length validation) Pete McCosh Excel Programming 0 April 27th 04 03:49 PM


All times are GMT +1. The time now is 04:00 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"