+ Reply to Thread
Results 1 to 6 of 6

What formula to use to count rows when two cells meet certain criteria

  1. #1
    Forum Contributor
    Join Date
    01-14-2011
    Location
    New York City, USA
    MS-Off Ver
    Excel 2010
    Posts
    194

    What formula to use to count rows when two cells meet certain criteria

    Hello,

    I'm trying to count the number of rows where cell C = cold and cell K = 1. What formula would I use to do this? Thanks
    Last edited by SEMMatt; 08-29-2011 at 01:59 PM.

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

    Re: What formula to use to count rows when two cells meet certain criteria

    Use Countifs.

    e.g.

    =COUNTIFS(C:C,"cold",K:K,1)
    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
    Forum Contributor
    Join Date
    01-14-2011
    Location
    New York City, USA
    MS-Off Ver
    Excel 2010
    Posts
    194

    Re: What formula to use to count rows when two cells meet certain criteria

    NBVC you hit that right on the head within seconds of my posting! Thanks!

  4. #4
    Forum Contributor
    Join Date
    01-14-2011
    Location
    New York City, USA
    MS-Off Ver
    Excel 2010
    Posts
    194

    Re: What formula to use to count rows when two cells meet certain criteria

    NBVC, have a follow up question on this actually:

    I'm trying to use this formula to call data from another workbook into by current workbook (same Excel doc). Getting a general error:

    COUNTIFS(lead-prospect!C1:C80,"cold",K1:K80,1)

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

    Re: What formula to use to count rows when two cells meet certain criteria

    Should you precede the K column with Sheetname too? And with sheetnames containing spaces or special characters, you should enclose the sheetname in single quotes.... E.g


    =COUNTIFS('lead-prospect'!C1:C80,"cold",'lead-prospect'!K1:K80,1)

  6. #6
    Forum Contributor
    Join Date
    01-14-2011
    Location
    New York City, USA
    MS-Off Ver
    Excel 2010
    Posts
    194

    Re: What formula to use to count rows when two cells meet certain criteria

    that did the trick! 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