Formula to project inventory run out date

Coach Hager

New Member
Joined
Oct 27, 2008
Messages
27
I'm trying to project the run out date of my inventory based off of last years history. I have data on sheet1 and sheet2. The first sheet is the Item# (columnA)and the Quantity on Hand (columnB). I want column C to tell me the date I would run out of inventory if it was reduced at the same rate as last year. The 2nd set of data on sheet2 is last years sales history by invoice and has the Item# (columnA) Transaction Date (columnB) and Quantity sold (columnC).

Sheet 2 data looks like this:
Item# Date Quantity
100 12/15/08 -50
100 12/15/08 -25
101 12/15/08 -10
100 12/16/08 -100

Hopefully this makes sense and someone can help.

Thanks in advance!
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Do you find that your sales are fairly consistent throughout the year, or do you have peak periods and lulls? If peaks and lulls are present, that will be important to consider, because 100 on hand might last for months during a lull, but be sold out in a week during peaks. Does Sheet2 list the data for all of last year, or just a portion of last year?

The approach I would take is to calculate a units-per-day sold for the previous year, or the portion of the year that is relevant. You'll want a way to compare that number to your current-year numbers and pick a good units-per-day figure based on that comparison, then divide your on-hand quantity by that number to determine days-of-inventory on hand. If you show us a little more sample data, I can work up the formulas.
 
Last edited:
Upvote 0
Some items are extremely seasonal others are consistent. I want to create a spreadsheet that I can updated any day to show projected run out of all items, if movement is the same as previous 365 days. I would update the sheet2 sales data each time I wanted to see this report to get the last 365 days of sales data. I know that inventory won't move exactly like the previous 365 days, but looking for a general idea as some items have extended lead times to replace.

Thanks for looking into this!
 
Upvote 0
OK, I created some fictional data to play with, located on Sheet1 in the range A2:C20000, then came up with some formulas for you. Because it looks like you have multiple transactions per day for any given Item, the SUMPRODUCT formula is heavily used here. (If the list displayed a daily total of xx units of item nn, I might have gone with a LOOKUP or INDEX/MATCH combo instead.) What I've done is create a day by day forecast of inventory based on a starting number in column C. Each column from D all the way to IV then does a SUMPRODUCT against the list of transactions, looking for those which both match the Item in column A, and match the date one year ago plus x days (x is determined by what COLUMN() the formula is in). I perform an INT operation against the list of dates on the off-chance that they are actually in date&time format, like my fictional data is. The SUMPRODUCT adds up those transactions, then the formula subtracts that number from the inventory. At some point, this results in a negative inventory level; that's your depletion date displayed in column B. (Manually highlighted two near-term depletions.) You see at the top something called EAF, entered in cell D1. That's my shorthand for Economy Adjustment Factor. This is where you can tell the spreadsheet that this year is better or worse than last year, and affect the forecast accordingly. If your sales this year are half of last year's, the EAF should be 0.5, if equal then EAF=1.0, if double then EAF=2.0 etc.

Here are the formulas, listed by cell number:
D2, copy across all the way to IV2:
="Proj Inv, close of business "&TEXT($B$1+COLUMN()-3,"mm/dd")

C3, copy down:
=$B$1+COUNTIF(D3:IV3,">"&0)+1

D3, copy this down and across all the way to IV:
=C3-$D$1*SUMPRODUCT(--(INT(Sheet2!$B$2:$B$20000)=Sheet1!$B$1-365+(COLUMN()-3)),--(Sheet2!$A$2:$A$20000=Sheet1!$A3),Sheet2!$C$2:$C$20000)


Here's an excerpt from the sheet:
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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