Forward inventory months of coverage

elysium

New Member
Joined
Feb 6, 2016
Messages
13
Hi All,

1672153280957.png


Hoping to get some help here, I followed a solution provided in an old thread for forward coverage of projected inventory and it is working in some columns but not in the ones in yellow (should be 1 month of coverage each).

This is the formula I have in cell b4: =IFERROR(IF(B3<=0,0,IF(B3<SUM(C2:$K2),SUMPRODUCT(--(SUBTOTAL(9,OFFSET(C2:$K2,,,,COLUMN(C2:$K2)-COLUMN(C2)+1))<B3))+LOOKUP(0,SUBTOTAL(9,OFFSET(C2:$K2,,,,COLUMN(C2:$K2)-COLUMN(C2)+1))-C2:$K2-B3,(B3-(SUBTOTAL(9,OFFSET(C2:$K2,,,,COLUMN(C2:$K2)-COLUMN(C2)+1))-C2:$K2))/C2:$K2),IF(B3=SUM(C2:$K2),COUNT(C2:$K2),999))),0)

Would appreciate if someone can guide me one what went wrong, thank you.

Key FigureJan-22Feb-22Mar-22Apr-22May-22Jun-22Jul-22Aug-22Sep-22Oct-22
Forecast272843951219478726357
Projected Inventory18816011712194787263570
Fwd Coverage3.22.21.20.00.00.00.00.01.00.0
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
I have no idea how this works, but I changed the big bold part to less than or equal to and thar she blows!

=IFERROR(IF(FALSE,0,IF(TRUE,SUMPRODUCT(--(SUBTOTAL(9,OFFSET(C2:$K2,,,,COLUMN(C2:$K2)-COLUMN(C2)+1))<=B3))+LOOKUP(0,SUBTOTAL(9,OFFSET(C2:$K2,,,,COLUMN(C2:$K2)-COLUMN(C2)+1))-C2:$K2-B3,(B3-(SUBTOTAL(9,OFFSET(C2:$K2,,,,COLUMN(C2:$K2)-COLUMN(C2)+1))-C2:$K2))/C2:$K2),IF(B3=SUM(C2:$K2),COUNT(C2:$K2),999))),0)
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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