How to Use Excel VLOOKUP to Autofill SKU Numbers from Descriptions
Question details
The user needs to retrieve SKU numbers from a secondary lookup sheet and automatically fill them into the main sheet based on matching product descriptions.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Matching product descriptions across multiple worksheets to seamlessly retrieve their corresponding SKU numbers for inventory management or reporting.
- Observed behavior
- The user aims to implement a formula that correctly references a description on Sheet1, finds it on Sheet2, and returns the appropriate SKU into the target column.
Verify that your lookup data on Sheet2 is organized properly, ensuring the product description column is located to the left of the SKU column when using traditional VLOOKUP.
Use the VLOOKUP Function to Retrieve SKUs
This is the standard and widely compatible method for finding matching data across sheets using Excel's VLOOKUP function.
VLOOKUP searches for a value in the leftmost column of a table and returns a value in the same row from a specified column. It requires the lookup value and the return value to be in a specific left-to-right order.
Click on cell D2 on Sheet1, which is where you want the corresponding SKU to appear.
Type the formula =VLOOKUP(H2,Sheet2!A:B,2,FALSE) and press Enter. This instructs the spreadsheet to look for the description from H2 within columns A and B on Sheet2, returning the exact match from the second column.
Hover over the bottom-right corner of cell D2 until the cursor turns into a plus icon, then click and drag down column D to apply the calculation to the rest of the rows.

Use the XLOOKUP Function (Newer Excel Versions)
A modern, highly flexible alternative to VLOOKUP that does not restrict the order of your lookup and return columns.
Use VLOOKUP and Autofill seamlessly in WPS Spreadsheet
WPS Spreadsheet fully supports advanced data lookup functions like VLOOKUP and XLOOKUP, allowing you to easily match descriptions and autofill SKUs across worksheets with zero hassle.
- 1. Open your workbook: Launch WPS Spreadsheet and open the file containing your primary and lookup data.
- 2. Insert the VLOOKUP formula: Click on cell D2, navigate to the Formula tab, or directly type =VLOOKUP(H2,Sheet2!A:B,2,FALSE).
- 3. Instantly autofill the column: Double-click the fill handle at the bottom right corner of D2 to instantly populate the SKU numbers for hundreds of rows.

Frequently Asked Questions
Why is my VLOOKUP formula returning an #N/A error?
The #N/A error means the exact product description from Sheet1 cannot be found in the lookup column of Sheet2. Check for hidden trailing spaces, typos, or ensure that you are referencing the correct lookup column.
Does the lookup column need to be the first column for VLOOKUP?
Yes. When using VLOOKUP, the value you are searching for must be located in the leftmost column of your defined table array. If it is located to the right of your return values, you should use XLOOKUP or an INDEX and MATCH combination instead.
How do I lock the table array range in my formula?
If you are selecting a specific range instead of whole columns (e.g., A2:B100), you must lock the range by selecting it in the formula bar and pressing F4. This changes the reference to $A$2:$B$100, preventing the range from shifting when you autofill down.




