How to Create a Lookup Table in Excel

This guide treats “create a lookup table in excel” the way busy spreadsheet users actually want it: answer first, then the reasoning. It is written for Excel but calls out every place Google Sheets differs, and the platform toggle at the top switches all shortcuts between Windows and Mac so nothing here assumes the keyboard you are not on.

Exact answer

In Excel: use =VLOOKUP(lookup_value, table_range, column_number, FALSE) — the FALSE forces an exact match.

On this page7
Annotated stepsExcel
1

Make sure the value you are searching for sits in the leftmost column of your table.

2

Type =VLOOKUP( then the lookup value, the table range, and the column number to return.

3

Add FALSE as the fourth argument for an exact match, then press Enter.

4

Wrap it in IFERROR to handle missing keys gracefully.

=VLOOKUP(key, A:B, 2, FALSE)
Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

What this does

VLOOKUP finds a value in the first column of a table and returns a value from a column to its right on the same row — the classic way to pull a price from a product code or a name from an ID. The fourth argument is the one that bites: FALSE (or 0) demands an exact match, which is almost always what you want; TRUE assumes the first column is sorted and does an approximate match. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make. Treat “create a lookup table in excel” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected cells shows up while it is still harmless. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That turns a layout choice that keeps the sheet readable and sortable into a method you can reuse, explain, and defend when the workbook leaves your screen.

A worked example

With product codes in column A and prices in column B, =VLOOKUP("SKU-204", A2:B100, 2, FALSE) returns the price next to SKU-204. The 2 means “second column of the range”. If the code is not found you get #N/A — wrap it as =IFERROR(VLOOKUP(...), "not found") to show a friendly message instead. Lookups are how separate tables talk to each other — joining orders to customers, codes to descriptions, IDs to prices. Mastering VLOOKUP (and its successor XLOOKUP) turns a pile of sheets into a connected model. If there is any chance you will reuse this, drop it into a small template tab right now: a labelled input area on the left and the formula beside it, checked once against the tool above. Next time the same question comes up, the answer is a single paste away instead of a rebuild from memory.

In Google Sheets

If you are in Google Sheets rather than Excel, the good news is that the formula shown here is identical and the workflow barely changes — menus sit across the top instead of in a ribbon, and a few function names differ slightly, but anything you build here moves across with little or no rework. Nothing on this page is behind a login or a download: the exact answer is at the top, and the detail below it is there for when you need it. That is the whole promise here — the answer first, and just enough context to make it stick. Treat “create a lookup table in excel” as a small building block rather than a chore. Once the inputs sit in their own cells and the formula reads from them, the same setup answers a dozen related questions with a tweak, and Excel keeps every dependent figure current as the data changes. The tool above is there so you can rehearse and verify before committing anything to a real workbook; the steps and worked example are there so the logic sticks. Get it right once and it stops costing you time — it starts saving it, every time the question comes back around.

Common mistakes

  • Omitting FALSE, so VLOOKUP returns a wrong approximate match on unsorted data.
  • Counting the column number from the sheet rather than from the start of the table range.
  • Looking up a value that is not in the leftmost column — VLOOKUP only looks right.
  • Breaking the formula by inserting a column inside the table; use XLOOKUP or INDEX/MATCH for resilience.

Frequently asked questions

VLOOKUP or XLOOKUP?

XLOOKUP is the modern replacement: it can look left, defaults to exact match, and does not break when columns move. Use it where available; VLOOKUP for older files.

Why do I get #N/A?

The lookup value is not found, or it does not match exactly (stray spaces, text-vs-number). Trim the data and confirm both sides are the same type.

Can VLOOKUP look to the left?

No — it only returns columns to the right of the key. Use INDEX/MATCH or XLOOKUP to pull values from a column on the left.

Other ways people ask this

On the way here you may have searched this as “how to make a lookup table in excel”, “create lookup table in excel”, “how do you create a lookup table in excel” and “create a lookup table in excel” — it is all the same task, and this page is the single, complete answer to it.

Why do people search for this in so many different ways?

Because the same task has many names. “how to make a lookup table in excel”, “create lookup table in excel”, “how do you create a lookup table in excel” all point at the one operation explained on this page, which is why they all lead here.