Excel VLOOKUP Formula Generator
Fill in four fields and get a VLOOKUP with the right last argument, an optional IFERROR and warnings about the classic pitfalls.
Processed locally in your browser/ Your data stays in your browser.
What is Excel VLOOKUP Formula Generator?
VLOOKUP finds a value in the first column of a table and returns a value from another column of the same row. It is the most used lookup in Excel and also the easiest to get subtly wrong: the fourth argument silently defaults to an approximate match, the column index is a bare number, and the key must be in the leftmost column.
This generator asks for the lookup value, the table array and either a column index or the column letter you want back, in which case it works out the index from the first column of the table. You choose exact (FALSE) or approximate (TRUE) matching and whether to wrap the result in IFERROR with your own not-found text. Warnings point out the inserted-column risk and an index beyond the table, and XLOOKUP and INDEX with MATCH versions are shown as safer alternatives.
How does it work?
- Enter the lookup value, usually a cell like A2, and the table array such as Sheet2!A:D, whose first column holds the key.
- Give the column index (1 is the first column of the table) or type the letter of the column to return, for example D.
- Keep "Exact match" unless the table is sorted and you want a range lookup, and tick IFERROR to show your own text when nothing is found.
- Copy the formula. Use the XLOOKUP or INDEX and MATCH equivalent if the table may gain or lose columns.
Common use cases
- Looking up a product price or a customer name by ID in another sheet.
- Adding a status or department column to a list by matching a code against a reference table.
- Writing the exact-match form (FALSE) that avoids wrong rows from an approximate match.
- Turning a #N/A-filled column into a clean one by wrapping the lookup in IFERROR with a friendly message.
Examples
Fill in four fields and get a VLOOKUP with the right last argument, an optional IFERROR and warnings about the classic pitfalls.
Privacy
Excel VLOOKUP Formula Generator runs entirely in your browser. The text or files you provide are processed on your device and are not uploaded, logged or stored on our servers.
Limitations
VLOOKUP can only return columns to the right of the lookup column, and the generator cannot see your data, so it cannot verify that the key exists or that the table is sorted for an approximate match.
Frequently asked questions
Why do I get #N/A even though the value is in the table?
The usual causes are an approximate match on unsorted data, a lookup value with trailing spaces, a number stored as text on one side only, or a lookup value that is not in the first column of the table array. Use FALSE for an exact match and TRIM on the key if the data comes from an import.
What is the difference between FALSE, TRUE and 0 or 1?
FALSE (or 0) asks for an exact match. TRUE (or 1), and leaving the argument out, asks for the closest smaller value and requires the first column to be sorted ascending. Approximate matching suits bands such as commission rates, not IDs.
How does the column letter option work?
VLOOKUP counts columns from the start of the table array, not from column A. If the table is B:F and you want column D, the index is 3. Type D and the generator computes it, and warns when the letter lies left of the table.
Related tools
Excel XLOOKUP Formula Generator
Enter the value to find, where to look and what to return, and get a working XLOOKUP plus versions for older Excel.
Excel Tools
Excel Formula Explainer
Paste a formula you inherited or copied from the web and see what every function, reference and operator does, in nested order.
Excel Tools
Excel Column Letter ↔ Number Converter
Paste column letters or column numbers, one per line, and get the matching number or letters instantly, with a note for every line.
Excel Tools
Excel IF Formula Generator
Choose the cell, the test and the results, and get a ready-to-paste IF formula with an explanation and an IFS version when you add branches.
Excel Tools
Excel SUMIFS Formula Generator
Pick the range to add up, add up to four conditions and get a SUMIFS with correctly quoted criteria, ready to paste.
Excel Tools
Excel COUNTIFS Formula Generator
Describe up to four conditions and get a COUNTIFS that counts the rows matching all of them, with dates and wildcards written correctly.
Excel Tools
Excel Viewer
Look inside a spreadsheet without Excel: switch sheets, read the first rows and check the size of each sheet.
Excel Tools