Exceljet

Quick, clean, and to the point

Total rows in range

Excel formula: Total rows in range
Generic formula 
=ROWS(rng)
Explanation 

If you need to count the number of rows in a range, use the ROWS function. In the generic form of the formula (above) rng represents a range of cells.

In the example, the active cell contains this formula:

=ROWS(B4:C9)

ROWS counts the number of rows in the supplied range and returns that number as the result.

Author 
Dave Bruns

Excel Formula Training

Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.