Months on Hand Inventory

TG2812

Board Regular
Joined
Apr 15, 2015
Messages
180
Hello All,

I'm currently looking for a way to calculate months on hand inventory. Looking around this forum I could not really find a simple way to get rid of my problem.
My dataset is as follows;

ModelRegionConfigurationMeasureJan-19Feb-19Mar-19Apr-19May-19Jun-19Jul-19
Model 1Region 1Configuration 1My sales forecast320212810
Model 1Region 1Configuration 1My inventory232020186-2-12
Model 1Region 1Configuration 1My Inventory cover (in mths)

<tbody>
</tbody>

If the returned results is greater than 9 mths of coverage, then formula should return "> 9 mths"

Thank you all in advance for your time and great help.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
ABCDEFGHIJKLM
4ModelRegionConfigurationMeasure19-Jan19-Feb19-Mar19-Apr19-May19-Jun19-Jul
5Model 1Region 1Configuration 1My sales forecast320212810
6Model 1Region 1Configuration 1My inventory232020186-2-12
7Model 1Region 1Configuration 1My Inventory cover (in mths)FALSE

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
F6=E6-E5
E7=IF(SUM(E5:M5)<E6,"> 9 mths",FALSE)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Hi

I tried your formula but it does not work..not sure I understood what you were trying to do here.
Could you please shed some more lights?

Thanks!
 
Upvote 0
Maybe


Excel 2013/2016
ABCDEFGHIJKLMN
1ModelRegionConfigurationMeasureJan-19Feb-19Mar-19Apr-19May-19Jun-19Jul-19Aug-19Sep-19Oct-19
2Model 1Region 1Configuration 1My sales forecast320212810133
3Model 1Region 1Configuration 1My inventory4037353533211332-1
4Model 1Region 1Configuration 1My Inventory cover (in mths)9876543210
sheet2
Cell Formulas
RangeFormula
E4{=MATCH(TRUE,E$3:N$3<0,0)-1}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Hi

I tried your formula but it does not work..not sure I understood what you were trying to do here.
Could you please shed some more lights?

Thanks!
Sorry about that <e6, <e6="" ,<e6,<e6,<e6,"="">=IF(SUM(E5:M5) < E6 ,"> 9 mths",FALSE)

</e6,>
 
Last edited:
Upvote 0
Hi Fluff, Marious,

Thank you both for your time. Unfortunately, it still does not work.

However, I found a UDF on this forum which does the trick. What I'm trying to achieve here is to transform it into a native Excel formula where result >9 should be written "> 9 mths"
I did enter this function in cell E4 = MOH(E2,F3:N3)


Function MOH(Inv As Double, MOHArray)

MOH = 0
Dim i As Variant

For Each i In MOHArray
If Inv = 0 Then Exit Function
If Inv < i Then
MOH = MOH + Inv / i
Exit Function
Else
Inv = Inv - i
MOH = MOH + 1
End If
Next i

End Function
 
Upvote 0
Can you show us the results you would expect from your data & explain how you get that result.

With the data you supplied that function returns 0.15 for E4
 
Upvote 0
So here is the dataset i used for the example:

ModelRegionConfigurationMeasureJan-19Feb-19Mar-19Apr-19May-19Jun-19Jul-19Aug-19
Model 1Region 1Configuration 1My sales forecast3202128101
Model 1Region 1Configuration 1My inventory403735353321133
Model 1Region 1Configuration 1My inventory cover (in mths)8.67 (cell E5)7.335.675.339.009.009.001.00

<colgroup><col><col><col><col><col><col span="3"><col span="4"></colgroup><tbody>
</tbody>


Cell E5 formula = MOH (E4,F3:N3). I then dragged this formula across the fifth row.

Hope this helps.
 
Upvote 0

Forum statistics

Threads
1,214,965
Messages
6,122,500
Members
449,090
Latest member
RandomExceller01

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