+ Reply to Thread
Results 1 to 9 of 9

Dynamic Filter Formula w/criteria list

  1. #1
    Registered User
    Join Date
    12-24-2018
    Location
    NC, US
    MS-Off Ver
    office 2016
    Posts
    12

    Dynamic Filter Formula w/criteria list

    Hello,

    I am trying to learn and implement some new formulas.

    Lets say I have a raw data table that contains transaction data with 25+ columns of unique transaction information. One of those columns list the customer name/ID. I have a separate table that is a list of all customers determining their tax exempt status (Yes or No). My goal is to in a separate worksheet, use the filter function spilling only the rows where the customer name/ID = "Yes". I am struggling to put this into a formula. If there is another thread that answers this questions, please forgive me as I couldn't locate it.


    Thanks,
    Chris

  2. #2
    Banned User!
    Join Date
    02-26-2020
    Location
    US
    MS-Off Ver
    2010
    Posts
    157

    Re: Dynamic Filter Formula w/criteria list

    Please provide sample workbook it helps us to test formulas and have a better understanding of your specific requirements.

  3. #3
    Valued Forum Contributor Eastw00d's Avatar
    Join Date
    02-29-2020
    Location
    Breda, NL
    MS-Off Ver
    2016, 2019
    Posts
    833

    Re: Dynamic Filter Formula w/criteria list

    Hi,
    just worked this out from scratch (!).
    you can use this formula:
    Please Login or Register  to view this content.
    Cheers
    Erwin
    Attached Files Attached Files
    Last edited by Eastw00d; 03-27-2020 at 11:38 AM. Reason: minor update
    I started learning VBA because I was lazy ...
    Still developing.... being more lazy...

  4. #4
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,823

    Re: Dynamic Filter Formula w/criteria list

    Using the new dynamic array formulas, here's a different take on a solution. I have changed the file that was attached to show multiple records per customer because I assumed that's what you are expecting (as RChad says, it would be better if you attached a mocked up file with expected results - please read the yellow banner at the top of this page).

    Anyway, the nice thing about the new dynamic array formulas is that you enter one formula in one cell and the whole result appears (no copying formulas down or across). the formula would be:

    =FILTER(A2:C26,XLOOKUP(A2:A26,$E$2:$E$15,$F$2:$F$15,"Not found",0,1)="yes","Tax Exempt Status not found")

    This is entered in cell H3 of the attached.
    Attached Files Attached Files
    Last edited by Gregb11; 03-28-2020 at 12:02 PM. Reason: change text

  5. #5
    Valued Forum Contributor Eastw00d's Avatar
    Join Date
    02-29-2020
    Location
    Breda, NL
    MS-Off Ver
    2016, 2019
    Posts
    833

    Re: Dynamic Filter Formula w/criteria list

    @Gregb11,
    these functions are not available in Office 2016, I see in front of the formula's : _xlfn._xlws

    Cheers
    Erwin

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Dynamic Filter Formula w/criteria list

    They're only available in 365 on the monthly channel.
    But that is what the OP asked for, so suspect their profile is out of date.

  7. #7
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,823

    Re: Dynamic Filter Formula w/criteria list

    Hmm, I thought for sure I saw the OP was on Office 365, but maybe I got confused because he was asking about the new formulas, which are only available in O365. Oh wait, I think the confusion is that this forum section is called "Office 365", so I would expect the answer to be based on O365.

  8. #8
    Valued Forum Contributor Eastw00d's Avatar
    Join Date
    02-29-2020
    Location
    Breda, NL
    MS-Off Ver
    2016, 2019
    Posts
    833

    Re: Dynamic Filter Formula w/criteria list

    Yep, my bad, I've overlooked that.

    Cheers
    Erwin

  9. #9
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Dynamic Filter Formula w/criteria list

    Must admit I hadn't noticed this was in the Office 365 board.

+ 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. Dynamic criteria range with advanced filter
    By shoun2502 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-10-2021, 04:29 PM
  2. [SOLVED] excel formula return dynamic list of names based on two criteria
    By deanusa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-07-2015, 02:23 PM
  3. [SOLVED] Advance filter dynamic criteria range
    By Pierce Quality in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-07-2015, 12:32 PM
  4. Macro to filter a pivot whilst looping through filter criteria in a variable list.
    By Alistairm88 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-29-2015, 04:25 AM
  5. [SOLVED] Dynamic filter criteria
    By hcyeap in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-01-2014, 08:07 AM
  6. [SOLVED] Dynamic filter criteria
    By momosmile in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-23-2012, 04:08 PM
  7. Replies: 1
    Last Post: 05-18-2012, 05:34 AM

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