VBA code to track status of items in stock

adelkam

Board Regular
Joined
Feb 14, 2012
Messages
65
I use a spreadsheet to track the inventory status of 25 items in stock. I need to plan for when I should place an order before any item runs-out. My spreadsheet contains 3 simple tables as follows:

- Table shows 60 days in advance of projected use of each item by date (how much will be used in each date)​
- Table for currently available in stock for each item​
- Table lists all items and the “lead time” for each (i.e. the number of days it takes, when I order until the it gets shipped to me)​

I need to populate a summary table for all items and determine "when" I will run-out of any item, and "when" I should order each item in light of the given information above?

I think the approach can be something like:


• loop through the 60 days of projected use for all items, and calculate the accumulated quantity as we loop
• compare to the available in stock, when less than available in stock, capture the date to add in the summary table
• Calculate "when to order" by subtracting the "lead-time", which is the time required for shipping, from the date we obtained at previous point, and record that date in the summary under "when to order"..

I appreciate any help (sample file is uploaded at: Inventory - Download - 4shared)​
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
*Bump* -- If difficult with VBA, but possible with formula, I would also consider that option.. I appreciate any help !! thanks again
 
Upvote 0

Forum statistics

Threads
1,203,174
Messages
6,053,929
Members
444,694
Latest member
JacquiDaly

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