SOLVED

How to calculate inventory carry months (Excel)

%3CLINGO-SUB%20id%3D%22lingo-sub-2242155%22%20slang%3D%22en-US%22%3EHow%20to%20calculate%20inventory%20carry%20months%20(Excel)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2242155%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20friends%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20anyone%20knows%20how%20to%20calculate%20carry%20months%20by%20Excel%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETake%20below%20for%20example%3A%3C%2FP%3E%3CP%3E%22Product%20A%22%20current%20stock%20is%20100%2C%20and%20I%20can%20use%201.58%20months%20after.%3C%2FP%3E%3CP%3E%22Product%20B%22%20current%20stock%20is%20100%2C%20and%20I%20can%20use%202.37%20months%20after.%3C%2FP%3E%3CP%3E%22Product%20C%22%20current%20stock%20is%20300%2C%20and%20I%20can%20use%203.50%20months%20after.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELogic%20is%3A%3C%2FP%3E%3CP%3E%22Product%20A%22%20current%20stock%20is%20100%2C%20January%20%26amp%3B%20February%20demand%20is%2055%20%26amp%3B%2078.%3C%2FP%3E%3CP%3EAfter%20January%20I%20have%2045%20left%20and%20still%20cover%2045%2F78%3D0.58%20month%20of%20February.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Luke_Lee_1-1617009858088.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F267869i27EE993D7B8A8E81%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Luke_Lee_1-1617009858088.png%22%20alt%3D%22Luke_Lee_1-1617009858088.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2242155%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2242274%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20calculate%20inventory%20carry%20months%20(Excel)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2242274%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F992520%22%20target%3D%22_blank%22%3E%40Luke_Lee%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWith%20the%20help%20of%20solver%20columns%20and%20below%20formula%20you%20may%20achieve%20your%20requirements%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%3DIFERROR(IF((%24B2-SUM(%24D2%3AD2))%2FE2%26lt%3B0%2C0%2CIF((%24B2-SUM(%24D2%3AD2))%2FE2%26gt%3B1%2C1%2C(%24B2-SUM(%24D2%3AD2))%2FE2))%2C0)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22tauqeeracma_0-1617015508860.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F267884i0230D6B5B108EF7D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22tauqeeracma_0-1617015508860.png%22%20alt%3D%22tauqeeracma_0-1617015508860.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EYou%20may%20refer%20the%20attached%20file%20for%20your%20reference.%20Please%20let%20me%20know%20if%20it%20works%20for%20you.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3ETauqeer%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi friends,

 

If anyone knows how to calculate carry months by Excel?

 

Take below for example:

"Product A" current stock is 100, and I can use 1.58 months after.

"Product B" current stock is 100, and I can use 2.37 months after.

"Product C" current stock is 300, and I can use 3.50 months after.

 

Logic is:

"Product A" current stock is 100, January & February demand is 55 & 78.

After January I have 45 left and still cover 45/78=0.58 month of February.

 

Luke_Lee_1-1617009858088.png

 

 

1 Reply
best response confirmed by Luke_Lee (Occasional Contributor)
Solution

Hi @Luke_Lee 

 

With the help of solver columns and below formula you may achieve your requirements:

=IFERROR(IF(($B2-SUM($D2:D2))/E2<0,0,IF(($B2-SUM($D2:D2))/E2>1,1,($B2-SUM($D2:D2))/E2)),0)

tauqeeracma_0-1617015508860.png

You may refer the attached file for your reference. Please let me know if it works for you.

 

Thanks

Tauqeer