+ Reply to Thread
Results 1 to 5 of 5

Sumproduct and averaging date differential

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-18-2005
    Posts
    238

    Sumproduct and averaging date differential

    I am trying to accomplish the following:

    A1: Beginning Date.... e.g. 1/1/14
    A2: Ending Date..... e.g. 1/31/14

    Column A (rows 3:50) - Date (sent out date)
    Column C (rows 3:50) - Date (received date)
    Column D (rows 3:50) - Date (processed date)

    I can get the first part of the sumproduct formula down:

    =sumproduct((Sheet1!A3:A50>=A1)*(Sheet1!A3:A50<=A2)*...............rest that I don't know)

    Every row will have a date (sent out date) in Column A and Column C and Column D will have data (date) as items are received (Column C) and then moved to processed (Column D). I am trying to find out the average number of days it takes for an item to be sent out (Column A) to processed (Column D) if Column D has a date.

    Thank you for any help.

    Josh

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Sumproduct and averaging date differential

    Hi,

    Perhaps

    =SUMPRODUCT((A3:A50>=$A$1)*(B3:B50<=$A$2)*((B3:B50)-(A3:A50)))/COUNTA(A3:A50)
    and there's probably an AVERAGEIFS() function there somewhere
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    01-18-2005
    Posts
    238

    Re: Sumproduct and averaging date differential

    I have provided a workbook example with 4 rows of data if that will help.

    Thank you again,

    Josh

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Sumproduct and averaging date differential

    Hi,

    If you post an example without a workbook you should make sure that what you put in the post matches what is in the workbook or we all end up wasting our time.

    The workbook you've now attached differs to your original in two critical ways.
    1. It doesn't have the A1 & A2 cells that you are using as a basic selection criteria
    2. Your original indicated that there was always a Date Processed date in rows 3:50

    See attached

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Sumproduct and averaging date differential

    An example with array formula.Pl see file.

+ 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] Differential Pay
    By bobanderson123 in forum Excel General
    Replies: 10
    Last Post: 03-10-2022, 07:40 PM
  2. Averaging last 6 parameters using sumproduct
    By Spankyf in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-30-2012, 03:45 AM
  3. Help with differential equation
    By raaymaan in forum Excel General
    Replies: 0
    Last Post: 03-13-2010, 09:59 AM
  4. Averaging between date range
    By NickiName in forum Excel General
    Replies: 2
    Last Post: 01-07-2010, 10:58 AM
  5. shift differential
    By flyeaglesfly in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-14-2008, 04:09 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