count if equal excel code example Example: how to use the count it function in excel Type a formula to count rows greater than or equal to 5: =COUNTIF(B1:B10,">=5")