+ Reply to Thread
Results 1 to 16 of 16

Countif and Countifs

Hybrid View

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

    Re: Countif and Countifs

    Put this formula in cell AA3:

    Formula: copy to clipboard
    =COUNTIFS($C$2:$Z$2,AA$2,$C3:$Z3,"C")


    then copy it into AB3:AC3, then copy AA3:AC3 down as far as you need to.

    Hope this helps.

    Pete

  2. #2
    Registered User
    Join Date
    01-14-2013
    Location
    Chesapeake VA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Countif and Countifs

    Here's what I did that seemed to work:
    In Cell AA I put your recommended formula =COUNTIFS($C$2:$Z$2,AA$2,$C3:$Z3,"C") However, if I copied that same formula into AB it did not work, so I changed cell AB to =COUNTIFS($C$2:$Z$2,AB$2,$C3:$Z3,"C") and AC to =COUNTIFS($C$2:$Z$2,AC$2,$C3:$Z3,"C"). This seemd to work, even after I pasted those three formulas into the next line.

    If I could ask one more thing... If I wanted to do the exact same thing but count up the sum of all "C", "P", and "NICU" cells, what would the formulas be?

    BTW, if the people who responded ever have the time and patience I would love to have an English translation of what the symbology of these formulas actually means!

    Thanks again!

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,694

    Re: Countif and Countifs

    Quote Originally Posted by alexfamily5 View Post
    ... If I wanted to do the exact same thing but count up the sum of all "C", "P", and "NICU" cells, what would the formulas be?
    Try this version

    =SUM(COUNTIFS($C$2:$Z$2,AA$2,$C3:$Z3,{"C","P","NICU"}))
    Audere est facere

  4. #4
    Registered User
    Join Date
    01-14-2013
    Location
    Chesapeake VA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Countif and Countifs

    Quote Originally Posted by daddylonglegs View Post
    Try this version

    =SUM(COUNTIFS($C$2:$Z$2,AA$2,$C3:$Z3,{"C","P","NICU"}))
    That one did not work, it counted cells that did not meet the criteria.

  5. #5
    Registered User
    Join Date
    01-14-2013
    Location
    Chesapeake VA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Countif and Countifs

    Hopefully some of you who replied will read this again, because things have gotten more complicated and I need more help. To explain better, I have been put in charge of an ophthalmology clinic schedule, and I have to use an Excel workbook that I inherited. I need formulas that will tell me how many providers (doctors) are in clinic on any given morning, afternoon, and evening.

    I have attached an example workbook for the first few weeks of February. In column AA I need the total number of cells from columns C,F,I,L,O,R,U, and X that have a "C","D","P", or "N" in them... but that does NOT count any that have "NICU". The same needs to be done for PM and EVE clinic columns AB and AC. So it is similar to my previous question, but it needs to count more different letters. If it might help I manually counted the correct numbers and included them to be able to double check the formulas (hopefully I won't miscount any).
    Thanks again in advance!
    Attached Files Attached Files
    Last edited by alexfamily5; 01-15-2013 at 05:02 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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