+ Reply to Thread
Results 1 to 3 of 3

I need a formula to calculate delta between 2 dates in an array then add all if in a WW

  1. #1
    Registered User
    Join Date
    10-05-2012
    Location
    Portland, OR
    MS-Off Ver
    Ofice 2010
    Posts
    2

    I need a formula to calculate delta between 2 dates in an array then add all if in a WW

    So I don't even know if this is possible, but I have an array that looks like this:

    Machine Repair StartTime EndTime

    0000 Scheduled date/time date/time
    1111 unscheduled date/time date/time
    0000 unscheduled date/time date/time
    0000 scheduled date/time date/time


    This array has 30+ different machines and 4 repair types. There are also multiple rows for the same machine within the same day and week. So there will be end up being over a thousand rows over time.

    What I'm trying to achieve it to calculate the total time a specific machine was down for during a given WorkWeek based on the StartTime and End Time. What gets complicated is some times the Repair duration spans from one week to the next so I need to only count the portion of the repair duration that was in a that specific week.

    What gets more complicated is the workweeks are not standard... they run from Sat @19:00 to Sat @19:00.

    Is is possible to create a single formula that scans this entire array and adds all of a specific repair type of a certain machine for a given workweek? Or do you have to first calculate the delta into another column then add all of those?

    I've exhausted my formula knowledge to get this in one formula with no success and my brain has almost exploded.

    Thanks in advance.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: I need a formula to calculate delta between 2 dates in an array then add all if in a W

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    10-05-2012
    Location
    Portland, OR
    MS-Off Ver
    Ofice 2010
    Posts
    2

    Re: I need a formula to calculate delta between 2 dates in an array then add all if in a W

    Thanks. I uploaded a mock file and explained what I needed in the Reporting tab.

    I have figured out a way to do this in a 2-step method but it would be nice to have it in one calculation formula since my 2 step method uses 52 extra columns.
    Attached Files Attached Files

+ 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. Array formula to check if dates returned from another array formula falls between 2 dates
    By Atul Maskara in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-19-2014, 09:54 PM
  2. Need array formula to calculate shift dates
    By jafrazer in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-28-2013, 02:31 PM
  3. Replies: 1
    Last Post: 02-02-2013, 02:28 PM
  4. Replies: 1
    Last Post: 11-01-2012, 03:41 PM
  5. Array formula to calculate average
    By MFCPA in forum Excel General
    Replies: 20
    Last Post: 04-04-2012, 07:35 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