+ Reply to Thread
Results 1 to 3 of 3

Thread: Using countif to total employess

  1. #1
    Registered User
    Join Date
    09-24-2008
    Location
    SC, USA
    Posts
    14

    Using countif to total employess

    hi i have a question about countif. i have a list of employess who i need to count each month. i need a way i can say count if >0 for month = Oct. each employee has a summary of there work for a month in a list going down.
    example

    ___John
    Jan__0
    Feb__19
    Mar__50

    ___Bob
    Jan__4
    Feb__56
    Mar__12

    Right now i have a way i am summing up the total work for all the employees
    "=SUMPRODUCT(B21:B512,--(A21:A512=A4))" <------'A4=Jan in the formula'

    How could i change this to reflect count the employees and not sum the total? The idea is a need to know how many employees had a number greater then 0 for the month of Oct.
    Last edited by johnjohn5; 10-30-2008 at 02:30 PM.

  2. #2
    Cheeky Forum Moderator Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2003, 2007, 2010
    Posts
    3,701

    headcount by month

    Perhaps this...
    =SUMPRODUCT((A21:A512=A4)*(B21:B512>0))
    Does that help?
    Regards,

    Ron
    Microsoft MVP - Excel
    (Oct 2006 - Sep 2012)

    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    09-24-2008
    Location
    SC, USA
    Posts
    14

    Thanks

    Thanks that worked like a charm.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0