+ Reply to Thread
Results 1 to 3 of 3

Formula to calculate lead times using inbound, outbound and stock data

  1. #1
    Registered User
    Join Date
    03-09-2020
    Location
    Todmorden
    MS-Off Ver
    Office 2016
    Posts
    2

    Formula to calculate lead times using inbound, outbound and stock data

    Hello everyone,

    I am getting in touch because I can't work out the correct formula I need to calculate lead times. Is it a nested IF, is it a COUNTIFS or is it something else entirely?

    All I need is the number of weeks it will take to fulfil an order when using weekly data. It seemed a relatively simple problem to start with, but I am now stumped.

    Here's hoping that somebody already has something worked out for this.

    Btw I am totally open to re-formatting the data or using helper columns.

    Here is the problem...

    Orders are individual customer orders that tend to be 2 to 3 pieces each and are fulfilled on a first in first out basis, so the earliest orders consume the available stock first.
    The forecast sales quantities is made up of multiple individual orders for each week.
    I need to work out how many weeks it will take to fulfill an order. Orders are still taken when the stock balance is negative, the customer lead time is lengthened instead.
    The formula I am trying to identify will automatically calculate the lead time that should be set based on forecast sales and planned receipts.

    Orders will be fulfilled on a first in first out (FIFO) basis, so the first orders received will consume the first inbound stock. Here is an example data set - if stock is available to fulfil the orders for that week, the lead time is 1.

    Inbound Outbound Stock Lead Time
    25 50 25 2
    25 50 50 2
    50 50 50 2
    100 50 0 1

    I think that the formula will have to check back against the starting balance of the previous week and the previous order quantity to identify if it can consume the stock.

    If it can consume the stock (because earlier orders haven't claimed it already), the formula then needs to look ahead and calculate the number of weeks until the stock balance and inbound receipts fulfil this week's order quantity.

    Many thanks if you're taking the time to look at this problem, I really do appreciate any help.

    All the best, Matt.
    Attached Files Attached Files
    Last edited by MattLudlam; 03-10-2020 at 05:49 AM. Reason: Better explanation of the problem

  2. #2
    Valued Forum Contributor
    Join Date
    04-26-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    502

    Re: Formula to calculate lead times using inbound, outbound and stock data

    Based on the basic data provided in your test sheet this formula works. You may need to modify the -= amounts to match your real life work though.

    Place in the 2 rows after each stock calc =IF(E4<-99,5,IF(E4<=-76,4,IF(E4<=-51,3,IF(E4=-50,2,1))))
    Last edited by BlindAlley; 03-10-2020 at 01:28 PM.
    Uploading an attachment will assist Forum Members in finding the correct Solution for you. Create a dummy worksheet if necessary, add your start data and show where / what your expected results should be. TO ADD A FILE:

    Go to 'Advanced. click on 'Manage Attachments. Select 'Browse & Choose your file, Select 'Upload and then close the Attachment window.

  3. #3
    Registered User
    Join Date
    03-09-2020
    Location
    Todmorden
    MS-Off Ver
    Office 2016
    Posts
    2

    Re: Formula to calculate lead times using inbound, outbound and stock data

    Hi BlindAlley,

    Thank you for taking a look at this. I confess I only chose those amounts so the problem would be easy to visualise mentally, the orders when they come through are in all sorts of quantities, so that approach won't work for me.

    I've done some further digging though, and it looks as though the inventory management term for what I am trying to do is calculate available to promise quantities for each week.

    Here is an explanation and some worked examples - ofienterprises.com/available-to-promise-inventory-calculations/ (I've had to remove the h t t p s elements, as I'm not allowed to post links on this forum yet).

    It looks as though the most relevant formula is the 2nd one -*CUMULATIVE ATP with LOOK AHEAD (ATP-CL).*Interestingly, it makes this comment at the end of the explanation:*"The observant reader will notice an alternate technique for calculating Cumulative ATP with lookahead. That is. Calculate the Discrete ATP first, then apply look ahead to those values to get the values for Cumulative ATP with Lookahead."

    I've got to finish for the day now, and will take another look tomorrow to try and puzzle it out.

    Thanks again for looking at this. Please let me know if you have any further thoughts on the available to promise problem.

    All the best, Matt.

+ 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. Working hours VS lead times
    By beann in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-06-2019, 04:12 AM
  2. [SOLVED] Supplier Lead Times
    By spamspamspam in forum Excel General
    Replies: 11
    Last Post: 10-17-2017, 08:34 AM
  3. VBA - Change the outbound and return times on Skyscanner
    By fatboy1989 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-07-2017, 07:40 AM
  4. Need formula to calculate margin based on type of lead source
    By nickoli in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-12-2016, 03:42 AM
  5. [SOLVED] working out lead times with 2 dates
    By NinjaBear in forum Excel General
    Replies: 2
    Last Post: 07-02-2012, 05:04 AM
  6. Taking into account lead times ...
    By Turvy86 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-30-2009, 02:25 PM
  7. determine lead/lag times between series
    By henryh2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-07-2008, 08:48 PM

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