how to find the number of rows in excel sheet code example Example: Excel sheet count rows =COUNTIF(RANGE, CONDITION) Example: =COUNTIF(C1:C30, "Paris")