+ Reply to Thread
Results 1 to 6 of 6

Data Validation list with filtered data

  1. #1
    Registered User
    Join Date
    01-17-2012
    Location
    Utrecht
    MS-Off Ver
    Excel 2007
    Posts
    6

    Data Validation list with filtered data

    I would like to have a Data Validation list in cell D5 on Sheet1. The items in this list should be dynamically based on a table on Sheet2, but I only need the ones where Column2 is TRUE. Below is an example of my table on Sheet2:
    Please Login or Register  to view this content.
    Based on the tabel above the Data Validation list in cell D5 on Sheet1 should only contain Item1, Item2 and Item4. Is this somehow possible (preferably without using VBA)?

    I know I can create dynamic Named Ranges, but I don't know how to filter them based on another column.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Data Validation list with filtered data

    You create a second range that uses formulas to make a list of the TRUE items. How are the TRUE/FALSE entries in column2 occurring? If that's a formula, we can edit that formula to help with this.... post up the formula in the first cell in that column.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    01-17-2012
    Location
    Utrecht
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Data Validation list with filtered data

    Quote Originally Posted by JBeaucaire View Post
    You create a second range that uses formulas to make a list of the TRUE items. How are the TRUE/FALSE entries in column2 occurring? If that's a formula, we can edit that formula to help with this.... post up the formula in the first cell in that column.
    The TRUE/FALSE entries in Column2 is indeed a formula (=IF(COUNTIF(Sheet3!A:A;A2)>0;TRUE;FALSE)). It basically counts if there are occurences of the specific item in a range on Sheet3.

    Can you explain how to create a range based on those formulas? I've attached a simple example of the situation.

    example.xlsx

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Data Validation list with filtered data

    Like so... instead of TRUE/FALSE, we change that formula to give "unique numbers" in an index. Then we make a list up to the MAX of that index and then list those unique values in the final column. A dynamic named range MyList will grow/shrink on its own as items appear/disappear from that list. We use that named range for the SHeet1 Data Validation.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-17-2012
    Location
    Utrecht
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Data Validation list with filtered data

    Thanks! That works beautifully!

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Data Validation list with filtered data

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ 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