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

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

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

Related tasks

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

Last reviewed: