+ Reply to Thread
Results 1 to 3 of 3

Using SUMPRODUCT or COUNTIF to count number of times a value occurs

  1. #1
    Registered User
    Join Date
    11-02-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    4

    Using SUMPRODUCT or COUNTIF to count number of times a value occurs

    Hello

    I am quite new to using formula in excel 2007 and I am a bit stuck.
    In one column I have the paygrades of employees in the other I have their performance ratings. There are 6 possible paygrades and 9 possible ratings.
    I would like to know how many people in two different paygrades received each rating.
    I can do this with just one paygrade using the array formula below but I can't seem to find anything that will do it for more than one paygrades together.

    So if someone at grade 1 receives a score of 1 this formula will tell me how many people that is true for

    =SUMPRODUCT(('name of worksheet'!range grades are scored in=grade)*('name of worksheet'!cell range that ratings are scored in=rating))


    E.g.

    Grade Rating
    13 2
    12 1
    15 2
    13 2
    15 5
    13 6
    12 2
    12 6

    to tell me that for grades 12 and 13 two people achieved a '6' rating

    Any ideas?

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Using SUMPRODUCT or COUNTIF to count number of times a value occurs

    With Sheet1!A1:B9 containing your sample data
    AND on Sheet2
    Please Login or Register  to view this content.
    This regular formula returns the count of records with a Grade of 12 or 13 and a Rating of 6
    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    11-02-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Using SUMPRODUCT or COUNTIF to count number of times a value occurs

    Thank you so much that works perfectly!


+ 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