+ Reply to Thread
Results 1 to 4 of 4

Filter by multiple criteria

  1. #1
    Registered User
    Join Date
    08-16-2016
    Location
    Illinois, USA
    MS-Off Ver
    Office 365
    Posts
    49

    Filter by multiple criteria

    I am trying to find an easy way to allow an end user to filter a pivot table by multiple criteria, only if both are met. Example workbook with redacted info is attached - I have the data available arranged in a few different ways to work with. The end goal of the user is to be able to filter to show customers with a combination of products, but not to display if they don't meet all criteria. For example I want to know everyone who has products 1 2 and 3, but do not want them to be listed if they are missing any of the 1 2 or 3. The example data set is small, but the actual data contains about 10,000 customers and 500+ products. The end user only has a surface level understanding of excel, so I'm trying to make the output as simple as possible for them.

    Any help at all would be greatly appreciated. Thank you.
    Attached Files Attached Files
    Last edited by GregStewartPTC; 05-10-2022 at 12:31 PM.

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Filter by multiple criteria

    Perhaps something like the following:
    1. Another column is added to the data on the Table1 sheet using: =SUMPRODUCT(COUNTIFS(B$2:B$17,B2,D$2:D$17,G$1:K$1))=COUNTA(G$1:K$1)
    2. The end user would select the products to be included in cells G1:K1 on the Table1 sheet
    3. The pivot table (Table2 sheet) would use the results of the additional column in the Filters ara to display only the customers with the selected combination of products when the end user selects TRUE
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    08-16-2016
    Location
    Illinois, USA
    MS-Off Ver
    Office 365
    Posts
    49

    Re: Filter by multiple criteria

    Thank you that's a great solution! Marking solved.

    Have a great day

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Filter by multiple criteria

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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. Multiple criteria filter - help
    By LS3594 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-12-2022, 05:45 PM
  2. Replies: 5
    Last Post: 08-17-2021, 03:06 PM
  3. Multiple criteria filter of multiple tables with macro
    By reese_c_c in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-07-2018, 09:56 AM
  4. Replies: 0
    Last Post: 08-04-2017, 02:39 AM
  5. Filter Excel Data using vba multiple criteria multiple columns
    By pmyk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-28-2013, 01:32 AM
  6. Need to filter multiple criteria in Label Filter
    By brassellc7994 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 04-04-2013, 12:54 PM
  7. Replies: 2
    Last Post: 06-15-2012, 05:34 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