+ Reply to Thread
Results 1 to 6 of 6

Forward Cover Calculation For Horizontal Data

  1. #1
    Registered User
    Join Date
    04-10-2018
    Location
    Peterborough, England
    MS-Off Ver
    2010
    Posts
    5

    Forward Cover Calculation For Horizontal Data

    Hi i am trying to calculate forward cover on the correct "countdown method" and have seen various posts that use a combination of MATCH & OFFSET to determine the whole number of Sales Periods a given inventory has - however these seem only to work with Vertically presented data? (example for vertical '=MATCH(TRUE,SUBTOTAL(9,OFFSET(B3:B$11,,,ROW(B3:B$11)-ROW(B3)+1))>C2,0)-1)

    - Does anyone know of the right formula for when data is horizontal as below?

    Period>> 1 2 3 4 5 6 7 8 9 10
    Sales 150 150 150 150 250 200 150 100 100 100
    Closing Stock 500 500 700 800 800 700 600 500 500 500
    True Cover (Manual) 3.2 2.8 3.7 5.0

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Forward Cover Calculation For Horizontal Data

    Can you explain how you got the manual results?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    04-10-2018
    Location
    Peterborough, England
    MS-Off Ver
    2010
    Posts
    5

    Re: Forward Cover Calculation For Horizontal Data

    Explanation of manual results
    Week 1 Closing Stock 500
    Week 2 ,3,4 Sales all 150 each; so Stock Cover is 3 & something weeks, balance is 500-450=50 which divided by Week 5 Sales (250) which is 0.2, so total 3.2 weeks
    Week 2 Closing Stock 500
    Week 3 & 4 Sales 300 but Week 5 Sales is 250; ; so Stock Cover is 2 & something weeks, balance is 500-300=200 which divided by Week 5 Sales (250) which is 0.8, so total 2.8 weeks


    etc etc

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: Forward Cover Calculation For Horizontal Data

    Try

    in B4 ("helper" row)

    =MATCH(TRUE,SUBTOTAL(9,OFFSET(C2:$K2,,,,COLUMN(C2:$K2)-COLUMN(C2)+1))>B3,0)-1

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    Copy across

    in B5

    =B4+(B3-SUM(OFFSET(C2,,,,B4)))/OFFSET(B2,,B4+1)
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-10-2018
    Location
    Peterborough, England
    MS-Off Ver
    2010
    Posts
    5

    Re: Forward Cover Calculation For Horizontal Data

    John, that's spot on - thank you! Had tried the same but think came unstuck with the control-shift-enter and lost confidence in the ability of OFFSET & COLUMN to replace OFFSET & ROW for Horizontal data.

    I did by the way come up with this little one to deal with the problem if i couldn't find a solution - benefits of this approach is it doesn't use a "volatile" function, whilst it is limited in that it gets capped at 7 days.
    '=IF(B3-SUM(C2:INDEX(C2:J2,7))>=0,">7 Days",IF(B3-SUM(C2:INDEX(C2:J2,6))>=0,6+(B3-SUM(C2:INDEX(C2:J2,6)))/INDEX(C2:J2,6+1),IF(B3-SUM(C2:INDEX(C2:J2,5))>=0,5+(B3-SUM(C2:INDEX(C2:J2,5)))/INDEX(C2:J2,5+1),IF(B3-SUM(C2:INDEX(C2:J2,4))>=0,4+(B3-SUM(C2:INDEX(C2:J2,4)))/INDEX(C2:J2,4+1),IF(B3-SUM(C2:INDEX(C2:J2,3))>=0,3+(B3-SUM(C2:INDEX(C2:J2,3)))/INDEX(C2:J2,3+1),IF(B3-SUM(C2:INDEX(C2:J2,2))>=0,2+(B3-SUM(C2:INDEX(C2:J2,2)))/INDEX(C2:J2,2+1),IF(B3-SUM(C2:INDEX(C2:J2,1))>=0,1,B3/C2)))))))

    Where Sales Starts in B2, and stock in b3 (sorry new to this so couldnt upload a file)

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Forward Cover Calculation For Horizontal Data

    Yes, you CAN upload a workbook!!!

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Weeks of Stock Cover Calculation
    By suzyanne37 in forum Office 365
    Replies: 5
    Last Post: 01-08-2019, 10:06 AM
  2. Horizontal Sum Calculation posting results Vertically
    By Musiclover119 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-02-2017, 05:40 AM
  3. [SOLVED] How to adjust VBA for VLOOKUP to cover entire range of data
    By bdouglas1011 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-03-2014, 08:07 AM
  4. [SOLVED] Copying and pasting Horizontal Data to Horizontal cells
    By jjin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-11-2013, 01:14 AM
  5. Formula for Calculating Forward Weeks Cover....
    By ukgthor in forum Excel General
    Replies: 6
    Last Post: 08-23-2011, 01:11 AM
  6. Forward looking forecast/cover help required
    By Gizmo63 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-27-2006, 09:20 AM
  7. Replies: 2
    Last Post: 01-13-2006, 06:25 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1