excel count how many rows have a value code example Example: Excel sheet count rows =COUNTIF(RANGE, CONDITION) Example: =COUNTIF(C1:C30, "Paris")