Based on your query, I'll explain how to use VLOOKUP in Excel to pull data from multiple columns in another sheet, based on a matching value in a column from your current table (e.g., an Excel Table object or just a standard range). VLOOKUP is traditionally used to return a single value, but we can extend it to return multiple columns using an array formula (or it will "spill" automatically in Excel 365/2021+).
If VLOOKUP doesn't meet your needs (e.g., for more flexibility or if you need to return entire rows/columns dynamically), I'll also suggest better alternatives like XLOOKUP, INDEX-MATCH, or FILTER at the end.
Assumptions for This Example
- Sheet1: Your current sheet with a table (e.g., an Excel Table named "MyTable" in columns A:B). Column A has the lookup values (e.g., Product IDs). You want to add pulled data starting in column C.
- Sheet2: The source sheet with data in columns A:D (e.g., A = Product ID, B = Product Name, C = Price, D = Stock).
- Lookup value: Based on Sheet1 column A (e.g., cell A2).
- Goal: Pull multiple columns (e.g., Product Name, Price, and Stock) from Sheet2 into Sheet1 columns C:E, based on matching Product ID.
If your setup is different, adjust the ranges/references accordingly.
Method 1: VLOOKUP for Multiple Columns (Using an Array Formula)
This works in all Excel versions (including older ones like Excel 2010). It returns values horizontally across multiple cells.
-
Select the target cells in Sheet1 (e.g., select C2:E2 if pulling 3 columns).
-
Type this formula into the formula bar:
=VLOOKUP(A2, Sheet2!$A:$D, {2,3,4}, FALSE)
A2: The lookup value (from your table's column).
Sheet2!$A:$D: The source range on Sheet2 (absolute reference with $ to lock it). Column A must contain the matching values.
{2,3,4}: The column numbers to pull from the source range (2 = column B, 3 = column C, 4 = column D). Adjust this array based on how many columns you need (e.g., {2,3,4,5} for 4 columns).
FALSE: Exact match (recommended to avoid errors).
-
Enter as an array formula:
- In Excel 2019 or older: Press Ctrl + Shift + Enter (not just Enter). Curly braces
{} will appear around the formula.
- In Excel 365/2021+: Just press Enter—it will automatically "spill" the results across C2:E2 (and down if you drag it).
-
Drag the formula down the column (e.g., from C2 to C10) to apply it to the rest of your table. If it's an Excel Table, it may auto-fill.
Example Result
- If A2 = "Product123" and it matches Sheet2:
- C2: Product Name (from Sheet2 column B)
- D2: Price (from Sheet2 column C)
- E2: Stock (from Sheet2 column D)
Tips and Troubleshooting
- If it returns #N/A: No match found. Use
IFERROR to handle: =IFERROR(VLOOKUP(...), "Not Found").
- Performance: If your source data is huge, use a smaller range (e.g., Sheet2!A1:D1000) instead of entire columns.
- Sorted data: VLOOKUP assumes the lookup column (Sheet2 column A) is sorted ascending for approximate matches. Use FALSE for exact matches.
- Left-to-right limitation: VLOOKUP can only look up to the right of the lookup column. If your data is structured differently, use INDEX-MATCH instead (see below).
- If it doesn't spill: Ensure you're using Excel 365/2021+. Otherwise, use the array entry method.
Method 2: Individual VLOOKUPs for Each Column (Simpler, No Arrays)
If the array method feels tricky, just use separate VLOOKUP formulas in each column. This is easier for beginners and works in all Excel versions.
- In Sheet1 C2 (for first column):
=VLOOKUP(A2, Sheet2!$A:$D, 2, FALSE)
- In Sheet1 D2 (for second column):
=VLOOKUP(A2, Sheet2!$A:$D, 3, FALSE)
- In Sheet1 E2 (for third column):
=VLOOKUP(A2, Sheet2!$A:$D, 4, FALSE)
- Drag each formula down your table.
This is straightforward but requires one formula per column.
Better Alternatives to VLOOKUP for Multiple Columns
VLOOKUP has limitations (e.g., can't look left, requires sorted data for approx matches). Consider these modern options:
-
XLOOKUP (Excel 365/2021+): Much more flexible and can return multiple columns in one spillable formula.
- In Sheet1 C2:
=XLOOKUP(A2, Sheet2!$A:$A, Sheet2!$B:$D)
- This pulls all of columns B:D from Sheet2 where A matches.
- It spills automatically into C2:E2.
- Drag down as needed.
-
INDEX-MATCH (All Excel Versions): More powerful than VLOOKUP.
- For multiple columns, use an array like this in C2:E2:
=INDEX(Sheet2!$B:$D, MATCH(A2, Sheet2!$A:$A, 0), {1,2,3})
- Enter as array (Ctrl+Shift+Enter in older Excel) or let it spill.
{1,2,3} refers to columns B, C, D.
-
FILTER Function (Excel 365/2021+): Ideal for returning entire rows or multiple columns dynamically.
- In Sheet1 C2:
=FILTER(Sheet2!$B:$D, Sheet2!$A:$A=A2)
- This filters and spills the matching row's data from columns B:D.
- If multiple matches, it returns all rows (use UNIQUE if needed).
-
Power Query (All Modern Excel): For advanced users or large datasets.
- Go to Data > Get Data > From Table/Range (select your source on Sheet2).
- Merge it with your Sheet1 table using the lookup column (like a database join).
- Load the result back to Sheet1. This is refreshable and handles multiples easily.
Final Notes
- Test with sample data: Create a small test on Sheet2 (e.g., 5 rows) to verify.
- If your "table" is an Excel Table: Name it (Formulas > Name Manager) and use structured references like
=VLOOKUP(MyTable[@ID], Sheet2!$A:$D, {2,3,4}, FALSE) for easier maintenance.
- Errors?: Ensure no leading/trailing spaces in lookup values (use TRIM function).
- If this doesn't match your exact setup (e.g., you need to return rows instead of columns, or handle multiple matches), provide more details like sheet names, column layouts, or Excel version for a customized formula!