+ Reply to Thread
Results 1 to 5 of 5

Formula to Average Days of Distinct Orders

  1. #1
    Registered User
    Join Date
    08-09-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    2

    Formula to Average Days of Distinct Orders

    OrderData.xlsx

    DealerOrderMonth Order ID Days to Ship
    ABC Jan 30651298 2.520138889
    ABC Feb 30534745 52.49027778
    ABC Feb 30534745 52.49027778
    ABC Feb 30557787 39.49027778
    ABC Jan 30506000 70.48958333
    ABC Jan 30506000 70.48958333
    ABC Jan 30503921 71.48958333
    ABC Jan 30503921 71.48958333
    ABC Jun 30778388 37.41527778
    ABC Jun 30778388 37.41527778
    ABC Jun 30778388 37.41527778
    ABC May 30616742 7.490277778
    ABC May 30730743 -
    ABC May 30721575 53.41666667

    With this info, I need to find the Monthly (Column A) average of the number of days (Column C) it took to fulfill each distinct order (Column B).

    The trouble is order IDs with multiple parts are duplicated (so that there is one row per part). Because of this, I need to use the average of a distinct set of Order IDs as to not weight the averages incorrectly.

    Can anyone help? Please let me know if I need to clarify anything at all.

    Thanks in advance

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Formula to Average Days of Distinct Orders

    Hi and welcome to the forum

    Will this work for you?

    =AVERAGEIF($A$2:$A$15,F2,$C$2:$C$15)
    copied down
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: Formula to Average Days of Distinct Orders

    are you open to adding a column to determine if the order ID is unique?

    Please Login or Register  to view this content.
    where column d has the unique identifier:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by simarui; 08-09-2013 at 05:08 PM.

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Formula to Average Days of Distinct Orders

    I did the same thing Simarui suggested.

    OrderData(1).xlsx

  5. #5
    Registered User
    Join Date
    08-09-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: Formula to Average Days of Distinct Orders

    Thank you all for your input. I ended up using daffodil11's suggestion and it worked great!

+ 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. Trying to average a distinct list
    By leftee96 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-07-2013, 04:36 PM
  2. Count Distinct Active Days
    By bongielondy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-04-2013, 07:36 AM
  3. [SOLVED] return average counts for distinct samples but with same name
    By Midna in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-18-2012, 01:08 AM
  4. average number of orders per day
    By jtnatoli in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-11-2008, 09:14 AM
  5. Average of work orders per business days
    By OrlandoFreeman in forum Excel General
    Replies: 13
    Last Post: 07-04-2006, 07:15 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