Return how many rows (or columns) a range spans.
Copy this formula
=ROWS(A2:A100)ROWS counts the rows in a reference and COLUMNS counts the columns — regardless of whether cells are filled. They're useful for building dynamic formulas and checking array sizes.
=COLUMNS(A1:F1)→6The range is six columns wide.
ROWS counts the size of the reference; COUNTA counts how many cells actually contain data.
Need a formula for your own data?
Describe what you want in plain language and let ExcelGPT write, explain, and verify the formula — free to start, no plugin.