+ Reply to Thread
Results 1 to 5 of 5

Dynamic dropdown list quandry

  1. #1
    Registered User
    Join Date
    09-30-2004
    Posts
    64

    Dynamic dropdown list quandry

    I have a workbook with 2 tabs, one for products and the other is a form.

    I want to use a dynamic dropdown list which I know how to create.

    The problem that I have is that I have additional data regarding products below the dynamic name range and my dropdown is picking these up.

    For example:

    I have a range named alternate name and it resides in C66: C84.
    If I used the standard =offset(product!$c66,0,0,counta(product!c:c),1) I get my desired list plus everything in that column below my desired list.

    If I use count, the dropdown does nothing.

    any ideas?

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,613
    Replace "product!c:c" with "product!c1:c65"
    Ben Van Johnson

  3. #3
    Valued Forum Contributor
    Join Date
    08-26-2008
    Location
    singapore
    Posts
    626
    Change product!c:c to your range name , "alternate_name"

  4. #4
    Registered User
    Join Date
    09-30-2004
    Posts
    64
    hey thanks guys. I went with the c:c to c1:c65 but this isn't really dynamic, it works though.

    I wasn't aware the c:c to alt_name was an option. I'll look into it a bit further.

  5. #5
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    Its not clear to me what data you want to return
    You have a range "alt_name" that starts at C66 and goes past the end of the column C data. (assuming no blank rows in C)
    Do you want the dropdown to be populated with

    1)the data above C66, then use =OFFSET(D1,0,0, COUNTA(D1:D65), 1)

    2)only the data in below C65, use =OFFSET(D66,0,0, COUNTA(D:D)-COUNTA(D1:D65), 1)

    3)something else?
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Dynamic Drop Down List...with Criteria
    By TimE in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-17-2008, 11:43 AM
  2. Limited Characters in VBA dropdown list
    By nomad3rider in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-29-2007, 06:10 PM
  3. Can 2 Dropdown List Boxes work in tandem?
    By Spellbound in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-09-2007, 05:59 PM
  4. How to select different Macros from a dropdown list?
    By globulous in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-04-2007, 12:16 AM
  5. ComboBox dropdown for a large list
    By irish1two3 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-15-2007, 06:11 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1