+ Reply to Thread
Results 1 to 5 of 5

COUNTIF formula that excludes hidden rows

  1. #1
    Registered User
    Join Date
    09-10-2017
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    63

    COUNTIF formula that excludes hidden rows

    Hi All,

    I am trying to get an accurrate count of the data in Column G from Source Data tab while excluding hidden rows. I want to have the result input into B14-B17 in the APAC tab.

    The formula I am using currently is including the hidden rows in the total count.

    =COUNTIF('Source Data'!$G$2:$G$10000,A14)

    I have seen other solutions on this forum involving SUMPRODUCT, but am unable to apply these to my needs because I am not very excel savvy.

    Thanks in advance for any help!
    Attached Files Attached Files

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: COUNTIF formula that excludes hidden rows

    Add a column to your table on Source Data, say column J for example
    Put the formula
    =AGGREGATE(3,3,[@Priority])

    Then use
    =COUNTIFS('Source Data'!$G$2:$G$10000,A14,'Source Data'!$J$2:$J$10000,1)

  3. #3
    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,141

    Re: COUNTIF formula that excludes hidden rows

    This is the SUMPRODUCT formula that you need:

    =SUMPRODUCT((Table1[Priority]=A14)*(SUBTOTAL(103,OFFSET('Source Data'!$G$2,ROW(Table1[Priority])-MIN(ROW(Table1[Priority])),0))))
    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

  4. #4
    Registered User
    Join Date
    09-10-2017
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    63

    Re: COUNTIF formula that excludes hidden rows

    Thank you both for the help and quick replies!

  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,141

    Re: COUNTIF formula that excludes hidden rows

    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. Subtotal function that excludes hidden columns
    By kollur in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-01-2017, 06:18 PM
  2. [SOLVED] need to work on COUNTIF & COUNTIFS formulas so it Excludes certain data
    By Marijke in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-23-2013, 06:05 AM
  3. Replies: 3
    Last Post: 11-06-2012, 03:19 PM
  4. Countif and hidden rows.
    By andyw in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-01-2005, 10:20 AM
  5. [SOLVED] How do you ignore hidden rows in a countif() function
    By Domenic in forum Excel Formulas & Functions
    Replies: 29
    Last Post: 09-06-2005, 04:05 PM
  6. [SOLVED] How do you ignore hidden rows in a countif() function
    By Domenic in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 07:05 AM
  7. How do you ignore hidden rows in a countif() function
    By Scott buckwalter in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 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