Cellgrids Cellgridsby LearnWithRinkesh
Home › Excel tutorials › XLOOKUP Returning Multiple Columns in Excel

How to Use XLOOKUP to Return Multiple Columns at Once

By Rinkesh Shah · Business Analyst, 8 years in data · Updated 2026-10-31

▶ Video coming soon

VLOOKUP returns one column per formula, so you write it again for every column. XLOOKUP can return a whole row or several columns in one formula, and the result spills into the cells next to it.

The idea

The return array is not limited to one column. If you give XLOOKUP a range with three columns, it returns all three.

Example: get name, department and salary

Employee ID in A2:A500, and details in B2:D500. To look up the ID typed in G1:

=XLOOKUP(G1, A2:A500, B2:D500, "Not found")

The three values appear side by side in three cells.

Return only the columns you want

Use CHOOSECOLS (Microsoft 365) to pick columns from the result: =CHOOSECOLS(XLOOKUP(G1, A2:A500, A2:F500), 2, 5) returns columns 2 and 5 only.

Return all rows that match

XLOOKUP returns only the first match. To get every row for a customer, use FILTER instead: =FILTER(A2:F500, B2:B500=G1).

Common mistakes

Worked example

Table A2:D100 has ID, Name, City, Salary. =XLOOKUP(F2,A2:A100,B2:D100) returns Name, City and Salary in three cells to the right.

Common mistakes

Frequently asked questions

Can I pick non-adjacent columns?

Use CHOOSECOLS or HSTACK on the return array.

What if the ID is missing?

Add a fourth argument such as "Not found".

Can I get all matches?

Use FILTER instead.

Practice this online, free

Reading is only half of learning Excel. Cellgrids is a free place for online Excel practice: solve Excel formula exercises in a live spreadsheet, prepare for Excel interview questions, and work through business case studies built for data analytics and business analytics roles.

Practice these formulas: XLOOKUP, FILTER, INDEX.

Start Excel practice → Case studies