INDEX(reference, [row], [column])One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
reference:
The range of cells from which you want to retrieve a value. This can be a single cell, a row, a column, or a multi-dimensional array.
row:
The row number in the reference from which to return a value. If omitted, the default is 1, which refers to the first row.
column:
The column number in the reference from which to return a value. If omitted, the default is 1, which refers to the first column.
The INDEX function in Google Sheets is a versatile tool used to return the value of a cell in a specified row and column of a given range. It is particularly useful when you need to retrieve data from a specific location within a dataset without having to search for it. The INDEX function can be combined with other functions like MATCH to create powerful lookup formulas.
In simpler terms, INDEX allows you to extract specific data from a table based on its position, making it an essential function for data analysis.
Imagine you are managing a student grades table stored in a Google Sheets document:
| StudentID | StudentName | Math | Science | English |
|---|---|---|---|---|
| 1 | Alice | 85 | 90 | 88 |
| 2 | Bob | 78 | 82 | 80 |
| 3 | Charlie | 92 | 95 | 91 |
You want to find the grade of a specific student in a particular subject.
To achieve this, you would use the INDEX function as follows:
=INDEX(A2:E4, 2, 3)In this formula:
A2:E4 is the range of the Student Grades Table.2 is the row number from which you want to retrieve the data (in this case, Bob's row).3 is the column number from which you want to retrieve the data (in this case, the Math column).When you apply the INDEX formula, the output would be:
78This means that Bob scored 78 in Math.
If you wanted to find Charlie's grade in Science, you would adjust the formula to:
=INDEX(A2:E4, 3, 4)The output would be:
95INDEX is beneficial because it allows for quick and efficient data retrieval from large datasets. It can be used independently or in combination with other functions, such as MATCH, to create dynamic lookup formulas. Additionally, it does not require the data to be sorted, making it a flexible option for various data structures.
INDEX is an essential function for anyone working with data in Google Sheets, providing a straightforward way to enhance data analysis and reporting capabilities.
Happy spreadsheeting!
You have a sales report where Column A lists product IDs and Column B contains sales figures. Use the INDEX formula to find the sales figure for a specific product ID, enabling quick access to performance data without scrolling through the entire table.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.