+ Reply to Thread
Results 1 to 10 of 10

Summing product based off multiple dates and finding most recent

  1. #1
    Registered User
    Join Date
    09-21-2012
    Location
    Minnesota, US
    MS-Off Ver
    Excel 2010
    Posts
    15

    Summing product based off multiple dates and finding most recent

    Hello,
    I have a worksheet with multiple "named field" columns for departments, and each row has the task to be completed. When a task is completed the department fills the cell with the date.

    There is a sequence for when the jobs are to be completed. At the top of the sheet we have tracking data that shows "Tasks in queue", "average time in queue", "tasks overdue in queue", and "average time to complete".

    Previously this sequence was completely linear, so I used a formula like this to determine "average time in queue"

    Please Login or Register  to view this content.
    where [H5] is "tasks in queue", [pfep] is current department and [whse] is previous department.


    Now we are moving from linear sequence to a grouped flow, where one department may have to wait on multiple departments before it is in their "queue" and some departments may be working on it at the same time.

    So I am struggling trying to create a formula that will reference the necessary depts by row, once the necessary depts have completed the task, finding the last date and calculating average from that.


    I had tried:
    Please Login or Register  to view this content.
    and multiple variations of that...
    My hope was that this would (if both "whse", and "buyer" were populated with date) find which was the last date entered by comparing and calculate average based off the last entered date

    But then I realized I was comparing the named range as a whole and not by row.

    I'm pretty much a rookie when it comes to this level of stuff with excel, so I appreciate any help. And please excuse the length of this post, it was as concise as I thought I could be and still provide necessary info.

    Thanks!
    Last edited by CWicklund; 10-02-2012 at 04:48 PM.

  2. #2
    Registered User
    Join Date
    08-06-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Summing product based off multiple dates and finding most recent

    Could you upload some mock data for us to play about with? I find it easier to get to grips with when I'm looking at the same thing as you

  3. #3
    Registered User
    Join Date
    09-21-2012
    Location
    Minnesota, US
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Summing product based off multiple dates and finding most recent

    ECN Tracking Spreadsheet 2012 process tab EXAMPLE.xlsx Here is an example of what we are doing
    Thanks!

  4. #4
    Registered User
    Join Date
    09-21-2012
    Location
    Minnesota, US
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Summing product based off multiple dates and finding most recent

    No Takers? I am more than happy to provide more information

  5. #5
    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,938

    Re: Summing product based off multiple dates and finding most recent

    i am trying to figure out what yo are doing there, but having a hard time. i am playing around with countif() and countifS(), but not coming up with all of your answers.

    NCN's n Queue =SUMPRODUCT((support1=0)*(deng<>0)) -> 2
    =COUNTIF(support1,"") --------------------> 2
    Avg time in queue =SUMPRODUCT((support1=0)*(deng<>0)) --> 628
    =MAX(support1)-MIN(support1) ------------> 596

    can you walk me through how you arrive at 628?

    also walk me through for the overdue and avereage time to complete
    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

  6. #6
    Registered User
    Join Date
    09-21-2012
    Location
    Minnesota, US
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Summing product based off multiple dates and finding most recent

    Thanks For checking it out, I'll see if I can explain it.

    First of all, these are mock dates so the numbers are a little wonky.


    The "average time in queue" formula is this:
    Please Login or Register  to view this content.

    So this formula will sum the product of incomplete tasks (support1=0) and the where the previous department is complete (deng<>0 [contains anything]) take the date code for today (TODAY() and subtract the date code for previous dept (-deng) and divide by the number of ECNs in queue (/E5)

    What I am attempting; is to find this average where there may be multiple departments working on a task at the same time, but one department may have to wait on all of them to be completed before they can accomplish their part of the task. So, when all the necessary dept are done it will appear in their queue and start counting days from there, but the depts will finish on different dates, so when the last dept finishes their task, that is when it will appear in their "queue"

    I already have the "number ECNs in queue" formulas done to reflect the depts they wait on.


    The "# ECNs in queue" looks like this when multiple depts are involved:
    Please Login or Register  to view this content.
    This formula simply finds how many tasks are incomplete (ecnco=0) and where the previous depts have completed their part-
    (fab<>0)*(pfep<>0)*(_sqa1<>0)*(support1<>0)*(mfgeng<>0)


    The "number of ecns overdue" formula looks like this:
    Please Login or Register  to view this content.
    Once again, this is summing the product where the task is incomplete (support=0) and where previous dept is complete (deng<>0) taking today's date code ($D$3) and subtracting the date when the previous dept completed (-deng) if it's greater than 7 days,

    Hope that makes sense,
    Thanks!

  7. #7
    Registered User
    Join Date
    09-21-2012
    Location
    Minnesota, US
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Summing product based off multiple dates and finding most recent

    Any help would be GREATLY appreciated. I really would like to find out soon what direction I need to go with this.

  8. #8
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Summing product based off multiple dates and finding most recent

    hi @cwicklund,

    is it possible for you to include results that you expect to see? if those are already embedded, can you please point to them?

    not a criticism, just a suggestion - you might want to tone the colour scheme on the file down a tad, it is a wee bit hard on the eyes.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  9. #9
    Registered User
    Join Date
    09-21-2012
    Location
    Minnesota, US
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Summing product based off multiple dates and finding most recent

    Thanks for the response, I will point it out and see if I can add some helpful notes.


    Now we are moving from linear sequence to a grouped flow[IF you look at the sheet, each department went from left to right in that order, now it won't be in that linear sequence], where one department may have to wait on multiple departments before it is in their "queue" and some departments may be working on it at the same time.

    So I am struggling trying to create a formula that will reference the necessary [Prerequisite] depts by row, once the necessary depts have completed the task, finding the last date [which would be when it entered the new dept's queue] and calculating average from that.

    I had tried:

    Please Login or Register  to view this content.
    and multiple variations of that...
    My hope was that this would (if both "whse", and "buyer" were populated with date) find which was the last date entered by comparing and calculate average based off the last entered date

    But then I realized I was comparing the named range as a whole and not by row.

    I hope this helps, If you need more explanation I can certainly try, just let me know.

    As far as the color scheme, we are remaining consistent with other documentation related to this process. It's hard to tone down yellow without making it look really ugly (believe me, I tried).

    Thanks,

  10. #10
    Registered User
    Join Date
    09-21-2012
    Location
    Minnesota, US
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Summing product based off multiple dates and finding most recent

    Does anyone have any ideas? I'd be happy to provide more info if required.

+ 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