+ Reply to Thread
Results 1 to 4 of 4

Drop down list to allow only unique values in a column

  1. #1
    Registered User
    Join Date
    06-10-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2003
    Posts
    4

    Drop down list to allow only unique values in a column

    I have a list of items on column A as follows:

    Monday
    Tuesday
    Wednesday
    Thursday
    Friday

    In column B rows 1 to 5, I have drop down lists which can select values from column A. I would like to set it up so that if Monday was selected in cell B1 it would not be available for selection in any of the other cells in column B. How do I do this?

  2. #2
    Forum Contributor
    Join Date
    02-28-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    272

    Re: Drop down list to allow only unique values in a column

    In data validation custom option put this formula

    Please Login or Register  to view this content.
    Please consider adding a * if I helped

  3. #3
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Drop down list to allow only unique values in a column

    Mzun,

    Welcome to the forum!
    Attached is an example workbook based on the criteria you described.
    Row 1 is a header row so actual data starts on row 2
    Column A contains the full list of Days
    Column B contains the list of Remaining Days (those that have not yet been selected). It gets those days with this formula in cell B2 and copied down:
    Please Login or Register  to view this content.
    Then I created a named range for the Remaining Days named listRemainingDays which is defined with this formula:
    Please Login or Register  to view this content.
    In column D is the drop-down list where you can select a day. Each time you select a day, the other drop-down lists will have had the selected days removed from their lists. They use the Data Validation List option with formula:
    Please Login or Register  to view this content.

    It should be noted that wfm007's proposed solution will also prevent duplicates from being entered, but it does not allow a drop-down list. The days would have to be manually typed in, which can allow for spelling errors.
    Attached Files Attached Files
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    06-10-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Drop down list to allow only unique values in a column

    Thank you. That did the job.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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