+ Reply to Thread
Results 1 to 34 of 34

Countif when cells filtered

Hybrid View

  1. #1
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,700

    Re: Countif when cells filtered

    Perhaps something like this?

    Formula: copy to clipboard
    =SUMPRODUCT(--(SUBTOTAL(3,OFFSET(AAB$7,ROW(AAB$7:AAB$212)-MIN(ROW(AAB$7:AAB$212)),))>0),COUNTIF(AAB$7:AAB$212,AAB$7:AAB$212))
    Dave

  2. #2
    Registered User
    Join Date
    11-20-2017
    Location
    Australia
    MS-Off Ver
    MS365
    Posts
    71

    Re: Countif when cells filtered

    no that doesn't work sorry
    how about just try this one formula
    the cell range is from AAB7 to AAB212 and counting the letter N

    =COUNTIF(AAB$7:AAB$212,"N")

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,700

    Re: Countif when cells filtered

    OK. What are you filtering in/out?

    Perhaps it best if you upload an Excel sample file (not screen shots or pics ... save retyping data).

    If you are not familiar with how to do this:

    To attach a file to your post,
    • be sure to desensitize the data
    • click “Go Advanced” (next to Post Quick Reply – bottom right),
    • scroll down until you see “Manage Attachments”, click that,
    • click “Browse”.
    • select your file(s)
    • click “Upload”
    • click “Close window”
    • click “Submit Reply”

    The file name will appear at the bottom of your reply.
    Last edited by FlameRetired; 11-21-2017 at 01:15 AM.

  4. #4
    Registered User
    Join Date
    11-20-2017
    Location
    Australia
    MS-Off Ver
    MS365
    Posts
    71

    Re: Countif when cells filtered

    OK thanks
    so N means Nightshift
    and I have a few guys in different supervisor crews, so when I filter for N on a certain day I then narrow the filter more so by selecting 1 supervisor.

  5. #5
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    514

    Re: Countif when cells filtered

    Try using COUNTIFS with a helper column (say, column AAZ, which may be hidden):

    - put the following formula in cell AAZ7 and drag-copy it down to cell AAZ212:
    =AGGREGATE(3,5,AAB7)

    - the followig formula will count N's in visible cells only:
    =COUNTIFS(AAB$7:AAB$212,"N",AAZ$7:AAZ$212,1)
    Last edited by Root_; 11-21-2017 at 01:43 AM.

+ 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 Countif filtered data
    By thaimic in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-07-2016, 08:12 AM
  2. Countif without duplicate in filtered cells
    By nccwhk in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-15-2016, 03:25 AM
  3. Countif except hidden (filtered) cells
    By Sgt. in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-20-2012, 06:59 AM
  4. Replies: 8
    Last Post: 07-14-2012, 10:22 AM
  5. [SOLVED] Countif on filtered rows
    By djcfisher in forum Excel General
    Replies: 4
    Last Post: 05-21-2012, 04:25 PM
  6. Help With Countif filtered list
    By alwilly45 in forum Excel General
    Replies: 1
    Last Post: 09-12-2011, 12:46 PM
  7. CountIf in Filtered Table
    By cityofnr in forum Excel General
    Replies: 4
    Last Post: 01-06-2011, 10:54 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