excel how to count cells with text in column code example Example: excel count columns with text =COUNTIF(B4:B8,"*")