Get instant live expert help with Excel or Google Sheets
“My Excelchat expert helped me in less than 20 minutes, saving me what would have been 5 hours of work!”

Post your problem and you’ll get expert help in seconds.

Your message must be at least 40 characters
Our professional experts are available now. Your privacy is guaranteed.

How to Lookup an Entire Row in Excel

Lookup is one of the mostly performed tasks in Microsoft Excel. We often require to perform lookup on different data. Sometimes, the result needs to be an entire row. The combination of the INDEX and MATCH functions allow us to lookup an entire row. In this tutorial, we will learn how to lookup an entire row in Excel.

Figure 1. Example of How to Lookup an Entire Row in Excel

Generic Formula

=INDEX(data,MATCH(value,array,0),0)

How the Formula Works

Here, we use the MATCH function to get the row index. The lookup value is searched inside the range. We use an exact match here. Next, MATCH returns the row index. This goes into the INDEX function as the row number.

INDEX uses the previous range as the array, and the row index as the row number. We set the column number to be 0 Finally, INDEX returns the entire row as an array.

Setting up Data

The following example uses a fruit sales database. Column A has the names, columns B to E has the sales from January to April.

Figure 2. The Sample Data Set

To find out the sales information on oranges, we need to

  • Go to cell B8.
  • Assign the formula =INDEX(B2:E6,MATCH(B7,A2:A6,0),0) to B8.
  • Press Enter.

Figure 3. Applying the Formula

This will return the entire sales information of mangoes.

Excel does not display this information. However, we can use it with other functions like LARGE, MIN, MAX, SUM etc. To find out the highest sales for mangoes in B8, we can use the formula =MAX(INDEX(B2:E5,MATCH(B7,A2:A5,0),0)).

Figure 4. Example of Using Other Functions with Entire Row Lookups

Generally, we can lookup a single cell only. However using the INDEX and MATCH formula helps us to perform a lookup on an entire row. This helps a lot to analyze data effective and efficiently.

Most of the time, the problem you will need to solve will be more complex than a simple application of a formula or function. If you want to save hours of research and frustration, try our live Excelchat service! Our Excel Experts are available 24/7 to answer any Excel question you may have. We guarantee a connection within 30 seconds and a customized solution within 20 minutes.

Are you still looking for help with Conditional Formatting? View our comprehensive round-up of Conditional Formatting tutorials here.

Did this post not answer your question? Get a solution from connecting with the expert.

Another blog reader asked this question today on Excelchat:
Solution examples
I need a formula that will check if 2 or more cells containing names match then add the adjacent cells to matching name together.
Solved by F. D. in 59 mins
index and match with duplicates. I need to use another column as a reference, so my return value has two match the value of two things for it to return
Solved by E. H. in 60 mins
I need a formula that will compare multiple columns, and return the column header name of whichever column had the highest value. I am using (INDEX($F$1:$K$1,0,MATCH(MAX(F2:K2),F2:K2,0))) , but one row had all the same values and the formula returned the first column header as being the "winner". This formula cannot distinguish when there are ties.
Solved by M. C. in 51 mins
I need a formula to calculate the MAX of a range of 167 rows in column D, then find the MAX of the next 167 rows in column D and so on continuously through the entire sheet. Example MAX D2:D169, D170:D337, D338:D505 etc...
Solved by I. Q. in 60 mins
I need to consolidate a list of names based on lowest number. Each name is associated with an account and a date. For each account I need only the lowest date to show up. I am using a pivot table.
Solved by C. H. in 60 mins

Leave a Comment

avatar

Subscribe to Excelchat.co

Get updates on helpful Excel topics

Subscribe to Excelchat.co

Did this post not answer your question?
Get a solution from connecting with the expert

Another blog reader asked this question today on Excelchat:

Post your problem and you’ll get expert help in seconds.

Your message must be at least 40 characters
Our professional experts are available now. Your privacy is guaranteed.
Trusted by people who work at
Amazon.com, Inc
Facebook, Inc
Accenture PLC
Siemens AG
Macy's
The Allstate Corporation
United Parcel Service
Dell Inc