+ Reply to Thread
Results 1 to 6 of 6

Automatically Update Drop Down List To Show Exact Amount Of Choices

Hybrid View

  1. #1
    Forum Contributor swordswinger710's Avatar
    Join Date
    02-20-2008
    Location
    Bright, Canada
    MS-Off Ver
    2010
    Posts
    845

    Question Automatically Update Drop Down List To Show Exact Amount Of Choices

    Hi,

    I'm trying to set up my lists in Name Manager to refer to all cells in a column that contain data. Here is what I've got so far:

    =OFFSET(Values!$A$2, 0, 0, COUNTA(Values!$A:$A),1)

    This works apart from the problem that it displays one empty value beneath the choices in the drop down list. What am I doing wrong?
    There is so much good in the worst of us,
    And so much bad in the best of us,
    That it hardly behooves any of us
    To talk about the rest of us.

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Automatically Update Drop Down List To Show Exact Amount Of Choices

    Try
    =OFFSET(Values!$A$2,0,0,COUNTA(Values!$A:$A)-1,1)

    It looks like you have a value in A1 that you don't want in your list but it is being counted in the COUNTA(A:A)

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Automatically Update Drop Down List To Show Exact Amount Of Choices

    hi swordswinger710, does A1 contain a header? your COUNTA might have included it & when u start from A2, it gave u an extra row

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Automatically Update Drop Down List To Show Exact Amount Of Choices

    Hi


    I usually,use this formula for Named LIst..

    =OFFSET(Values!$A$2,,,MATCH("*",Values!$A$2:$A$5000,-1))

    Is this, works for you?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Forum Contributor swordswinger710's Avatar
    Join Date
    02-20-2008
    Location
    Bright, Canada
    MS-Off Ver
    2010
    Posts
    845

    Re: Automatically Update Drop Down List To Show Exact Amount Of Choices

    benishiryo, you were right, Cutter and Fotis1991's solutions fixed that though. Thank you all!

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Automatically Update Drop Down List To Show Exact Amount Of Choices

    You're welcome. Thanks for the 'star tap'.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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