Excel VLOOKUP Function Usage: Looking Up Data Across Sheets
Explain how to fill in the four arguments of VLOOKUP, how to perform exact lookups across different worksheets, and provide methods for verifying the results afterward and troubleshooting common errors.
Key points of this article
- VLOOKUP searches for the lookup value in the first column of the range, then returns the content of the specified column in the same row. Its four arguments are the lookup value, the range, the column index number, and the match type.
- When looking up across sheets, the lookup range should be written in the form "SheetName!Range". If the sheet name contains spaces or symbols, enclose it in single quotes.
- For an exact match, set the fourth argument to FALSE or 0 to avoid getting an approximate result.
- Inconsistent number formats on the two sides, i.e., text numbers versus numbers, are a common reason lookups fail to return results. Unify the formats before proceeding.
- When the result shows #N/A, #REF!, or misalignment, check in order: parameters, formats, and reference methods.
Many people have run into this situation when working with spreadsheets: the order table only contains customer IDs, while customer names and unit prices are stored in another worksheet. Matching rows one by one by hand becomes error-prone and easily leads to misreads and omissions as the data grows. The VLOOKUP function is designed for exactly this kind of scenario: it takes a value, finds it in the first column of a specified range, and then returns the contents of the column you specify from the same row.
This article is for people who need to pull data across worksheets. After reading it, you will be able to write a cross-sheet VLOOKUP formula, understand what each of its four arguments does, know how to perform an exact match, and handle common problems such as lookup failures and misaligned results.
How to use VLOOKUP? In one sentence: specify the four arguments, set the fourth argument to FALSE for exact matching, and when looking across sheets, write the lookup range as "SheetName!range".
The table below gives recommended approaches based on your situation, so you can compare and choose.
| Your situation | Recommended Practices | Cause |
|---|---|---|
| Find a single record precisely by an identifier such as employee ID or order number | Set the fourth parameter to FALSE or 0 | Return only exact matches, and avoid applying approximate results. |
| Lookup value and target data are on different worksheets | The lookup range is written as "sheet name!range", for example: Employee Information!A:C | The formula should clearly specify which table the data comes from. |
| The formula needs to be copied downward. | Lock the area's symbol: after selecting the area, press F4 to toggle. | When copying a formula, the lookup range does not shift along with it. |
| The content to return is on the left side of the lookup column. | Use INDEX and MATCH together instead of VLOOKUP | VLOOKUP can only look up values from the first column of the range to the right. |
| Data copied from web pages or PDFs | First check whether the numbers are stored as text, then unify the format before searching. | The text form "1001" and the numeric value 1001 are not equal, so the lookup will fail. |
Before You Begin: Confirm These Points First
Before you start writing formulas, spend two minutes checking the following items. This will save you most of the time you would otherwise spend debugging.
- The lookup column must be the first column of the range. VLOOKUP only searches the leftmost column of the lookup range, and the return value can only be to the right of it. If the ID is in the third column, adjust the start of the range or use a different function.
- The ID format must match on both sides. If one table stores numbers and the other stores text, the values won't match even if they look identical. Leading or trailing spaces in an ID will likewise cause the lookup to fail.
- Key values should be unique. If the same ID appears more than once in the source table, VLOOKUP returns only the first matching row and ignores the rest.
- Note the exact name of the source worksheet. If the name contains spaces or symbols, the reference must be enclosed in single quotation marks, for example '2024 Annual'!A:C.
- Specify which column to return. The third argument is the column index within the range, not the column letter in the worksheet. If the range is columns A to C and you want to return column C, the index is 3.
Steps for Using VLOOKUP Across Sheets
First look at what each of the four arguments means, then write the formula step by step. The complete structure is: VLOOKUP(lookup_value, table_array, col_index_num, range_lookup).
- Lookup value: The value to be matched, usually a cell in the current table, for example A2.
- Table array: The whole block of the source worksheet that contains the lookup column and the return column; when referring to another sheet, write it as "SheetName!range".
- Column index number: The position of the column containing the return value, counted from left to right within the table array, starting from 1.
- Range lookup: Enter FALSE or 0 for an exact match; enter TRUE or 1 for an approximate match, which requires the source data to be sorted in ascending order and is generally used for retrieving values within ranges.
Taking "using the employee ID from the orders table to retrieve the name from the employee information table" as an example, the following explains the process.
- Open the worksheet that contains the order data, and select the first cell where the result will be displayed, for example D2.
- Type an equals sign and the function name VLOOKUP, then type an opening parenthesis. Excel will show the parameter hints so you can check each argument.
- For the first argument, select the ID cell to look up, such as A2.
- After typing a comma, switch to the Employee Information worksheet and select the range that contains the ID column and the name column, for example columns A to C. Return to the formula and check that the sheet name is added automatically before the range, in the form 'Employee Information'!A:C.
- For the third argument, enter the column number of the return value. If the name is in the second column of the range, enter 2.
- For the fourth argument, enter FALSE, then press Enter to confirm. The final formula should look roughly like this: =VLOOKUP(A2,'Employee Information'!A:C,2,FALSE)
- Before dragging the fill handle down, select the lookup range in the formula and press F4 to add absolute reference symbols, then copy the formula and check row by row whether the results are reasonable.
Verify each item after completion
After the official pulldown is complete, do not deliver directly. Check item by item against the table below, and handle any issues found accordingly.
| Checklist items | How do you see it? | What should I do if I have a problem? |
|---|---|---|
| Does #N/A appear? | This error indicates that the lookup value cannot be found in the first column of the source table. | Check whether the numbers on both sides have extra spaces or inconsistent formats; if necessary, clean them with TRIM before checking again. |
| Does the returned content correspond to the correct line? | Randomly select three to five rows and manually check them against the source table. | Check whether the column index number in the third argument and the starting column of the range were chosen correctly. |
| Is the result misaligned after pulling down? | Check the formulas in the last few rows to see whether the ranges still point to the same sheet and the same range. | Find the area lock symbol (select it, then press F4), then drop down again. |
| Does #REF! appear? | This usually happens when the column index exceeds the number of columns in the lookup range. | Expand the lookup range, or reduce the column index number. |
| Is the same number repeated? | Check for duplicate values in key columns using filtering or counting methods | First deduplicate, then confirm which record should be kept. |
If the source data comes from a table in a PDF, you can first export it to Excel using the PDF editor in the OmniDoc desktop client (download.omnidoc.top), and then perform the lookup. After exporting, you should still spot-check that the numbers and codes are complete, since errors or omissions may occur during recognition or conversion. Important data must be verified manually.
❓ Frequently Asked Questions (FAQ)
1. How do I look up Excel function usage when I can't remember the argument order?
When you type an equals sign and a function name in a cell, Excel displays a parameter tip. You can then fill in each argument one by one. If you want the full description, you can search for the function name in the formula-related help to look up the definition and examples of each argument.
2. Can VLOOKUP look to the left?
You can't look up values to the left directly, because VLOOKUP only locates the match in the first column of the lookup range. When you need to return a value from a column to the left, use the INDEX function together with the MATCH function: MATCH first finds the row position, and then INDEX retrieves the content by row and column.
3. When should the fourth parameter be set to TRUE?
Enter TRUE or 1 only when an approximate match is needed, such as grading by score ranges. This usage requires the lookup column to be sorted in ascending order; otherwise, the results may be incorrect. When looking up exact information such as ID numbers or names, always enter FALSE.
4. Why do the results become messed up after dragging a formula?
In most cases, the lookup range is not locked. When you drag the formula, references without lock symbols shift along with the position, causing the lookup range to change. Selecting the lookup range and pressing F4 to add lock symbols before copying usually solves the problem.
📝 Summary
VLOOKUP's core consists of four parameters: the lookup value, the lookup range, the column index number, and the match type. For lookups across sheets, you only need to write the lookup range as "SheetName!Range". Before you start, standardize the ID format, and after you finish, check each item one by one; most cross-sheet lookup problems can be avoided with these two steps.


