ROWS Function in Excel: How Many Rows in a Range

⏱ 1 min readUpdated 28 September 2026

LookupLevel: IntermediateAvailable in: Excel 2007+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Example 2
  5. Related functions

ROWS counts the rows in a range or array — the classic helper for top-N lists that fill down.

Syntax

=ROWS(array)
Argument What it means
array Range or array.

Examples

Example 1

=LARGE($E$2:$E$500, ROWS(E$2:E2))

Fill down: 1st, 2nd, 3rd… largest.

Example 2

=ROWS(FILTER(A2:A500, B2:B500="North"))

Count of filtered results (Excel 365).

ROW · COLUMNS · COUNTA

📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong