VLOOKUP in Excel for Two Columns

“vlookup in excel for two columns” comes up constantly, so this page leads with the exact answer, and only then explains the detail. Everything works in Excel on Windows and Mac and maps almost one-to-one to Google Sheets. Copy the answer above and get back to work, or read on to turn a one-off fix into something you never have to look up again.

Exact answer

In Excel: use =VLOOKUP(lookup_value, table_array, col_index_num, FALSE) — it finds a value in the leftmost column of a table and returns a value from a column to its right, with FALSE forcing an exact match.

Syntax

=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])

Arguments

ArgumentDescription
lookup_valuerequiredThe value to look for in the first column of the table.
table_arrayrequiredThe range that holds the data, with the lookup column on the far left.
col_index_numrequiredThe column number to return from, counted from the left of table_array (1 = first column).
range_lookupoptionalFALSE for an exact match, TRUE or omitted for an approximate match on sorted data.

Related functions

XLOOKUPINDEX/MATCHIFERROR
Annotated stepsExcel
1

In the result cell type =VLOOKUP( and click the cell holding the value to find.

2

Select the whole table as table_array, making sure the lookup column is the leftmost one.

3

Count columns from the left of that range to the answer column and type that number as col_index_num.

4

Type FALSE as the fourth argument to force an exact match.

5

Press Enter and fill the formula down the column.

Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

What this does

VLOOKUP searches down the first column of a table for a value, then returns whatever sits in the same row in a column you choose by number. It is the classic Excel lookup: you give it the value to find, the table, the column count, and a FALSE flag for an exact match. The catch is that it only looks to the right of the lookup column and you must count the return column yourself. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “vlookup in excel for two columns”. Start on a copy or a tiny sample, keep the affected columns 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 data step that keeps your analysis trustworthy, but the practical win is that someone else can open the file and understand what happened without asking you.

A worked example

Employee names are in A2:A100 and salaries in C2:C100, so the table spans A2:C100. To pull the salary for the name in E2: =VLOOKUP(E2, A2:C100, 3, FALSE). Column 3 is the salary column counted from A, and FALSE returns #N/A rather than a wrong row if the name is missing. For "Maria" in E2 this returns 54000. VLOOKUP is the most widely used lookup in Excel and works in every version, so it stays the go-to when a file must open in older Excel that lacks XLOOKUP. 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

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: the tool runs entirely in your browser, the formula is shown in full with one-click copy, and the steps work the same on Windows and Mac. That is the whole promise here — the exact answer, a way to prove it on your own numbers, and just enough context to make it stick. If you take one thing from this page on “vlookup in excel for two columns”, make it the habit rather than the keystrokes: set the problem up with labelled inputs, reference those cells, and let Excel do the recomputing. Bookmark the page for the syntax, but do the example once in a blank sheet and check it against the tool above — five minutes of hands-on practice fixes the method in memory far better than re-reading, and it surfaces the small snags while they are still harmless. After that the technique is genuinely yours: faster than searching for it again, and reliable enough to drop into work that other people depend on.

Common mistakes

  • Leaving off FALSE, so VLOOKUP does an approximate match and returns the wrong row when the data is not sorted.
  • Counting col_index_num from the worksheet column A instead of from the left edge of table_array.
  • Trying to return a value to the left of the lookup column — VLOOKUP can only look right, so use INDEX/MATCH or XLOOKUP instead.

Frequently asked questions

Why does VLOOKUP return #N/A?

The lookup value was not found in the first column. Common causes are stray spaces (wrap the value in TRIM), numbers stored as text, or a lookup value that simply is not present. Wrapping the formula in IFERROR can replace #N/A with friendlier text.

Can VLOOKUP look to the left?

No. VLOOKUP only returns columns to the right of the lookup column. To pull a value from a column further left, use INDEX/MATCH or XLOOKUP, which search in any direction.

What does the FALSE at the end do?

FALSE forces an exact match. TRUE or an omitted fourth argument does an approximate match that requires the first column to be sorted ascending and can silently return a wrong row, so always add FALSE for normal lookups.

Other ways people ask this

On the way here you may have searched this as “vlookup on two columns in excel” and “vlookup two columns 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. “vlookup on two columns in excel”, “vlookup two columns excel” all point at the one operation explained on this page, which is why they all lead here.