VLOOKUP is a powerful function in Excel that allows you to retrieve data from one spreadsheet based on data in another. It's particularly useful when you need to combine data from two or more sources. Here's a step-by-step guide on how to use VLOOKUP to pull data from one spreadsheet to another.

Before we dive into the steps, ensure that both your spreadsheets are open and that the data you want to retrieve is in a range that you can reference. For this example, let's assume you have a master list of products with their prices in Sheet1, and you want to pull the prices into an order form in Sheet2, using the product names as the lookup value.

Preparing Your Data
To ensure VLOOKUP works correctly, your data should be structured in a way that allows Excel to find the lookup value (in this case, the product names) and retrieve the corresponding data (the prices).

In our example, both Sheet1 and Sheet2 should have a column for product names. The data you want to retrieve (the prices) should be in a separate column in Sheet1. Here's how the data might look:
Sheet1 (Master List)

| Product Name | Price |
|--------------|------|
| Apple | 0.50 |

| Banana | 0.30 |
| Cherry | 0.75 |
Sheet2 (Order Form)

| Product Name | Quantity | Price |
|--------------|----------|------|



















| Apple | 5 | |
| Banana | 3 | |
| Cherry | 2 | |
Using the VLOOKUP Function
Now that your data is prepared, you can use the VLOOKUP function to retrieve the prices from Sheet1 and insert them into Sheet2. Here's how:
Step 1: Choose the Cell
In Sheet2, select the cell where you want the price to appear. In our example, this would be cell B2 (the first cell under the "Price" header).
Step 2: Enter the VLOOKUP Formula
Type the following formula into the cell you've selected:
=VLOOKUP(A2, Sheet1!A:B, 2, FALSE)
Breaking Down the Formula
- A2: This is the lookup value. It's the cell that contains the product name you want to find in Sheet1.
- Sheet1!A:B: This is the range of cells in Sheet1 that contains the data you want to retrieve. In our case, it's the entire table of product names and prices.
- 2: This tells Excel which column in the range to retrieve. Since we want the prices, which are in the second column, we use 2.
- FALSE: This tells Excel to use an exact match for the lookup value, rather than an approximate match.
Press Enter, and you should see the price for "Apple" (0.50) appear in cell B2. You can then drag this formula down to the other cells in the "Price" column to retrieve the prices for the other products.
Handling Errors
If a product in Sheet2 doesn't exist in Sheet1, VLOOKUP will return an "#N/A" error. To handle this, you can use the IFERROR function. Here's how to modify the formula:
=IFERROR(VLOOKUP(A2, Sheet1!A:B, 2, FALSE), "Product not found")
Now, if a product isn't found, the cell will display "Product not found" instead of "#N/A".
Updating Your Data
If you add or remove products from Sheet1, you'll need to update the VLOOKUP formulas in Sheet2 to reflect the changes. To do this, simply select the range of cells with the formulas and press F2 to edit them. Then, press Enter to update the formulas.
Using VLOOKUP to retrieve data from one spreadsheet to another can save you time and reduce errors in your calculations. With a little practice, you'll find that it's a powerful tool for managing and analyzing data in Excel.
Remember, the key to using VLOOKUP effectively is to ensure that your data is structured in a way that allows Excel to find the lookup value and retrieve the correct data. With a bit of planning and some practice, you'll be pulling data from one spreadsheet to another like a pro!