VLOOKUP Function in Microsoft Excel: Formula, Examples & Troubleshooting
Learn the VLOOKUP formula in Microsoft Excel: find a value in the first table column and return another column, with reproducible examples, expected answers and compatibility cautions.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: VLOOKUP searches the first column of a table and returns a value from another column on the matching row. Use FALSE for an exact identifier lookup. If the optional final argument is omitted, Excel uses approximate matching and requires a correctly sorted first column.
Availability and version history
- Introduced: Included in Excel 1 for Macintosh, released in 1985, according to Microsoft’s historical account.
- Availability: Official help lists Excel for Microsoft 365, Excel for Microsoft 365 for Mac, Excel 2024, Excel 2024 for Mac, Excel 2021, Excel 2021 for Mac, Excel 2019, Excel 2016.
- Checked: October 14, 2026; official VLOOKUP reference. Documentation check, not a new native test; existing example-verification notes retain their scope.
Syntax and original practice data
=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
Square brackets mark optional arguments and are not typed. Examples use English function names and comma separators. Enter the original data below in A1:F9, with the Row column used only as an explanatory label. Amount and Units are numbers; other fields are text. Keep formula outputs outside the source table.
| Row | A · Item | B · Team | C · Status | D · Amount | E · Units | F · Agent |
|---|---|---|---|---|---|---|
| 1 | Item | Team | Status | Amount | Units | Agent |
| 2 | Pen | East | Paid | 120 | 12 | Ana |
| 3 | Pad | West | Pending | 75 | 5 | Bo |
| 4 | Box | East | Paid | 210 | 7 | Ana |
| 5 | Tape | North | Paid | 90 | 0 | Cy |
| 6 | Folder | West | Paid | 150 | 3 | Bo |
| 7 | Pen | East | Pending | 60 | 8 | Dee |
| 8 | Pad | West | Paid | 125 | 12 | Ana |
| 9 | Box | North | Pending | 80 | 4 | Cy |
Two original worked examples
=VLOOKUP("Pad",A2:D9,4,FALSE)
=VLOOKUP("Box",A2:D9,4,FALSE)
Expected results are 75 and 210, from the first Pad and first Box records. Both item labels occur twice. Microsoft’s Excel worksheet-function documentation explicitly describes using the first matching occurrence in exact mode.
These are individual-record lookups, not totals. The two Pad amounts sum to 200, while VLOOKUP returns 75. Use SUMIF when the actual requirement is to aggregate all matching rows.
Relative column positions and the first-column rule
The return index starts at one within table_array. In A2:D9, Amount is the fourth column. Moving the complete table to H:K and updating the range would still require index 4, even though the worksheet column letter changes.
The key must be in the first column of the supplied range. VLOOKUP cannot search the Amount column and return the Item to its left merely by using a negative index. Use separately aligned INDEX and MATCH ranges when that layout is needed.
Advanced example: a unique-key price table
On a separate sheet enter this A1:C5 table:
| Code | Item | Price |
|---|---|---|
| P-100 | Pen | 12 |
| P-200 | Pad | 18 |
| P-300 | Box | 25 |
| P-400 | Sample | 0 |
=VLOOKUP("P-200",A2:C5,2,FALSE)
=VLOOKUP("P-200",A2:C5,3,FALSE)
=VLOOKUP("P-400",A2:C5,3,FALSE)
Expected results are Pad, 18 and 0. A returned zero is a legitimate stored price here. A missing P-999 with the same exact-mode lookup instead has documented expected #N/A.
For a fill-down report with requested codes in E2:E4, use =VLOOKUP(E2,$A$2:$C$5,3,FALSE) in F2 and fill down. The absolute table range stays fixed while E2 changes with each report row. Do not apply dollar signs to the Boolean flag as if it were the lookup-table reference.
Advanced example: derive the return index from its header
For the unique-key table above:
=VLOOKUP("P-300",A2:C5,MATCH("Price",A1:C1,0),FALSE)
MATCH supplies index 3, giving expected result 25. The header range and table share the same column origin. A header range starting at B1 would misalign those relative positions.
A calculated index can make maintenance clearer, but it does not protect against every structural change. Keep the key in the first table column and test the complete formula after columns or headers are moved.
Advanced example: deliberately use numeric thresholds
On another sheet enter 0,10,20,50 in A2:A5 and labels Starter,Standard,Plus,Bulk in B2:B5, in that ascending order:
=VLOOKUP(35,A2:B5,2,TRUE)
=VLOOKUP(35,A2:B5,2)
Both expected results are Plus, associated with the largest boundary no greater than 35, namely 20. Exact boundary 50 returns Bulk; 75 also falls in Bulk. This is a boundary lookup, not a nearest-by-absolute-distance search.
Using FALSE for 35 returns documented #N/A, because no exact 35 exists. A query of −1 in approximate mode is below the smallest boundary and also has documented #N/A. Unsorted threshold results are not certified.
Wildcards are separate from approximate matching
With FALSE and a text key, Microsoft documents ? for one character and * for any character sequence. In the unique-key table, =VLOOKUP("P-3??",A2:C5,3,FALSE) has expected result 25.
To search an actual asterisk or question mark in a key, prefix it with a tilde, for example P~*300 to mean the literal key P*300. A regular-expression pattern is not interchangeable with this wildcard syntax. Exact mode does not mean all punctuation is necessarily literal.
Documented errors and source precision
A return index larger than the table width produces #REF!. Microsoft’s dedicated #VALUE! troubleshooting page identifies an index below 1 as invalid. For the four-row price table, index 4 has expected #REF!, while index 0 has expected #VALUE! under that documented rule.
The main reference’s error summary mistakenly names table_array in the less-than-one condition; the dedicated explanation identifies the column index. This guide follows the specific argument explanation instead of copying that wording error.
Text-versus-number keys, unwanted spaces and the wrong table origin can produce missing or misleading answers. A fallback that hides #N/A cannot prove that the source data was clean or the selected return cell was error-free. Preserve the lookup inputs when diagnosing a discrepancy.
Product-specific troubleshooting and verification
Microsoft documents Formulas → Evaluate Formula for Excel for Windows. If that command is unavailable in your client, inspect component expressions in helper cells and compare their results. This qualification does not imply the same menu exists on every platform listed above.
Related guides already published for this function: LibreOffice Calc | Apache OpenOffice Calc | Gnumeric | Calligra Sheets | ONLYOFFICE Spreadsheet Editor
A corresponding guide establishes separate documentation, not guaranteed identical defaults or file-conversion behavior. See the function comparison tool and editorial testing standards.
The complete manuscript, original source table and all original formulas were reviewed on October 14, 2026. New outputs were independently calculated from explicit inputs. The existing approved availability/history section is retained exactly. No native Excel execution or complete client/type/error matrix is claimed.