VLOOKUP for 1000 inventories items

Copper Contributor

I have an inventory column with 1000 items, each in its own row in a worksheet.  Each item has its own price in a different column using the same worksheet.

 

I want to use VLOOKUP that when an inventoried item is selected from my main worksheet, it selects the right price of that item and puts that price in the right column on my main worksheet.

 

I know I can use the VLOOKUP function for each of 1000 items, but this would be very time consuming.

 

How can I use the VLOOKUP function automatically for each of the 1000 rows?

 

2 Replies

@Gary_Naskrent 

 

It sounds as if you don't fully understand how VLOOKUP works. If on your "main worksheet" you are entering a Product Code (or some other identifier) in, say, sell A2, you should be able to put VLOOKUP in to cell B2 and have it search through all 1,000 rows of the inventory list in the other worksheet.

 

It also might be helpful if you research using XLOOKUP, a newer, more powerful and flexible function.

 

In the absence of seeing your actual workbook, let me point you to a web resource that can help you with how these functions are best deployed. If you still are having troubles, please come back and post either your actual workbook or a good facsimile of it (in Excel, not an image).

VLOOKUP  https://exceljet.net/search?query=vlookup

 

XLOOKUP  https://exceljet.net/search?query=xlookup

 

@Gary_Naskrent 

Sounds like you may need to work with absolute references, i.e. fixing cells / ranges.  If I interpret correctly, you need a vlookup to work in a number of rows but referencing the same inventory list.  If so, you just need to fix the range for the list in the formula with dollar signs ($) so that it doesn't 'shift' when copying down into the below rows: 

 

Example:     =VLOOKUP($A2,Sheet2!$A$1:$B$1000,2,FALSE)

                   Copied down, formula in next row would read:

                   =VLOOKUP($A3,Sheet2!$A$1:$B$1000,2,FALSE)