FormulaCamp
Completed
← Google Sheets functions
Google Sheets function

ROW in Google Sheets

ROW 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 ROW Excel guide; check the function help in Google Sheets for its own argument list.

Worked examples in Google Sheets

The row of the formula cell

A
1

Formula: C5: =ROW()

Result: 5

The formula sits in row 5, so ROW() returns 5.

A given cell

A
1

Formula: C2: =ROW(B7)

Result: 7

The argument is only used for its position; the cell B7 does not need any content.

Add up the numbers of a range

A
1

Formula: C2: =SUM(ROW(A2:A4))

Result: 9

ROW(A2:A4) is the list 2, 3, 4, which SUM adds to 9.

Try it

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

Formula in F2: =ROW(C4)

Example spreadsheet for ROW
ABCDEF
1IDItemPriceStockResult
2101Pen2.51204
3102Notebook480
4103Lamp2515
5104Mug7.540
6105Backpack3912
Result in F2: 4
Practice this in a lesson: ROW, OFFSET, INDIRECT

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