Note: The table name is not required. However, Excel will add the table name automatically if omitted. In the example shown, the formula in B5 is: The first ROW returns 5, since ROW is provided no argument, and resides in cell B5. The second ROW uses a structured reference: The header row resolves to the range $B$4:$F$4, so ROW returns 4. For the first 3 rows of the table, we have:

No header row

The formula above works great as long as a table has a header row, but it will fail if the header row is disabled. If you are working with a table without a header row, you can use this alternative: In this formula, the first ROW function returns the current row, as above. The INDEX function returns the first cell in the range Table1 (cell B5) to the second ROW function, which always returns 5. For the first 3 rows of the table, the formula works like this: This formula will continue to work normally even when the header row is disabled.

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.