+ Reply to Thread
Results 1 to 12 of 12

Formula to calculate average delivery time (days) on part#

  1. #1
    Registered User
    Join Date
    08-05-2017
    Location
    AUSTRALIA
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    23

    Formula to calculate average delivery time (days) on part#

    Hi All,

    Can you please help provide a formula to calculate the average delivery time (days) on a part# to arrive from its order date?
    Sheet shows multiple rows with the same part# shown multiple times.


    Example.jpg

    Thanks in advance!
    Attached Files Attached Files
    Last edited by DAVE201992; 09-29-2018 at 10:07 PM.

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,021

    Re: Formula to calculate average delivery time (days) on part#

    .
    Pics are nice but having a sample workbook is tons better. Please attach a workbook with the posted data included.

    Thanks.

  3. #3
    Registered User
    Join Date
    08-05-2017
    Location
    AUSTRALIA
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    23

    Re: Formula to calculate average delivery time (days) on part#

    Hi Logit,

    Have now added.

    Thanks

  4. #4
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Formula to calculate average delivery time (days) on part#

    Hi May be this

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Click just below left if it helps, Boo?ath?

  5. #5
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,021

    Re: Formula to calculate average delivery time (days) on part#

    .
    Here is a macro version :

    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    08-05-2017
    Location
    AUSTRALIA
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    23

    Re: Formula to calculate average delivery time (days) on part#

    Hi boopathiraja,

    thanks for taking the time to answer my question.
    Can you please tell me how this formula is calculated?

    Thanks in advance

  7. #7
    Registered User
    Join Date
    08-05-2017
    Location
    AUSTRALIA
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    23

    Re: Formula to calculate average delivery time (days) on part#

    Hi Logit,

    Thanks for getting back to me.
    How do I insert this macro into the workbook?

    Thanks in advance

  8. #8
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,021

    Re: Formula to calculate average delivery time (days) on part#

    .
    Disregard my previous answer. I woke up this morning, started experimenting with the code (thought I could improve it) and discovered what worked last night doesn't work this morning.
    The FUNCTION in my first answer appears to be highly volatile and causing too many errors.

    So .. after some searching and editing ... this is the result. It appears (at this point) to be very, very stable and accurate. Won't really know until you give it a try there.

    The macro below should be pasted into a module. It requires two command buttons pasted to Sheet 1. If you download the sample workbook and exam it ... it is all there for you to see.
    The download workbook is fully functional as is for your purposes. You can transfer the code to your project or simply use the download workbook as your base and build on it.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Logit; 09-29-2018 at 04:28 PM.

  9. #9
    Registered User
    Join Date
    08-05-2017
    Location
    AUSTRALIA
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    23

    Re: Formula to calculate average delivery time (days) on part#

    Thank you very much Logit!
    That works great!

    I have found that I need to add additional columns to the sheet.
    Are you able to please reconfigure the macro to take these into consideration?

    sheet attached.

    Thanks in advance

  10. #10
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,021

    Re: Formula to calculate average delivery time (days) on part#

    .
    The ranges are the only things that need to be edited. If you study the previous code and compare it to the code below (the range designations) you will see the difference.
    The code below is already to go. You can remove the previous code and paste the below in its place or better yet, just use the attached workbook. It is already set up for
    20,000 rows of data.

    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    08-05-2017
    Location
    AUSTRALIA
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    23

    Re: Formula to calculate average delivery time (days) on part#

    Thank you Logit

  12. #12
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,021

    Re: Formula to calculate average delivery time (days) on part#

    .
    You are welcome.

+ 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. [SOLVED] formula which can calculate last 7 days average
    By kiany406 in forum Excel General
    Replies: 1
    Last Post: 05-22-2015, 05:03 PM
  2. How to Calculate On-Time Delivery Performance %
    By Sixto2014 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-28-2014, 02:24 AM
  3. Replies: 2
    Last Post: 06-05-2013, 12:14 PM
  4. calculate formula for on-time delivery
    By birgiths in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 03-28-2012, 10:37 AM
  5. [SOLVED] Using days of the week to calculate payment to part-time workers
    By pschatz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-07-2011, 12:53 AM
  6. Excel 2007 : Calculate On Time Delivery
    By Smartfabrication in forum Excel General
    Replies: 3
    Last Post: 03-14-2011, 09:23 PM
  7. Formula to calculate average days to ship
    By maacmaac in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-29-2010, 08:49 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