Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 266
Default Dynamic Drop Down List

I have a dynamic drop down list. I define a name "VendorList" with this
formula:

=OFFSET(Inventory!$KB$2,0,0,COUNTA(Inventory!$KB:$ KB),1)

In my dropdown location - I use =VendorList and it works.

The problem is that there are cell in column KB that evaluate to "" and I
don't want these in the dropdown. These are at the end of the column. So I
tried to define VendorList like this:

=OFFSET(Inventory!$KB$2,0,0,SUMPRODUCT(--(KB2:KB200<"")),1)

But this doesn't work. I get no items in the dropdown.

Is it that I can't use SUMPRODUCT in this way? Is there another solution?
Thanks for any help on this.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Dynamic Drop Down List


Try:

=OFFSET(Inventory!$KB$2,0,0,COUNTA($KB:$KB)-COUNTIF($KB:$KB,""),1)


--
NBVC

Where there is a will there are many ways.

'The Code Cage' (http://www.thecodecage.com)
------------------------------------------------------------------------
NBVC's Profile: http://www.thecodecage.com/forumz/member.php?userid=74
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=126615

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Dynamic Drop Down List

Define VendorList using *absolute references*:

=OFFSET(Inventory!$KB$2,,,SUMPRODUCT(--($KB$2:$KB$200<"")))


--
Biff
Microsoft Excel MVP


"dhstein" wrote in message
...
I have a dynamic drop down list. I define a name "VendorList" with this
formula:

=OFFSET(Inventory!$KB$2,0,0,COUNTA(Inventory!$KB:$ KB),1)

In my dropdown location - I use =VendorList and it works.

The problem is that there are cell in column KB that evaluate to "" and I
don't want these in the dropdown. These are at the end of the column. So
I
tried to define VendorList like this:

=OFFSET(Inventory!$KB$2,0,0,SUMPRODUCT(--(KB2:KB200<"")),1)

But this doesn't work. I get no items in the dropdown.

Is it that I can't use SUMPRODUCT in this way? Is there another solution?
Thanks for any help on this.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Dynamic Drop Down List

Ooops!

=OFFSET(Inventory!$KB$2,,,SUMPRODUCT(--($KB$2:$KB$200<"")))


I forgot to include the sheet name in the SUMPRODUCT function.

Should be:

=OFFSET(Inventory!$KB$2,,,SUMPRODUCT(--(Inventory!$KB$2:$KB$200<"")))

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Define VendorList using *absolute references*:

=OFFSET(Inventory!$KB$2,,,SUMPRODUCT(--($KB$2:$KB$200<"")))


--
Biff
Microsoft Excel MVP


"dhstein" wrote in message
...
I have a dynamic drop down list. I define a name "VendorList" with this
formula:

=OFFSET(Inventory!$KB$2,0,0,COUNTA(Inventory!$KB:$ KB),1)

In my dropdown location - I use =VendorList and it works.

The problem is that there are cell in column KB that evaluate to "" and I
don't want these in the dropdown. These are at the end of the column.
So I
tried to define VendorList like this:

=OFFSET(Inventory!$KB$2,0,0,SUMPRODUCT(--(KB2:KB200<"")),1)

But this doesn't work. I get no items in the dropdown.

Is it that I can't use SUMPRODUCT in this way? Is there another
solution?
Thanks for any help on this.





  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 266
Default Dynamic Drop Down List

Thanks to you both. I'm sure NBVC's answer is correct, but I changed the
SUMPRODUCT to absolute addressing and that worked perfectly. Thanks Biff.

David

"T. Valko" wrote:

Ooops!

=OFFSET(Inventory!$KB$2,,,SUMPRODUCT(--($KB$2:$KB$200<"")))


I forgot to include the sheet name in the SUMPRODUCT function.

Should be:

=OFFSET(Inventory!$KB$2,,,SUMPRODUCT(--(Inventory!$KB$2:$KB$200<"")))

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Define VendorList using *absolute references*:

=OFFSET(Inventory!$KB$2,,,SUMPRODUCT(--($KB$2:$KB$200<"")))


--
Biff
Microsoft Excel MVP


"dhstein" wrote in message
...
I have a dynamic drop down list. I define a name "VendorList" with this
formula:

=OFFSET(Inventory!$KB$2,0,0,COUNTA(Inventory!$KB:$ KB),1)

In my dropdown location - I use =VendorList and it works.

The problem is that there are cell in column KB that evaluate to "" and I
don't want these in the dropdown. These are at the end of the column.
So I
tried to define VendorList like this:

=OFFSET(Inventory!$KB$2,0,0,SUMPRODUCT(--(KB2:KB200<"")),1)

But this doesn't work. I get no items in the dropdown.

Is it that I can't use SUMPRODUCT in this way? Is there another
solution?
Thanks for any help on this.








  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Dynamic Drop Down List

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"dhstein" wrote in message
...
Thanks to you both. I'm sure NBVC's answer is correct, but I changed the
SUMPRODUCT to absolute addressing and that worked perfectly. Thanks Biff.

David

"T. Valko" wrote:

Ooops!

=OFFSET(Inventory!$KB$2,,,SUMPRODUCT(--($KB$2:$KB$200<"")))


I forgot to include the sheet name in the SUMPRODUCT function.

Should be:

=OFFSET(Inventory!$KB$2,,,SUMPRODUCT(--(Inventory!$KB$2:$KB$200<"")))

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Define VendorList using *absolute references*:

=OFFSET(Inventory!$KB$2,,,SUMPRODUCT(--($KB$2:$KB$200<"")))


--
Biff
Microsoft Excel MVP


"dhstein" wrote in message
...
I have a dynamic drop down list. I define a name "VendorList" with
this
formula:

=OFFSET(Inventory!$KB$2,0,0,COUNTA(Inventory!$KB:$ KB),1)

In my dropdown location - I use =VendorList and it works.

The problem is that there are cell in column KB that evaluate to ""
and I
don't want these in the dropdown. These are at the end of the column.
So I
tried to define VendorList like this:

=OFFSET(Inventory!$KB$2,0,0,SUMPRODUCT(--(KB2:KB200<"")),1)

But this doesn't work. I get no items in the dropdown.

Is it that I can't use SUMPRODUCT in this way? Is there another
solution?
Thanks for any help on this.







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
Dynamic Date Drop-down List Rob Excel Worksheet Functions 3 July 24th 09 09:22 PM
Drop down list dependant on previous drop down list Tenacioushail Excel Discussion (Misc queries) 1 July 1st 08 11:35 AM
How to feed dynamic information to a drop down List (Validation Feature)? kscramm Excel Worksheet Functions 1 March 28th 06 12:14 PM
Dynamic Drop Down List I''m Still Here Excel Discussion (Misc queries) 5 March 22nd 06 08:46 PM
multiple select from the drop down list in excel. list in one sheet and drop down in sriramus Excel Discussion (Misc queries) 5 October 27th 05 06:55 PM


All times are GMT +1. The time now is 06:15 AM.

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"