+ Reply to Thread
Results 1 to 4 of 4

How to count a number of instances

  1. #1
    Registered User
    Join Date
    02-25-2010
    Location
    Utah, USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    How to count a number of instances

    Please see attached.

    In this spreadsheet, I want to find a formula that counts the number of instances where employee="DARSMI" and status="G".

    I tried =countif(and(B11:B21,"DARSMI",A11:A21,"G")). That didn't work.

    Any ideas?

    Thanks!

    jslag
    Attached Files Attached Files

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: How to count a number of instances

    See attached.

    =SUMPRODUCT(--(A2:A31=D2),--(B2:B31=E2))

    BTW: please post your question in the correct Forum. This Forum is for VBA programming. You should use the Worksheet Function or General Forum.
    Attached Files Attached Files
    Last edited by Palmetto; 02-25-2010 at 08:22 PM.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Registered User
    Join Date
    02-25-2010
    Location
    Utah, USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: How to count a number of instances

    Hey thanks! That's very helpful.

    I will post in the correct place next time.

  4. #4
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: How to count a number of instances

    Glad to be of help.
    If you are satisfied with your solution please mark your thread as SOLVED by going to the top of YOUR first post, click on Thread Tools, then Go Advanced and choose the [SOLVED] prefix.

    Feedback is always appreciated. See my signature for how to go about it.

+ 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