+ Reply to Thread
Results 1 to 5 of 5

Countif with filters, using sumproduct, subtotal and indirect

  1. #1
    Registered User
    Join Date
    11-16-2020
    Location
    England
    MS-Off Ver
    365
    Posts
    31

    Countif with filters, using sumproduct, subtotal and indirect

    Hi All

    Can anyone workout what is wrong with this formula?

    its a countif style formula to work with filtered data, but i cannot get it work (accept it)

    =sumproduct(subtotal(3,offset(INDIRECT("'"&$C$2&"'!$B$14:$B$46",ROW(indirect("'"&$C$2&"'!$B$14:$B$46")-MIN(Row(indirect("'"&$C$2&"'!$B$14:$B$46")),,1))*(indirect("'"&$C$2&"'!$B$14:$B$46="Active"))

    I based the above formula on this one =SUMPRODUCT(SUBTOTAL(3,OFFSET(B2:B50,ROW(B2:B50)-MIN(ROW(B2:B50)),,1))*(B2:B50="Quality")) but added the indirect elemets to make it work across multiple sheets using a drop down.

    Thanks

    In advance

    Stephen

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Countif with filters, using sumproduct, subtotal and indirect

    Please see the yellow banner at the top of the page.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Countif with filters, using sumproduct, subtotal and indirect

    OFFSET and INDIRECT don't work very well together, as they are both volatile functions, but you are missing a close bracket at the end of the first INDIRECT term.

    Hope this helps.

    Pete

  4. #4
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Countif with filters, using sumproduct, subtotal and indirect

    This final part looks wrong
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Countif with filters, using sumproduct, subtotal and indirect

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

+ 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. Replies: 11
    Last Post: 08-14-2019, 11:42 AM
  2. Replies: 7
    Last Post: 07-15-2019, 03:06 AM
  3. SUMPRODUCT and COUNTIF within a SUBTOTAL / Filter
    By nutsogood in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-17-2015, 05:30 PM
  4. SUMPRODUCT and COUNTIF within a SUBTOTAL / Filter
    By nutsogood in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 11-17-2015, 01:23 PM
  5. Using Sumproduct, Countif/sumif, & Indirect on outside workbook
    By mamachrissy1028 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-20-2015, 01:12 PM
  6. [SOLVED] How To: Use COUNTIF with SUBTOTAL so it works with Filters?
    By Cam in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 10-17-2013, 10:03 AM
  7. Replies: 6
    Last Post: 03-25-2010, 02:15 PM

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