Calculate Work Days forward coverage of inventory

cckeeler

New Member
Joined
Aug 12, 2021
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
I am hoping someone can help me write a formula that will calculate the number of work days I currently have in inventory. An example of my data is below.
JanFebMarAprMayJun
Beginning Inventory
1000​
700​
500​
200​
600​
600​
Forecast
500​
200​
500​
600​
200​
200​
Receipts
200​
0​
200​
1000​
200​
100​
WorkDays
22​
21​
24​
22​
22​
23​
Days Forward Coverage
57.4​

I manually calculated the 57.4 which is saying that I have enough inventory to last me through Jan, Feb, and part of March (22 + 21 + (24*0.6)). I just can't figure out how to get a formula to do that for me. I need to be able to drag the formula so that say in February I know, based on the beginning inventory how many days forward coverage I have each month. Is there a way to do this in a formula?
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Welcome to the MrExcel forum!

Quite tricky, I had to add a helper row:

Book1
ABCDEFG
1JanFebMarAprMayJun
2Beginning Inventory1000700500200600600
3Forecast500200500600200200
4Receipts20002001000200100
5WorkDays222124222223
6# of full months221021
7Days Forward Coverage57.445247.333333Beyond end of dataBeyond end of data
Sheet1
Cell Formulas
RangeFormula
B6:G6B6=IFERROR(MATCH(B2,MMULT(IF(ROW(INDIRECT("1:"&COLUMNS(B2:$G2)))>=TRANSPOSE(ROW(INDIRECT("1:"&COLUMNS(B2:$G2)))),B3:$G3,0),ROW(INDIRECT("1:"&COLUMNS(B2:$G2)))^0)),0)
B7:G7B7=IFERROR(IF(B6=0,B2/B3*B5,SUM(OFFSET(B5,0,0,1,B6))+(B2-SUM(OFFSET(B3,0,0,1,B6)))/OFFSET(B3,0,B6)*OFFSET(B5,0,B6)),"Beyond end of data")
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Welcome to the MrExcel forum!

Quite tricky, I had to add a helper row:

Book1
ABCDEFG
1JanFebMarAprMayJun
2Beginning Inventory1000700500200600600
3Forecast500200500600200200
4Receipts20002001000200100
5WorkDays222124222223
6# of full months221021
7Days Forward Coverage57.445247.333333Beyond end of dataBeyond end of data
Sheet1
Cell Formulas
RangeFormula
B6:G6B6=IFERROR(MATCH(B2,MMULT(IF(ROW(INDIRECT("1:"&COLUMNS(B2:$G2)))>=TRANSPOSE(ROW(INDIRECT("1:"&COLUMNS(B2:$G2)))),B3:$G3,0),ROW(INDIRECT("1:"&COLUMNS(B2:$G2)))^0)),0)
B7:G7B7=IFERROR(IF(B6=0,B2/B3*B5,SUM(OFFSET(B5,0,0,1,B6))+(B2-SUM(OFFSET(B3,0,0,1,B6)))/OFFSET(B3,0,B6)*OFFSET(B5,0,B6)),"Beyond end of data")
Press CTRL+SHIFT+ENTER to enter array formulas.
This worked perfect, Thanks!
 
Upvote 0

Forum statistics

Threads
1,215,776
Messages
6,126,830
Members
449,343
Latest member
DEWS2031

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