Retrieve values from 2 worksheets.

  • Thread starter Thread starter imckay
  • Start date Start date
I

imckay

I have 2 worksheets with part numbers and quantities in stock for 2
separate warehouses. I have a 3rd sheet with commonly used parts on.
For the commonly used part Nos, I want to get the quantity in stock for
each Warehouse.
i.e.
PART NUMBER WAREHOUSE 1 STOCK WAREHOUSE 2 STOCK
abc43 55 23
qwe21 35 87
fde182 12 14

I can see on the preview that my table above looks rubbish!
Hopefully you can see what I mean?
Part# abc43 - Warehouse 1 stock 55, Warehouse 2 stock 23

I have spent several hours looking through the various functions with
no luck.
Any help greatly appreciated.
 
Assuming Part Number in column A and Quantity in B on Sheets called WHS1 and
WHS2 then use VLOOKUP on your 3rd sheet:

Qty in WHS1 (col B) where A2 is common part number. Copy down as required

=VLOOKUP(A2,whs1!$A$1:$B$100,2,FALSE)

Qty in WHS2 (col C)

=VLOOKUP(A2,whs2!$A$1:$B$100,2,FALSE)

Change ranges/sheet names as required.

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top