FormulaCraft

How to look up a value across multiple columns in Excel and Google Sheets

Topic:Lookups (any direction)
Excel & Google Sheets
=IFERROR(VLOOKUP(E2,$A$2:$A$5,1,0),IFERROR(VLOOKUP(E2,$B$2:$B$5,1,0),VLOOKUP(E2,$C$2:$C$5,1,0)))

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. 1Put the value you are searching for in a cell (e.g. E2).
  2. 2Use nested IFERROR+VLOOKUP formulas to check each column in order.
  3. 3Each VLOOKUP checks one column; if it returns an error (no match), IFERROR tries the next column.
  4. 4In Google Sheets, ARRAYFORMULA combined with COUNTIF across a multi-column range is a more elegant alternative.

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 MATCH search across multiple columns at once?

MATCH searches a single row or column. To search multiple columns, use it multiple times or combine with array logic.

Is there a single formula for this in Excel 365?

XLOOKUP can search a multi-column return array, but for searching across multiple key columns, the nested IFERROR approach or restructuring data is typically clearest.

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: