+ Reply to Thread
Results 1 to 5 of 5

Filtering with dynamic criteria

  1. #1
    Registered User
    Join Date
    01-13-2021
    Location
    PA, United States
    MS-Off Ver
    O365
    Posts
    3

    Filtering with dynamic criteria

    I have a table that I'm filtering based on cascading dropdowns. That part all works fine unless I don't know the info and want to leave it blank. I created a complex If/Then function to do different filters based on the dropdowns, but I thought of a more elegant solution that I can't seem to get to work. My formula is two parts:

    1st:
    I have text that mirrors my conditions in the filter function
    (Table1[MANUFACTURER]=B1)
    (Table1[Phase(s)]=B2)
    (Table1[Voltage (AC)]=B3)

    Each of those is next to a column with a formula like =IF(B1="","",P3) where if it's blank, we return blank and if it's not, put the text in the cell.

    Below that I used =TEXTJOIN("*",TRUE,Q3,Q4,Q5) to get (Table1[MANUFACTURER]=B1)*(Table1[Phase(s)]=B2)*(Table1[Voltage (AC)]=B3) in Q7

    2nd:
    On my filter function =FILTER(Table1,Q7,"Your choices do not match any inverter type. Please make changes and try again") I want to insert the text as my filter criteria where "Q7" is. I've tried multiple things like the T function, concat, etc, and nothing has worked.

    so my question is first, is this even possible to do what I want? If so, when I text join only 2 of the options it would show (Table1[MANUFACTURER]=B1)*(Table1[Voltage (AC)]=B3) and then filter, but it doesn't.
    If not, is there another way to think about this?

    Would really love some help.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Filtering with dynamic criteria

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    01-13-2021
    Location
    PA, United States
    MS-Off Ver
    O365
    Posts
    3
    Do I have to?

    Quote Originally Posted by AliGW View Post
    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.

  4. #4
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Filtering with dynamic criteria

    If you want serious help, Yes, otherwise it could be days of speculation and crystal ball gazing.
    torachan.

  5. #5
    Registered User
    Join Date
    01-13-2021
    Location
    PA, United States
    MS-Off Ver
    O365
    Posts
    3

    Re: Filtering with dynamic criteria

    Fair enough. Should be attached now.
    Attached Files Attached Files

+ 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. [SOLVED] DAX/Measures MAX with Dynamic Filtering
    By lanmel in forum Excel General
    Replies: 6
    Last Post: 07-25-2019, 10:52 AM
  2. Dynamic Filtering to New Sheets
    By etudes in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-23-2018, 10:51 PM
  3. Dynamic date filtering
    By jarkko_2 in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 11-15-2016, 01:33 PM
  4. Filtering Dynamic Range
    By SHUTTEHFACE in forum Excel General
    Replies: 4
    Last Post: 02-27-2015, 11:04 PM
  5. dynamic filtering vba error...need help..??
    By Jhon Mustofa in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-02-2013, 05:04 AM
  6. [SOLVED] trouble filtering a list. Why isn't column filtering?-number of criteria
    By Pat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-18-2005, 11:05 AM
  7. Dynamic Auto filtering based on criteria
    By wannabeMVP in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-19-2005, 12:44 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