+ Reply to Thread
Results 1 to 6 of 6

Excel conditional drop-down list using table ref.

  1. #1
    Registered User
    Join Date
    03-23-2021
    Location
    Copenhagen, Denmark
    MS-Off Ver
    MS Office 365 - Excel version 16.0
    Posts
    3

    Excel conditional drop-down list using table ref.

    I got this table of vehicles named VehicleList to maintain overview of active vehicles. All entries are formatted as text.

    Now, I need a drop-down list with IDs of only active vehicles from VehicleList, e.g. when ACTIVE = 1

    For now I know that placing the formula =INDIRECT("VehicleList[ID]") into Source gives me all the IDs from VehicleList.

    But how do I include the conditional part?


    The wanted result to following example is a drop-down list of IDs: 1, 3, 5
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by MFB; 03-24-2021 at 04:22 AM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Excel conditional drop-down list using table ref.

    Can you upload an example file so we can work with that? See yellow banner at top of page for instructions.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

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

  3. #3
    Registered User
    Join Date
    03-23-2021
    Location
    Copenhagen, Denmark
    MS-Off Ver
    MS Office 365 - Excel version 16.0
    Posts
    3

    Re: Excel conditional drop-down list using table ref.

    Now done

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Excel conditional drop-down list using table ref.

    The list needs to be a congruous list so I added a sheet2 and in B3 copied down as far as you need to
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    This pulls all the IDs where the vehicle is active.
    Then I created a defined dynamic name called "Actives"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Then, your validation List "Refers to" =Actives
    Does that work for you?
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Excel conditional drop-down list using table ref.

    I see you have 365. You can use this formula instead of the long AGGREGATE formula
    In Sheet2!B3 (it will copy down automatically)
    =FILTER(VehicleList[ID],VehicleList[ACTIVE]="1")

  6. #6
    Registered User
    Join Date
    03-23-2021
    Location
    Copenhagen, Denmark
    MS-Off Ver
    MS Office 365 - Excel version 16.0
    Posts
    3

    Re: Excel conditional drop-down list using table ref.

    Works very well, thanks

+ 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: 3
    Last Post: 06-15-2020, 05:50 PM
  2. Drop down menu to reference different sheets in searchable drop down list
    By MJAHNKE in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-05-2019, 01:00 PM
  3. Replies: 3
    Last Post: 10-22-2018, 01:06 AM
  4. Replies: 1
    Last Post: 07-08-2015, 08:32 PM
  5. [SOLVED] Excel 2007 : Prevent reference in dependent drop down list from changing
    By electrohead in forum Excel General
    Replies: 1
    Last Post: 07-17-2012, 01:56 PM
  6. Can I create a drop-down list that will reference other drop-down
    By fdebelo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-07-2006, 05:40 AM
  7. How do I set up a conditional cell from a drop down list in Excel
    By Mon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-23-2005, 04:32 PM

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