• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Count cells in column B where criteria is met in column A cells.

Don Black

New Member
I have some data in cells in column "B", that I want to count. But I only want the cells to be counted when (coulmn A cells = 2014). I keep getting a value error I used this formula
=IF(A8:A713="2014",Count(B8:B713),""). I know something is not right.
 
I have some data in cells in column "B", that I want to count. But I only want the cells to be counted when (coulmn A cells = 2014). I keep getting a value error I used this formula
=IF(A8:A713="2014",Count(B8:B713),""). I know something is not right.
Hi,

I effect all you're really trying to do is count 2014 in col A and you can use yhis

=COUNTIF(A8:A713,2014)

If you want to test for 2014 in Col A and only include Col B id there's something in it you can use this.

=SUMPRODUCT((A8:A713=2014)*(B8:B713<>""))
 
The formula I suggested will include hidden rows in the count.

Did you want to include or exclude hidden rows?
 
Last edited:
Last edited:
Back
Top