Closed Thread
Results 1 to 2 of 2

Countif with a critera then filtered

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

    Countif with a critera then filtered

    Hi

    Trying to get my countif formula to work when I filter certain cells. At the moment the countif is counting the entire spreadsheet against a criteria which is fine, but when I filter I want the total to reflect the visible cells and obviously once I clear the filter it will go back to the grand total.

    I have a roster with employees names, supervisor and other information and continuous dates running across the top of the sheet till end of next year.

    So when I filtered for N on todays date I get 8 which is correct (Example 1) but then i want to narrow the search down to by a certain supervisor, so I select supervisor 1. So I should get 3 employees on Night-shift working under Supervisor 1 (Example 2)

    The formulas I have at the moment are:
    Dayshift employees
    =COUNTIF(AAC$7:AAC$212,"1")
    & nightshift employees
    =COUNTIF(AAC$7:AAC$212,"N")

    Hopefully this makes sense

    Any help on this would be great appreciated
    Attached Images Attached Images

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,073

    Re: Countif with a critera then filtered

    Duplicate thread closed.

    Continue here, please, where you have been asked to provide some extra information AND a copy of the Excel file: https://www.excelforum.com/excel-for...-filtered.html
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Countif Help - If matches two critera what is the total count of this.
    By jwallace90 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-27-2017, 04:41 PM
  2. COUNTIF with multiple critera
    By Nerocell in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 06-28-2013, 11:14 PM
  3. CountIf in Filtered Table
    By cityofnr in forum Excel General
    Replies: 4
    Last Post: 01-06-2011, 10:54 AM
  4. multiple critera countif
    By luegofuego in forum Excel General
    Replies: 14
    Last Post: 11-08-2010, 12:19 PM
  5. CountIf with valule critera?
    By bw26934 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-17-2008, 12:48 PM
  6. [SOLVED] How do you make a countif formula with 2 or more critera?
    By Melissa in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-24-2005, 08:05 PM
  7. Getting a "countif" result searching two critera
    By Mattpiscy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-14-2005, 12:54 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