+ Reply to Thread
Results 1 to 4 of 4

How to count cell values based on 2 conditions

  1. #1
    Registered User
    Join Date
    11-19-2012
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    9

    How to count cell values based on 2 conditions

    Hello,

    I have this attachment that shows terminated employee headcount for various call center locations. My goal is to summarize this data (not only by day, but by shift) on both the Center Summary and the Department Summary.

    I've attempted to use the COUNTIFS function, however I receive a #VALUE because I'm attempting to combine both text and number criteria.

    Can you think of a function that would allow me to total up the number of "1"s under each day, each shift?

    Let me know if I can clarify this any further.
    Attached Files Attached Files
    Last edited by ciw916; 11-20-2012 at 01:20 AM. Reason: Revised Attachment

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: How to count cell values based on 2 conditions

    can you try this one if this is what you are after ->D4 (Center Summary)
    fill down.
    =COUNTIFS(Albuquerque!$C$3:$C$219,1,Albuquerque!$A$3:$A$219,">="&'Center Summary'!B4,Albuquerque!$B$3:$B$219,"<="&'Center Summary'!C4)
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Registered User
    Join Date
    11-19-2012
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: How to count cell values based on 2 conditions

    Thanks for the reply! I think I see where you're going here. Although I'm getting some weird numbers.

    Please take a look at the attachment. The results under Center Summary don't seem to match the ABQ numbers. Any idea why? I see that you added operators to the comparison condition. Am I missing something else?
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-19-2012
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: How to count cell values based on 2 conditions

    Found the solution! Rather than ">=", I set the condition to "=". Thanks again for your help, vlady!

+ 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