+ Reply to Thread
Results 1 to 5 of 5

Count cells in a column with certain criteria

  1. #1
    Registered User
    Join Date
    05-18-2012
    Location
    Norwalk, CT
    MS-Off Ver
    Excel 2010
    Posts
    80

    Count cells in a column with certain criteria

    Hi,

    I have two columns with data. column B and column C.

    I want to be able to count the number of rows where column B = 0 and column C <> 0
    hhh.xlsx
    In the attached example I want it to return 2. B6 = 0, C6 <> 0 ... B9 = 0, C6 <> 0

    I figured out how to use the =CountIf function to count 0's in one column, then got stuck.

    Thanks,
    Nick

  2. #2
    Forum Contributor
    Join Date
    04-01-2009
    Location
    Irvine, CA
    MS-Off Ver
    Excel 2010
    Posts
    280

    Re: Count cells in a column with certain criteria

    Nick,

    You can use the COUNTIFS function:

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Count cells in a column with certain criteria

    2 other solutions:

    somproduct (see the example => the green cel)

    filter in combination with subtotal (see the example => the gold cel)

    Do you have questions, just ask.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Count cells in a column with certain criteria

    And one extra => pivot table.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-18-2012
    Location
    Norwalk, CT
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Count cells in a column with certain criteria

    Much thanks,

    Niko

+ 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