Demand coverage

SimonaB

New Member
Joined
May 24, 2016
Messages
7
hello everyone,

I am trying to calculate the stock coverage in numbers of months and I haven't figured out how to do this without a macro.:confused:

My data is something like this, with stock available only for the current month and I would like to see how many months would this figure would cover in terms of demand.

[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]months[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]6[/TD]
[TD]7[/TD]
[TD]8[/TD]
[TD]9[/TD]
[TD]10[/TD]
[TD]11[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]demand[/TD]
[TD]10[/TD]
[TD]15[/TD]
[TD]25[/TD]
[TD]82[/TD]
[TD]23[/TD]
[TD]44[/TD]
[TD]52[/TD]
[TD]25[/TD]
[TD]14[/TD]
[TD]78[/TD]
[TD]23[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]stock[/TD]
[TD]40[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]stock coverage (in months)[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


I would kindly appreciate any input from your side.:)

Thanks!
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
in B4 (blank cell below 40)
=IF(SUM($B2:B2)<=$B$3,"Y","N")
copy across to M4

Y inidcates stock is covered, N inidcates not enough stock
 
Upvote 0
you can add a row below the demand with cumulative demand, = Sum(B$2:$B$2)

then use the below formula to get the months : =LOOKUP(G9,G8:J8,G7:J7)

where G9=40
G8:J8 is the cumulative demand data range
G7:J7 is the months range.

The result would be number of months you want to see.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,876
Members
452,363
Latest member
merico17

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