+ Reply to Thread
Results 1 to 2 of 2

Dropdown list always shows unique values from a column based on lookup value

  1. #1
    Registered User
    Join Date
    06-25-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    13

    Dropdown list always shows unique values from a column based on lookup value

    I have a worksheet (say, Sheet1) that I am going to manually import a large data set into on a weekly basis for reporting purposes. One of the columns from this data dump will have the header "Design Id" in the first row, but it may not be in the same column every time. I am trying to figure out how to create dropdown lists on a separate worksheet (say, Sheet2) in the same workbook where the data source always looks up the column containing the header "Design Id" from Sheet1 and then returns only the unique values from that column as options in the list. Not sure how to go about this, any ideas?

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Dropdown list always shows unique values from a column based on lookup value

    Name a cell on Sheet2 "IDs" located where a list of unique IDs can be stored - make sure that there is room for the list below that cell.

    Then copy this code, right-click the sheet tab of "Sheet2" and select "View Code", and paste the code into the window that appears. Then save the workbook as a macro-enabled .xlsm. The code will create a list of unique ID values in the named range IDs - then you can use Data Validation / list option, setting the source to =IDs and the dropdown on those cells will have the updated list, which will be created any time you activate Sheet2.

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

+ 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. Replies: 2
    Last Post: 10-25-2013, 07:01 PM
  2. [SOLVED] VBA for creating dropdown list from dynamic multiple values lookup
    By costin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-29-2013, 05:39 PM
  3. Combobox Dropdown List only shows first Item
    By Guido Meng in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2013, 09:49 PM
  4. SUMing values based on dropdown list in another column
    By IrishGuy007 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-05-2012, 05:45 AM
  5. Unique dropdown list based on two criteria but...
    By Darsk in forum Excel General
    Replies: 2
    Last Post: 09-28-2011, 04:37 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