FormulaCamp
Completed
← Google Sheets functions
Google Sheets function

ROWS in Google Sheets

ROWS with worked examples you can test in the live grid. The argument details are in the Excel guide.

In Google Sheets

The arguments and common errors are covered in the ROWS Excel guide; check the function help in Google Sheets for its own argument list.

Worked examples in Google Sheets

Rows of a range

A
1

Formula: C2: =ROWS(A2:A10)

Result: 9

A2 to A10 contains nine rows.

A block

A
1

Formula: C2: =ROWS(B3:D8)

Result: 6

Only the height matters, so three columns still give six rows.

Rows returned by FILTER

AB
1RepAmount
2Ana1200
3Ben850
4Cara430
5Dan970

Formula: D2: =ROWS(FILTER(A2:A5,B2:B5>900))

Result: 2

Two amounts exceed 900, so the filtered list is two rows tall.

Try it

A tiny spreadsheet with example data. Edit the formula or any number and see the result.

Formula in F2: =ROWS(A2:A6)

Example spreadsheet for ROWS
ABCDEF
1IDItemPriceStockResult
2101Pen2.51205
3102Notebook480
4103Lamp2515
5104Mug7.540
6105Backpack3912
Result in F2: 5
Practice this in a lesson: Cells, Rows and Ranges

Google Sheets is used here only as a descriptive product name. FormulaCamp is not affiliated with Google.