• 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.

Countif function problem

Carole

New Member
Hi everyone
I have a problem with the countif function, when trying to use a cell reference in the function.
The countif function works fine if using a number.
Example : =Countif(A1:A4;>4) works fine
but
Example :
=Countif(A1:A4;">B1")
does not work.

Please take a look at the file.
Thank you so much!
Carole
 

Attachments

  • example countif.xlsx
    8.7 KB · Views: 5
Wow!!! I am very happy! Thank you so much.
I have looked at hours of youtube video, and some of the did use the ampersand, but not in this manner.
Thanks! Have a great day! :)
 
Carole

Firstly, Welcome to the Chandoo.org Forums

Anything inside the " 's is treated as text
and so =Countif(A1:A4;">B1")
reads Countif A1:A4 is greater than the text value "B1"
ie: "B2" is > "B1"

where =Countif(A1:A4;">"&B1)
reads Countif A1:A4 is greater than the value in cell B1
 
Back
Top