Arrow left
Back to product guides
Google Sheets Formulas

ROW Function in Google Sheets: Explained

In this article, you will learn how to use the ROW function in Google Sheets. The ROW function simply returns the row number of a particular cell.

How to use the ROW formula in Google Sheets

  1. Type “=ROW” or go to “Insert”“Function” (or directly navigate to the “Functions” icon)  “Lookup”“ROW”.
  2. Input a specific cell by cell reference or manual input, or leave the argument blank.
  3. Press the “Enter” key.
How to insert the ROW formula from the menu bar in Google Sheets

The general syntax is as follows:

=ROW([cell_reference])

Cell_reference[Optional]: You can input a cell. Its row number is returned by the formula.

Note: If you leave the argument blank, the function returns the row number of the cell in which it is located. For example, if you insert the ROW function in cell B4 and keep the parameter unfilled, the formula returns “4” as the formula is in the fourth row. Also, even if you don’t fill in the argument, you still need to input “()”, parenthesizes.

Look at the following examples.

How to use the ROW function in Google Sheets

The upper table shows two examples in which you refer to a cell in the ROW function. In the first example, as the function refers to cell D5, the formula returns 5, which is the row number of the cell referred to.

The lower table presents the sample table using the ROW function for its number of items (Column B). As you can see, you can get a series of consecutive numbers starting from 1 by entering a formula like “ROW() - X”. X should be the number that makes the formula “ROW()-X” equal to 1. In this example, as the first item, David, is in cell C7, you should enter =ROW()-6 in cell B7 and copy and paste it to other cells in the same column.

How do I refer to a row in Google Sheets?

You can refer to a row range by simply selecting the field when you are inputting an argument for a formula. If you want to select the entire row, you can input the number of the row twice with a colon between the numbers, such as “=SUM(15:15)”, which aggregates all numbers in Row 15.

Can you filter by row in Google Sheets?

Yes, you can. Check the following articles to learn how to filter data by a filter, filter views, or the FILTER function.

Filter in Google Sheets: Explained

Filter Views in Google Sheets: Explained

FILTER Function in Google Sheets: Explained

 

Other formulas and tips related to rows and columns

If you don’t get the right answer to your question in this article or if you have other questions related to rows and columns, you may find the answers in the following articles.

Navigate to the articles below to learn how to fix rows and/or columns or adjust the heights of rows or the widths of columns to have a better view of a table or a list more efficiently.

How to Freeze Rows and Columns in Google Sheets

How to Resize Column Width in Google Sheets

How to Resize Row Height in Google Sheets

Visit the pages below if you need to learn how to insert multiple rows or columns.

How to Insert Multiple Rows in Google Sheets

How to Insert Multiple Columns in Google Sheets

Check the following articles if you want to learn about how to group or ungroup rows or columns, or change the order of rows and columns.

How to Group Rows and Columns in Google Sheets

How to Switch Two Columns and Rows in Google Sheets

Go to the following web pages if you need to learn how to switch rows and columns. You can do it by using a special paste or the TRANSPOSE function.

Switch Rows and Columns in Google Sheets: Explained

How to Use TRANSPOSE Function in Google Sheets

See these articles to learn how to show the row or column numbers of cells by formula.

COLUMN Function in Google Sheets: Explained

Analyze your live financial data in a snap

Are you learning this formula to build a financial KPI dashboard? If so, LiveFlow may help you to automate manual workflows and keep numbers updated in real time. For instance, you can easily compare your Budget versus Actual without any manual work. Furthermore, you can access other templates here, from the simple Income Statement and Operational KPI templates to Multi-Currency Consolidated Income Statement, Balance Sheet, and Cash Flow templates. You can also customize these templates as you want without breaking the automated data inflow.

To learn more about LiveFlow, book a demo.

Automate any custom financial dashboard in Google Sheets with LiveFlow

Learn how to do this step-by-step in the video below 👇

Do you need personal help?

Our team of real people are here to help you any time between 9am and 10pm GMT.
Check Icon
Email us at: founders@liveflow.io
Check Icon
Call us at +1 (415) 650-1711