FORMULA THAT HELPS UPDATE STOCK RECORD

lordmatrix

New Member
Joined
Dec 30, 2019
Messages
5
Office Version
  1. 2013
Platform
  1. Windows
Hi everyone,

I have three worksheets, first with an inventory of items, second with incoming items received to stock by date in bulk and the third are outgoing items dispatched from stock in bits daily. In the first worksheet is a column "STOCK" that I want to be auto-filled from the activities of the incomings and outgoings such that when stock reads "0" initially for a particular item say "Cosmetics" and there are "100, 50, 30" units added to stock in the incoming items sheet at different days, the stock should read 180 for cosmetics, and when there's dispatch from the outgoing sheet for "3, 5, 40, 6, 20", the stock should be able to adjust its balance by looking at the two worksheets to update the first worksheet containing inventory of items.

I need help with the right formula, I have tried using the SUMIFS function but it only updates the first record on the list, doesn't go to the next record on the inventory list nor does it take a record of other dispatch made out of stock.

I hope my explanation is clear enough for anyone to help me. I will be very grateful as this will make the job easier and smarter.

Thank you,

-lordmatrix
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
can you use XL2BB to post examples of your worksheets and expected results?
i can most likely write you a VBA code that does what you want, but i would need to see the sheets.
 
Upvote 0
can you use XL2BB to post examples of your worksheets and expected results?
i can most likely write you a VBA code that does what you want, but i would need to see the sheets.

Below is the code from the main inventory sheet.

