View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
pinmaster
 
Posts: n/a
Default Help with inventory list


Don't know if this will help but maybe you could use something like
this:

=VLOOKUP(A1,Sheet2!$A$1:$B$100,2,0)-SUMIF($A$1:$A$100,A1,$B$1:$B$100)
where A1 is the part number, A1:B100 is the range of your records in
sheet 1, sheet2!A1:B100 is your inventory (column A-part number, column
B-number of items in stock)
VLOOKUP(A1,Sheet2!$A$1:$A$100,2,0) would find the number of items
originally in stock -
SUMIF($A$1:$A$100,A1,$B$1:$B$100)
will calculate how many items were distributed in your distribution
records (in this case A1:B100 of sheet 1) for the specified part.

HTH
JG


--
pinmaster
------------------------------------------------------------------------
pinmaster's Profile: http://www.excelforum.com/member.php...fo&userid=6261
View this thread: http://www.excelforum.com/showthread...hreadid=497470