+ Reply to Thread
Results 1 to 3 of 3

Function including a variable range

  1. #1
    Registered User
    Join Date
    05-13-2013
    Location
    Fort Lauderdale, Florida
    MS-Off Ver
    Excel 2011
    Posts
    46

    Function including a variable range

    I have a spreadsheet that keeps track of stock. I have an attention status that tells me if there is overstock (refers to a cell with a fixed amount), attention lets me know if stock is less than lead time(lead time is the total time to restock that item) and ok if neither criteria are meant. Each product has a different lead time. If you look at my attached spread sheet I would like my current status function to refer to that products lead time plus 2 weeks. For example if we are in week 50 and the lead time is 12 weeks then the function would refer to the stock count in week 10. However I would like to add two weeks on to that for a margin of safety. So for the above example I would like my function to refer to week 12. Please let me know if there is a function that will incorporate current week and lead time as a variable rage in my current function.Status Function.xlsx

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Function including a variable range

    what results should you get for those 3 items?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    05-13-2013
    Location
    Fort Lauderdale, Florida
    MS-Off Ver
    Excel 2011
    Posts
    46

    Re: Function including a variable range

    Results should be equal to what is in week 13. The 13 week lead time means I should be looking in week 11 since it is 13 weeks from week 50, however I want to add 2 weeks as a safety net so this results in my status function looking at week 13. My lead time is a variable amount. Thanks.

    1: Overstock
    2: Overstock
    3: Attention

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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