ROW vs ROWS Function in Excel Explained
Learn how to ROW and ROWS in excel step by step with simple examples.
Hello everyone! Today I compare ROW vs ROWS function in Excel with simple example, so you can choose right one for your work.
Many people confuse ROW and ROWS because name look almost same. But they do very different thing! No worry, I explain step by step, very easy to understand.
1. ROW Formula in Excel
ROW function return the row number of a cell. If you put cell A5 inside ROW, it give you back number 5 because A5 is in row 5.
Syntax:
=ROW([reference])
[reference]— Optional. The cell you want to know the row number. If you leave it empty, ROW return the row number of the cell where you type the formula.
Examples:
=ROW(A5) → return 5
=ROW(C10) → return 10
=ROW() → return row number of current cell
=ROW(A1:A10) → return {1,2,3,4,5,6,7,8,9,10} as array
Common use case — auto numbering:
If you want make row number that auto update when you insert or delete row, type this in column A:
=ROW()-1
Now if you are in row 2, it show 1. Row 3 show 2. Row 4 show 3. And if you delete a row, number update automatic!
💡 Tip: Use
=ROW(A1)and drag down instead of typing 1, 2, 3, 4... manually. This way your number never go wrong and always stay in order.
2. ROWS Formula in Excel
ROWS function return how many rows are inside a range. You give it a range, it count and tell you total number of row in that range.
Syntax:
=ROWS(array)
array— Required. The range you want count the row of. Example:A1:A20orB2:D10
Examples:
=ROWS(A1:A10) → return 10 (10 rows from A1 to A10)
=ROWS(B2:D15) → return 14 (14 rows from row 2 to row 15)
=ROWS(A1:Z1) → return 1 (only 1 row, even many column)
Common use case — count total row in your data:
If your data is in A2:C50 and you want know how many data row you have:
=ROWS(A2:C50)
👉 Result: 49 — you have 49 row of data.
💡 Tip: ROWS is very useful when you use it inside other formula. For example, combine with INDEX to always reference the last row:
=INDEX(A:A, ROWS(A2:A100)+1)— this always point to the row after your data range.
3. ROW vs ROWS — What is Difference?
| ROW | ROWS | |
|---|---|---|
| What it return | Row number of a cell | Total number of rows in a range |
| Input | One cell (optional) | A range (required) |
| Common use | Auto numbering, find row position | Count rows, use inside other formula |
| Work on old Excel? | Yes | Yes |
| Return array? | Yes, if you give a range | No, always return one number |
Simple rule to remember:
- Use ROW when you want know where a cell is (position/number)
- Use ROWS when you want know how many rows are in a range (count)
Examples
Example 1 — Auto Number List with ROW
You want create numbering 1, 2, 3, 4, 5... in column A that auto update when row is added or deleted:
In cell A2, type:
=ROW()-1
Drag down. Now column A show auto row number. If you insert row between, number update by itself. No more manual fix!
Example 2 — Count Your Data with ROWS
You have sale data in B2:B100 but not all row have data. You want know the size of your range:
=ROWS(B2:B100)
👉 Result: 99 rows in range. (This count the range size, not how many have data. To count non-empty cell, use COUNTA instead.)
Example 3 — Use ROW to Create Dynamic Array Number
You want create array of number {1, 2, 3, 4, 5} to use inside other formula:
=ROW(A1:A5)
This return {1, 2, 3, 4, 5} as array. Very useful when combine with LARGE, SMALL, INDEX for advance formula!
💡 Tip:
=ROW(A1:A5)always return{1,2,3,4,5}no matter where you type it — because it reference A1 to A5 which is always row 1 to 5. Use this trick when you need fixed number array.
📚 Useful Resources
- TAKE vs FILTER Function in Excel Explained
- VSTACK vs HSTACK Function in Excel Explained
- SUM vs SUMPRODUCT Function in Excel Explained
- How to Count and Find Unique Value in Excel
- Top Microsoft Excel Tips and Tricks Every Spreadsheet User Should Know
- Free Download PDF - 50 Popular Excel Formulas Cheatsheet (Khmer Language)
Related Tutorials
Opens in new tab ↗How to Use VSTACK Function in Excel + Tips
Learn how to use VSTACK function in Excel step-by-step to combine ranges vertically top-to-bottom with simple examples and tips.
How to Use TEXT Function in Excel + Tips (Video in Khmer)
Learn how to use TEXT function in Excel step-by-step to convert numbers to text in a specific format with video tutorial in Khmer.
How to Use REDUCE Function in Excel + Tips
Learn how to use REDUCE function in Excel step-by-step to swap or insert text based on position with simple examples.