+ Reply to Thread
Results 1 to 3 of 3

Count instance where multiple matches can occur and with multiple criteria

  1. #1
    Registered User
    Join Date
    08-03-2011
    Location
    Norwich
    MS-Off Ver
    Excel 2010
    Posts
    28

    Count instance where multiple matches can occur and with multiple criteria

    Hi all

    In excel 2010 I have 2 worksheets.

    Sheet 1- Worker

    a b
    Hit 37
    Miss 38
    Hit 38
    Hit 38

    A is if a staff member hit the target and b is the calender week that the target was hit.

    Sheet 2

    I have a dropdown box where you can select the calender week you wish to view in J2

    Basically what I want to do is count the amount of instances where a staff member has hit the target for a particular week, so when you change the dropdown, the results for that week will be displayed.

    I have tried Count, Countif, if and Dcount but I just cant seem to get it to work. I somehow managed to get a 1 displayed if they did meet target in that week, and false if not, but I just cant seem to figure out and 'If week x is picked in dropdown, count amount of hits for this week'

    Many Thanks

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Count instance where...

    Try COUNTIFS

    e.g.

    =COUNTIFS('Sheet1'!A:A,"Hit",'Sheet1'!B:B,J2)

    adjust source sheet name if necessary.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    08-03-2011
    Location
    Norwich
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Count instance where multiple matches can occur and with multiple criteria

    Fantastic! Thanks

+ 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