+ Reply to Thread
Results 1 to 3 of 3

Formula for adding week-end "idle time" to date range

Hybrid View

  1. #1
    Registered User
    Join Date
    02-10-2012
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    5

    Formula for adding week-end "idle time" to date range

    I have a set of date ranges for a production line that I need to adjust so that the 48 hours of idle time from Fri 23:00 to Sun 23:00 are added to the end date range.

    Basically the week-ends are idle time for the production line so my end date needs to factor in that idle time and reflect the true end time (where a week-end is present in the date range of course).

    i.e.

    2/2/12 3:59 AM 2/2/12 8:20 AM
    2/2/12 8:20 PM 2/3/12 12:41 AM
    2/3/12 3:00 PM 2/6/12 10:09 AM


    Thanks,
    Brad

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,952

    Re: Formula for adding week-end "idle time" to date range

    Subract the WEEKNUM of the project end date from the WEEKNUM of the start date and multiply the remainder by 2 to get the total number of weekend days. Add this to the project end date to get the corrected end date:
    Edit: I did not account for crossing into a new year. The formula in F2 should be:
    =E2+(52*(E2<D2))-D2
    Attached Files Attached Files
    Last edited by protonLeah; 02-13-2012 at 02:04 AM. Reason: corrected formula for new year
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    02-10-2012
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Formula for adding week-end "idle time" to date range

    Thank you so much for the help. Your solution worked beautifully! Thanks again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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