FormulaCraft

How to look up and return an entire row in Excel and Google Sheets

Topic:Lookups (any direction)
Excel & Google Sheets
=INDEX($B$2:$D$5,MATCH(A2,$A$2:$A$5,0),1)

Verified example

Computed by a real spreadsheet engine on the sample data below.

IDNameDeptSalary
E01AliceFinance70000
E02BobHR55000
E03CarlosIT80000
E04DianaFinance72000

=INDEX($B$2:$D$5,MATCH(A2,$A$2:$A$5,0),1)Alice

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Identify the lookup key column (e.g. A) and the data columns to return (e.g. B:D).
  2. 2Use MATCH to find the row number: MATCH(lookupValue,$A$2:$A$100,0).
  3. 3Use INDEX to retrieve each column: =INDEX($B$2:$D$100,MATCH(A2,$A$2:$A$100,0),1) for column B, change the last argument to 2 for column C, 3 for column D. In Excel 365, =XLOOKUP(A2,$A$2:$A$100,$B$2:$D$100) returns all columns at once.

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

Can XLOOKUP return an entire row in one formula?

Yes. In Excel 365 and Google Sheets, =XLOOKUP(lookup_value,lookup_array,entire_row_range) spills all matched columns automatically into adjacent cells.

More on Lookups (any direction)

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: