+ Reply to Thread
Results 1 to 3 of 3

Unique Dynamic Validated List

  1. #1
    Jon C
    Guest

    Unique Dynamic Validated List

    Hi,

    I have a column that will contain names. I'd like to use validation to make
    sure that when a name is added it can be selected from a drop down assuming
    the already appears in the column already. If not you can add a new name.

    This works fine by defining a dynamic named range of the column as the
    validation list. The problem however is that it doesn't give a unique list
    i.e. the range is the whole of the column entered so far hence I get
    multiple occurrences of the same name.

    Does anyone know how I can make this a unique list?

    TIA,

    Jon C



  2. #2
    Debra Dalgleish
    Guest

    Re: Unique Dynamic Validated List

    Without using programming, you can right-click on a cell, and select
    Pick From List, and select a name from the dropdown list.

    Or, using the keyboard, press Alt + the down arrow.

    Jon C wrote:
    > I have a column that will contain names. I'd like to use validation to make
    > sure that when a name is added it can be selected from a drop down assuming
    > the already appears in the column already. If not you can add a new name.
    >
    > This works fine by defining a dynamic named range of the column as the
    > validation list. The problem however is that it doesn't give a unique list
    > i.e. the range is the whole of the column entered so far hence I get
    > multiple occurrences of the same name.
    >
    > Does anyone know how I can make this a unique list?


    --
    Debra Dalgleish
    Excel FAQ, Tips & Book List
    http://www.contextures.com/tiptech.html


  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Jon,

    Use the CountIf worksheet function. If the result is 0 then add the name.

    Example:
    N = Excel.WorksheetFunction.CountIf(Range("A1:A50"), "Jon")

    N will equal the number of times the name Jon is found in the range of A1 to A50.

    Sincerely,
    Leith Ross
    Last edited by Leith Ross; 06-10-2005 at 12:12 PM.

+ 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