+ Reply to Thread
Results 1 to 9 of 9

CountIfs when filtered

  1. #1
    Registered User
    Join Date
    01-12-2018
    Location
    DRC
    MS-Off Ver
    2013
    Posts
    33

    CountIfs when filtered

    Hi, I know basic excel so I will try to explain my query as clear as possible. (apologies )

    I have this formula below that count the rows if column H are labeled as "Approved" and column D have inputs except the word "Form"

    =COUNTIFS(H10:H4608,"Approved",D10:D4608,"<>Form")


    But I want to use filter. If I use filter I want the hidden rows to be excluded on the total.

    What formula do I need to use? any tricks or suggestion.. Thank you in advance.

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: CountIfs when filtered

    Try:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-12-2018
    Location
    DRC
    MS-Off Ver
    2013
    Posts
    33

    Re: CountIfs when filtered

    Hi PaulM,
    Thank you for your reply and help, but it seems it includes the "Form" which are "Approved".

    basically, If the word "Form" is inputted on the Column D, it should not be included on the count. Condition is, if Column D is not "Form" and Column H is "Approved" it will be counted. and when filtered, hidden rows should be excluded.

    Sorry, I hope my sentence is clear. but thank you.

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: CountIfs when filtered

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

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

    Re: CountIfs when filtered

    Try:

    =SUMPRODUCT(($H$10:$H$4608="Approved")*($D$10:$D$4608<>"Form")*(SUBTOTAL(103,OFFSET($A$10,ROW($H$10:$H$4608)-MIN(ROW($H$10:$H$4608)),0))))

    But a sample sheet would put an end to the guessing game...
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Registered User
    Join Date
    01-12-2018
    Location
    DRC
    MS-Off Ver
    2013
    Posts
    33

    Re: CountIfs when filtered

    Hi, attached a sample work sheet.

    my condition is, if I filter column B, I need to get the total "Approved" documents (Column H). But all "Form" (Column D) shall not be included on the tally.


    Thanks guys
    Attached Files Attached Files

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

    Re: CountIfs when filtered

    =SUMPRODUCT(($H$10:$H$4608="Approved")*($D$10:$D$4608<>"Form")*(SUBTOTAL(103,OFFSET($B$10,ROW($H$10:$H$4608)-MIN(ROW($H$10:$H$4608)),0))))

    seems to do it.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    01-12-2018
    Location
    DRC
    MS-Off Ver
    2013
    Posts
    33

    Re: CountIfs when filtered

    Hi glenn, yes that works perfectly. Thank you.
    I appreciate all the reply. awesome.

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

    Re: CountIfs when filtered

    You're welcome.



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

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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. how to write COUNTIFS in filtered table for shown data
    By aaaaa34 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-29-2016, 06:23 AM
  2. Replies: 5
    Last Post: 06-04-2014, 09:41 AM
  3. [SOLVED] COUNTIFS formula for filtered results
    By macrorookie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-04-2014, 11:55 AM
  4. [SOLVED] how to write COUNTIFS formula for testing only FILTERED data
    By aaaaa34 in forum Excel Formulas & Functions
    Replies: 27
    Last Post: 03-09-2014, 07:40 AM
  5. CountIfs on a Filtered list?
    By Thymoolean in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-10-2013, 08:25 PM
  6. COUNTIFS filtered by month
    By HeathWilD in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-15-2012, 05:06 PM
  7. Replies: 0
    Last Post: 12-16-2011, 09:01 AM

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