+ Reply to Thread
Results 1 to 3 of 3

Count occurrences based on criteria

  1. #1
    Registered User
    Join Date
    11-05-2007
    MS-Off Ver
    Mac 2011
    Posts
    98

    Count occurrences based on criteria

    Hi There,

    I am hoping someone can help me, I have been stumped on this for days now.

    I have 273 entries in rows with each of them having a dept code for example 15a, 15b etc.
    The dept code is in Coloum A. Colum H tells me if someone has completed their training, if they have completed both parts of their training it says 2 in the cell.

    I need a formula that works out how many people are in dept 15a that have a 2 in cell H?

    I was using Sumif before but now I am struggling to make it work now that it needs to match "2 "also.

    =SUMIF('Training Detail'!$A:$A,$A7,'Training Detail'!$O:$O)

    Hope you can help.

    Cheers

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

    Re: Count occurrences based on criteria

    For a count try using SUMPRODUCT like this

    =SUMPRODUCT(('Training Detail'!$A2:$A300=$A7)*('Training Detail'!$H2:$H300=2))
    Audere est facere

  3. #3
    Registered User
    Join Date
    11-05-2007
    MS-Off Ver
    Mac 2011
    Posts
    98

    Re: Count occurrences based on criteria

    Quote Originally Posted by daddylonglegs View Post
    For a count try using SUMPRODUCT like this

    =SUMPRODUCT(('Training Detail'!$A2:$A300=$A7)*('Training Detail'!$H2:$H300=2))
    Thats great exactly what I am looking for.

    Cheers again

    Justin.

+ 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