H Lookup Formula in Excel

If you just need to h lookup formula in excel and move on, the boxed answer at the top is all you need. The rest of this page is for when you want to understand why it works in Excel, adapt it to a trickier version, or make it robust enough to hand to a colleague. We keep the opening short on purpose — the depth is here when you want it, not in your way when you don’t.

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

Need it as an auditable file?

Ships inside the linked template — formula-driven, unlocked, audit-ready.

View template

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 “h lookup formula 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 formula 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 calculation you can defend to a CFO or an auditor 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

Google Sheets handles this almost identically to Excel. The formula syntax above is the same, and the menu lives under a slightly different label rather than a ribbon tab. Use the platform toggle at the top of the page to switch every keyboard shortcut between Windows and Mac, and expect at most cosmetic differences in naming. 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. The short version of “h lookup formula in excel”: the answer is at the top of this page, the tool proves it on your own numbers, and the sections above explain why it holds so the next variation does not stump you. Excel rewards people who reference cells instead of typing values and who keep inputs separate from formulas, because that is what makes a result you can audit months later. Build it once, deliberately, with the live tool as a check, and you convert a one-off lookup into a reusable skill — which is the whole point of learning the why and not just the what.

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.