google-sheetscountif

COUNTIF not working with string "True" or "False"


I have this very simple columns of either string True or False.

I am trying to use this formula = COUNTIF(F2:F, "True") to get the number of True in the column. But its not working. It works with other strings such as apples, but never with True or False.

enter image description here

How do you compare that?


Solution

  • Please try:

    =countif(F2:F,"'"&"True")
    

    (Or better still, avoid True and False as Text.)