• Counting Function (XL2K SP3)

    Author
    Topic
    #415621

    I want to use a function to count items in one column based on values in another. For example… here is some sample data…

    Solution Manning, Jean
    Implementation Manning, Jean
    Root Cause Manning, Jean
    Implementation Lawson, Toni R.
    Root Cause Starr, William
    Root Cause Starr, William
    Root Cause Johnston, Marcus

    So I want to know how many items “Manning, Jean” has in Root cause, Solution, and Implementation. I was thinking of COUNTIF but not sure how to put it together so that the criteria all works. Countif only takes one argument and am not quite sure how to nest them (if that is how it has to be done) to get it to work.

    Thanx so much for any assistance that can be rendered.

    Dennis

    gramps

    Viewing 2 reply threads
    Author
    Replies
    • #927437

      Countif/Sumif work with only 1 criteria. You could create a column to combine all the criteria into 1 and then use this as the criteria column for the countif if desired

      An alternate solution is to use array formulas as described by Chip Pearson.

      Bob Umlas also has a good article about this technique.

      Steve

    • #927442

      If that data is in cells A1:B:100, then the following formula will count what you asked:

      =SUMPRODUCT(--(A2:A101="Root Cause"),--(B2:B101="Manning, Jean"))
      
    • #927464

      Dennis,

      Attached is a one sheet workbook giving various counting examples. These samples originated from John Walkenbach.

    Viewing 2 reply threads
    Reply To: Counting Function (XL2K SP3)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: