+ Reply to Thread
Results 1 to 6 of 6

Multiple criterea in a countif

  1. #1
    Registered User
    Join Date
    07-21-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Multiple criterea in a countif

    Hi, first time here looking for some aid after i have not been able to find what i need through google.

    Im looking to creat a function to count text entries only if that text entry is matched with a different text entry in a different column but in the same row.

    Say A has multiple entrys and will continue to expand, and im looking for every entry that says "Club" then i get =countif(A:A,"Club") and it gives me the result i need, but what i need is it to count only the "Club" from column A that have the word "Good" in the same row but from column C.


    Thanks for any and all help.

  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: Multiple criterea in a countif

    =SUMPRODUCT((A1:A3="Club")*(C1:C3="Good"))

  3. #3
    Registered User
    Join Date
    07-21-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Multiple criterea in a countif

    unfortunatley it seems using that formula it came up as #N/A

    side note, is there a way of doing it so it includes the entire column? like doing A:A or does it have to include a number such as A2:A1000 ?


    Edit - After fooling around with it for a second (i dont know what i changed) it worked.... Thanks!
    Last edited by TmRCA; 07-21-2009 at 11:02 AM.

  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: Multiple criterea in a countif

    side note, is there a way of doing it so it includes the entire column? like doing A:A or does it have to include a number such as A2:A1000 ?
    You must always specify the range of cells ina formula.

    If you use Dynamic Named Ranges as the range reference in the formula then the formula will automatically adjust itself for any addtions/deletions in the ranges of cells being evaluated.

    If you name a range of cells in column-A as "Clubs" and column-C as "Status", then the formula would look something like this:

    =SUMPRODUCT((Clubs="Club")*(Status="Good"))

    Do a search on Dynamic named Ranges for more information

  5. #5
    Registered User
    Join Date
    07-21-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Multiple criterea in a countif

    Thank you very much Palmetto you have been more than helpful!

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

    Re: Multiple criterea in a countif

    My pleasure.

+ 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