Book1
BCDEFGHIJK
4SELLER'S NAMEDESCRIPTIONBIN #LOCATIONUNITSTOCKREORDER STOCKCOSTINVENTORY VALUEREORDER
5MAGAJI ClothingT001Row 1, slot 1Each9010₦ 3,000.00 ₦ 270,000.00  
6GAMBOCosmeticsT003Row 3, slot 1Each10015₦ 2,300.00 ₦ 230,000.00  
7ABDULLAHIElectronicsT001Row 1, slot 1Box (10 ct)975₦ 20,000.00 ₦ 1,940,000.00  
8MUHAMMEDGardenT003Row 3, slot 1Each10010₦ 500.00 ₦ 50,000.00  
9HASSANPhonesT001Row 1, slot 1Each10010₦ 60,000.00 ₦ 6,000,000.00  
10DANKWABOFurnitureT001Row 1, slot 1Box (10 ct)10010₦ 25,000.00 ₦ 2,500,000.00  
11SHIRIBabiesT002Row 2, slot 1Each1005₦ 2,000.00 ₦ 200,000.00  
12AHMEDFootwearT002Row 2, slot 1Each10010₦ 8,000.00 ₦ 800,000.00  
13MUSTAPHABabiesT003Row 3, slot 1Each10030₦ 4,500.00 ₦ 450,000.00  
14ALIKOFootwearT003Row 3, slot 1Each1008₦ 10,000.00 ₦ 1,000,000.00  
15PENSHAKHome DécorT002Row 2, slot 1Box (10 ct)10015₦ 13,000.00 ₦ 1,300,000.00  
16MONDAYOffice FurnitureT002Row 2, slot 1Box (10 ct)10015₦ 30,000.00 ₦ 3,000,000.00  
17TIBAYAGroceryT003Row 3, slot 1Each10010₦ 3,700.00 ₦ 370,000.00  
18JIMOHToys & GamesT001Row 1, slot 1Each10010₦ 4,500.00 ₦ 450,000.00  
19ONIZEJewelleryT002Row 2, slot 1Each10010₦ 100,000.00 ₦ 10,000,000.00  
20MARAUFHome & KitchenT003Row 3, slot 1Box (10 ct)1008₦ 50,000.00 ₦ 5,000,000.00  
21JOHNSONApps & GamesT001Row 1, slot 1Each1005₦ 30,000.00 ₦ 3,000,000.00  
Inventory List
Cell Formulas
RangeFormula
J5:J21J5=[@STOCK]*[@COST]
K5:K21K5=IFERROR(IF([@STOCK]<=[@[REORDER STOCK]],1,0),0)
E5:E21E5=IFERROR(VLOOKUP([@[BIN '#]],BinLookup,3,FALSE),"")
G5:G21G5=SUMIFS(InventoryPickList[@[STOCKED QTY]],InventoryPickList[@[SELLER''S NAME]],[@[SELLER''S NAME]])-SUMIFS(InventoryPickList11[@[PICK QTY]],InventoryPickList11[@[SELLER''S NAME]],[@[SELLER''S NAME]])
Named Ranges
NameRefers ToCells
SKULookup=InventoryList[SELLER''S NAME]G5:G21
Cells with Conditional Formatting
CellConditionCell FormatStop If True
J5:J21Other TypeDataBarNO
K5:K21Other TypeIcon setNO
B5:K21Expression=$K5=1textNO
B5:K21Expression="If(blnBinNo=""True"")"textNO
Cells with Data Validation
CellAllowCriteria
B4Any value
C4Any value
E4Any value
F4Any value
G4Any value
H4Any value
I4Any value
J4Any value
K4Any value
D4Any value
D5:D21List=BinNumber
 
Upvote 0
Here's the incoming stock sheet that's used to update the stock at different times.

Book1
CDEFGHIJK
4DATESELLER'S NAMESTOCKED QTYSTOCKDELIVERY STATUSITEM DESCRIPTIONUNITBIN #LOCATION
51/1/2020MAGAJI 10090SUCCESSFULClothingEachT001Row 1, slot 1
61/2/2020GAMBO100100FAILEDCosmeticsEachT003Row 3, slot 1
71/3/2020ABDULLAHI10097RETURNEDElectronicsBox (10 ct)T001Row 1, slot 1
81/4/2020MUHAMMED100100GardenEachT003Row 3, slot 1
91/5/2020HASSAN100100PhonesEachT001Row 1, slot 1
101/6/2020DANKWABO100100FurnitureBox (10 ct)T001Row 1, slot 1
111/7/2020SHIRI100100BabiesEachT002Row 2, slot 1
121/8/2020AHMED100100FootwearEachT002Row 2, slot 1
131/9/2020MUSTAPHA100100BabiesEachT003Row 3, slot 1
141/10/2020ALIKO100100FootwearEachT003Row 3, slot 1
151/11/2020PENSHAK100100Home DécorBox (10 ct)T002Row 2, slot 1
161/12/2020MONDAY100100Office FurnitureBox (10 ct)T002Row 2, slot 1
171/13/2020TIBAYA100100GroceryEachT003Row 3, slot 1
181/14/2020JIMOH100100Toys & GamesEachT001Row 1, slot 1
191/15/2020ONIZE100100JewelleryEachT002Row 2, slot 1
201/16/2020MARAUF100100Home & KitchenBox (10 ct)T003Row 3, slot 1
211/17/2020JOHNSON100100Apps & GamesEachT001Row 1, slot 1
Incoming Stock
Cell Formulas
RangeFormula
H5:H21H5=IFERROR(VLOOKUP([SELLER''S NAME],InventoryList,2,FALSE),"")
I5:I21I5=IFERROR(VLOOKUP([SELLER''S NAME],InventoryList,5,FALSE),"")
J5:J21J5=IFERROR(VLOOKUP([SELLER''S NAME],InventoryList,3,FALSE),"")
K5:K21K5=IFERROR(VLOOKUP([SELLER''S NAME],InventoryList,4,FALSE),"")
F5:F21F5=IFERROR(VLOOKUP([SELLER''S NAME],InventoryList,6,FALSE),"")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F5:F74Expression=E5>F5textNO
G5:G74Expression=#REF!>G5textNO
Cells with Data Validation
CellAllowCriteria
D5:D21List=SKULookup
G5:G21List=#REF!$A$1:$A$3
C4Any value
D4Any value
E4Any value
F4:G4Any value
H4Any value
I4Any value
J4Any value
K4Any value
 
Upvote 0
This is the outgoing sheet where items are taken out of stock.

Book1
CDEFGHIJK
4DATESELLER'S NAMEPICK QTYSTOCKDELIVERY STATUSITEM DESCRIPTIONUNITBIN #LOCATION
51/1/2020MAGAJI 1090SUCCESSFULClothingEachT001Row 1, slot 1
61/2/2020MAGAJI 1290FAILEDClothingEachT001Row 1, slot 1
71/3/2020ABDULLAHI397RETURNEDElectronicsBox (10 ct)T001Row 1, slot 1
81/4/2020ABDULLAHI497ElectronicsBox (10 ct)T001Row 1, slot 1
91/5/2020SHIRI3100BabiesEachT002Row 2, slot 1
101/6/2020AHMED7100FootwearEachT002Row 2, slot 1
111/7/2020AHMED5100FootwearEachT002Row 2, slot 1
Outgoing Stock
Cell Formulas
RangeFormula
H5:H11H5=IFERROR(VLOOKUP([SELLER''S NAME],InventoryList,2,FALSE),"")
I5:I11I5=IFERROR(VLOOKUP([SELLER''S NAME],InventoryList,5,FALSE),"")
J5:J11J5=IFERROR(VLOOKUP([SELLER''S NAME],InventoryList,3,FALSE),"")
K5:K11K5=IFERROR(VLOOKUP([SELLER''S NAME],InventoryList,4,FALSE),"")
F5:F11F5=IFERROR(VLOOKUP([SELLER''S NAME],InventoryList,6,FALSE),"")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F5:F74Expression=E5>F5textNO
G5:G74Expression=#REF!>G5textNO
Cells with Data Validation
CellAllowCriteria
G5:G11List=#REF!$A$1:$A$3
D5:D74List=SKULookup
E5:E74Custom=E5<=F5
C4Any value
D4Any value
E4Any value
F4:G4Any value
H4Any value
I4Any value
J4Any value
K4Any value
 
Upvote 0
sorry for the late response i was on holiday.
I just want to verify a few things.

So in "Inventory List" you want the column G "Stock" to be dynamic where:
- "Incoming Stock" we look at the delivery status and if its successful then we want to add that stock from E or F? to the stock in "Inventory List"
- same thing for "Outgoing Stock" but we subtract from the stock in "Inventory List"

how are rows being added to incoming and outgoing? is this workbook generated or manually updated?
for matching the inventory to a seller i can just use the seller name & item description?
 
Upvote 0

Forum statistics

Threads
1,215,050
Messages
6,122,868
Members
449,097
Latest member
dbomb1414

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