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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,215,035
Messages
6,122,785
Members
449,095
Latest member
m_smith_solihull

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