To count rows in an Excel table, you can use the ROWS function. In the example shown, the formula in I4 is:


The result is 100, since Table1 contains 100 rows of data.

Generic formula



This formula uses structured referencing, a syntax that allows table parts to be called out by name. When a table is called with the name only, Excel returns a reference to the data region of the table only. In this case, the entire table range is B4:F104 so Table1 returns the range B5:F105 to the ROWS function.


ROWS then returns a final result of 100. Note that the header row is not included in this count.

Dave Bruns Profile Picture

AuthorMicrosoft Most Valuable Professional Award

Dave Bruns

Hi - I'm Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.