How to Create a Lookup in Excel

There are two ways to “create a lookup in excel”: the quick way you copy and the durable way you understand. This page gives you both. The exact Excel answer is above; below, we build the small mental model that makes the fix stick, so the next variation of the same problem solves itself.

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. Keep the inputs visible and clearly labelled and the whole thing stays auditable — anyone who opens the file later, including you, can see at a glance exactly what feeds the result and change one assumption without hunting through the formula. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “create a lookup in excel”. Start on a copy or a tiny sample, keep the affected cells visible, and compare the result with the tool above before you touch the real workbook. 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. The point is a layout choice that keeps the sheet readable and sortable, but the practical win is that someone else can open the file and understand what happened without asking you.

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. A practical tip before you scale it up: build it once on a small block of test data, confirm the number against the tool on this page, and only then point it at your real sheet. That one habit catches almost every mistake while it is still cheap to fix, long before a wrong figure reaches a report or a colleague.

In Google Sheets

Everything above works in Google Sheets too. Excel and Sheets share the formula syntax used here; only the surrounding menus are arranged differently. That portability is deliberate — learn it once and it follows you between the two tools and across Windows and Mac. The aim was to get you unstuck fast and leave you a little more capable than a copy-paste would. The answer is at the top and the detail above shows why it holds — so the next time a colleague asks, you can answer without reaching for search. Here is the takeaway for “create a lookup in excel”: copy the answer if you are busy, but if you have a spare few minutes, rebuild the example in Excel yourself with the tool above open beside it. That single pass — type it, run it, watch the result move when you change an input — is what turns a formula you found into a technique you trust. Keep your inputs labelled and referenced, never hard-coded, and the same sheet stays correct and auditable as it grows. Done that way, you will not need to look this up again, and you will be the person others ask.

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

This is also commonly searched as “how to create lookup in excel”, “create a lookup in excel” and “create lookup in excel”. They describe the identical operation, so you are in the right place no matter how you phrased it.

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

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