VLOOKUP Stock Spreadsheet issue

paulbray81

New Member
Joined
Jan 28, 2019
Messages
1
Hi Guys,

I am having an issue which a spreadsheet where I have a list of stock


itemSKUTYPESIZEStarting QTYRunning Qty
ShirtSS-5XSSS5XS8
ShirtSS-3XSSS3XS23
ShirtLS-3XSLS3XS2
ShirtLS-2XSLS2XS25

<tbody>
</tbody>


I then have a table which lists all items the running QTY has a formula of =F4-(VLOOKUP(C4,$J$3:$Y$10,9,FALSE))

F4 = the Starting Qty column
C4 = is the SKU column
Column J is the shirt sku column
Column 9 is the shirts needed column


TeamShirt SKUShirt SizeShort SKUShort SizeZip Top SKUZip Top SizeShirts NeededIn StockShorts NeededIn StockSocks NeededIn StockZip Top NeededIn Stock
U7 RedSS-5XS38
U7 RedSS-3XS223
U7 YellowSS-5XS58

<tbody>
</tbody>

So I need to see the running quantity change upon what is added into the shirts needed. trouble is the 2nd row with the SS-5XS SKU is not added to the running total which should make it 0 not 5.

If anyone can help me solve this issue it would be massively appreciated
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,214,833
Messages
6,121,862
Members
449,052
Latest member
Fuddy_Duddy

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top