+ Reply to Thread
Results 1 to 6 of 6

Add extra filter to AGGREGATE() report

  1. #1
    Registered User
    Join Date
    09-27-2012
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    28

    Add extra filter to AGGREGATE() report

    Hi all,

    I have a report that uses the AGGREGATE() function to find specific records.
    Currently it looks for a "YES" in the Orderdisplay sheet/column AO.

    I want to ad a second filter to show only the records with a date corresponding with the selected month.
    See attachment for example file.

    Hope its clear. Thanks in advance!!
    Attached Files Attached Files
    Last edited by iepofanof; 01-31-2022 at 10:37 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Add extra filter to AGGREGATE() report

    Hi. You can use this:

    =IFERROR(INDEX(ORDERDISPLAY!$A:$A,AGGREGATE(15,6,ROW(ORDERDISPLAY!$AO$5:$AO$5000)/((TEXT(ORDERDISPLAY!$D$5:$D$5000,"mmmm")=$D$4)*(ORDERDISPLAY!$AO$5:$AO$5000=$C$7)),ROWS($A$11:A11))),"")

    You'll need ; instead of , and will need to change the bit in red to $C$6... as Januari isn't recognised as a month in my locale!!
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,735

    Re: Add extra filter to AGGREGATE() report

    In A11

    =IFERROR(INDEX(ORDERDISPLAY!$A$5:$A$5000,AGGREGATE(15,6,ROW($AO$1:$AO$5000)/(ORDERDISPLAY!$AO$5:$AO$5000=$C$7)/(MONTH(ORDERDISPLAY!$D$5:$D$5000)=1), ROWS($A$11:A11))),"")

    copy down
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  4. #4
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,706

    Re: Add extra filter to AGGREGATE() report

    Alternatively, if using O365 you could potentially replace all of the existing calculations with one FILTER (spill) -- i.e. clear A11:Cn then,

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-27-2012
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    28

    Re: Add extra filter to AGGREGATE() report

    Thank you all!!

  6. #6
    Registered User
    Join Date
    09-27-2012
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    28

    Re: Add extra filter to AGGREGATE() report

    Quote Originally Posted by Glenn Kennedy View Post
    Hi. You can use this:

    =IFERROR(INDEX(ORDERDISPLAY!$A:$A,AGGREGATE(15,6,ROW(ORDERDISPLAY!$AO$5:$AO$5000)/((TEXT(ORDERDISPLAY!$D$5:$D$5000,"mmmm")=$D$4)*(ORDERDISPLAY!$AO$5:$AO$5000=$C$7)),ROWS($A$11:A11))),"")

    You'll need ; instead of , and will need to change the bit in red to $C$6... as Januari isn't recognised as a month in my locale!!
    Thanks Glenn! Got this to work.

+ 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] Using aggregate with filter
    By Natas20075 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-08-2021, 08:59 AM
  2. How to filter data with Index / Aggregate using multiple criterias.
    By Nicolantonio in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-29-2020, 06:00 AM
  3. Replies: 5
    Last Post: 12-27-2016, 04:24 PM
  4. [SOLVED] Filter / Report Top 10 Values with identifier into new spreadsheet / table / report style
    By steverokh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-04-2013, 05:10 AM
  5. Tying in report filter 2 to report filter 1
    By Aaron. in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 11-20-2012, 04:44 AM
  6. Filtered Report contains extra rows from a previous set
    By mnsemple83 in forum Excel General
    Replies: 2
    Last Post: 02-10-2012, 05:52 PM
  7. [SOLVED] How to pull extra info into Pivot table report
    By MLK in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-21-2006, 08:25 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