Skip to main content

Excel formula builder

VLOOKUP Formula Builder

Create a VLOOKUP formula for traditional left-to-right table lookups in Excel or Google Sheets. Use exact match for IDs, SKUs, names, and most business tables.

Builder inputs

The lookup column must be the first column in the table range. The column index counts from that first column.

Cell or typed value to find in the first table column.
The first column must contain lookup keys.
Return column number inside the selected table range.

Formula is valid and ready to copy.

Excel and Google Sheets formula
=VLOOKUP(A2, Products!A:D, 4, FALSE)
Common mistakes
Use exact match for IDs, names, SKUs, and most lookup tables. Approximate match requires a sorted first column.

How this formula works

  • VLOOKUP searches the first column of the table range and returns a value from the selected column index.
  • The final argument is FALSE for exact match and TRUE for approximate match.
  • Because VLOOKUP only looks to the right, use XLOOKUP or INDEX MATCH when the return column is left of the lookup column.

Best fit

Best for

  • Simple lookup tables where the lookup key is in the first column.
  • Older Excel workbooks where VLOOKUP is already the team standard.
  • Exact-match product, SKU, price, customer, and task reference tables.

Not for

  • Left lookups where the return column is before the lookup column. Use XLOOKUP or INDEX MATCH.
  • Returning every matching row. Use FILTER or QUERY when you need a list.
  • Approximate match on unsorted data, because the result can be misleading.

Useful formula variations

Exact match by SKU
=VLOOKUP(A2, Products!A:D, 4, FALSE)

Use FALSE for IDs, SKUs, names, and unsorted lookup tables.

Not found message
=IFERROR(VLOOKUP(A2, Products!A:D, 4, FALSE), "Not found")

Wrap VLOOKUP in IFERROR when dashboards should not show raw #N/A errors.

Another sheet tab
=VLOOKUP(A2, Products!A:D, 4, FALSE)

Replace Products with the tab that contains the lookup table.

Approximate match
=VLOOKUP(A2, RateTable!A:B, 2, TRUE)

Approximate match is only safe when the first column is sorted from smallest to largest.

Sample data

SKUItemCategoryPrice
A-100KeyboardHardware49
A-101MouseHardware25
B-200Desk MatOffice18
B-201NotebookOffice7

Returned results from the sample data

Lookup setupFormula patternReturned result
A2 is A-100, table Products!A:D, column index 4Exact match VLOOKUP49
A2 is B-201, table Products!A:D, column index 2Return ItemNotebook
A2 is B-200, table Products!A:D, column index 3Return CategoryOffice

Column index guide

Table rangeIndex 1Index 2Index 3Index 4
Products!A:DSKUItemCategoryPrice
Products!B:DItemCategoryPriceNot available

Troubleshooting

ProblemLikely causeFix
#N/A resultThe lookup value is not found in the first column of the table range.Check the first column, spelling, hidden spaces, and whether the key is stored as text or number.
Wrong column returnedThe column index is counted from the table range, not from the worksheet.Count the selected table columns from left to right and update the index.
Approximate match gives a strange resultTRUE approximate match expects the first column to be sorted ascending.Switch to exact match unless you are intentionally using a sorted tier table.

Common mistakes

  • Column index 1 returns the lookup column itself.
  • Exact match uses FALSE, not TRUE.
  • Approximate match can return misleading values when the first column is not sorted.
  • VLOOKUP cannot return a column to the left of the lookup column.

Related formulas

FAQ

Does this formula work in Google Sheets?

Yes. Google Sheets supports VLOOKUP with the same lookup value, table range, column index, and match type arguments.

Should VLOOKUP use TRUE or FALSE?

Use FALSE for exact match in most business tables. Use TRUE only for sorted tier or breakpoint tables.

Why does VLOOKUP return #N/A?

The lookup value was not found in the first column of the table range, or the source contains hidden spaces or mixed text-number values.

Can VLOOKUP look left?

No. VLOOKUP returns columns to the right of the first table column. Use XLOOKUP or INDEX MATCH for left lookups.

Are these formulas generated with AI?

No. The builder uses built-in spreadsheet rules in your browser and does not call an AI service.

Do I need to upload my spreadsheet?

No. Enter ranges and criteria manually. The site does not upload, store, or process spreadsheet files.