+ Reply to Thread
Results 1 to 5 of 5

Working date calculator

  1. #1
    Registered User
    Join Date
    12-20-2010
    Location
    Lincoln, UK
    MS-Off Ver
    Excel 2003
    Posts
    2

    Working date calculator

    Good Afternoon All,

    I've been pulling my hair out over a calculator I've been asked to create.

    Various formulas needed for different dates have my head in a spin.

    The result in H16 must be 3 calendar Months previous to the start date in H3
    The result in H20 must be 15 working days in advance of H3.
    The result in H23 must be 10 working days previous of H3.
    The result in H26 must be 15 working days in advance of H3.
    The result in H29 must be 10 working days previous of H20.



    All calculated dates must be working days. Any date which lands on a Saturday, Sunday or bank holiday, must show the PREVIOUS working day as the result.

    I have a list of weekends and bank holidays stored on sheet2 a1:a564.

    Any help would be most appreciated.

    Noel.

    Edit: I'm using Microsoft Excel 2007.
    Attached Files Attached Files
    Last edited by tniknaks; 12-20-2010 at 11:12 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Working date calculator

    re: calendard months - see EDATE in XL Help
    re: Working Days calculations see WORKDAY function in XL Help

    In versions prior to XL2007 you would have to activate the Analysis ToolPak for both of the above.

  3. #3
    Registered User
    Join Date
    12-20-2010
    Location
    Lincoln, UK
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Working date calculator

    Analysis ToolPak is enabled. I've looked at NETWORKDAYS and WORKDAYS etc, but being an Excel virgin, it all goes straight over my head.

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,703

    Re: Working date calculator

    Assume that your holiday range is named holidays.....

    You can get 3 months before H3 with this formula

    =EDATE(H3,-3)

    but that might land on a non-working day so you can get that date or corrected (previous workday) by using

    =WORKDAY(EDATE(H3,-3)+1,-1,holidays)

    for H20 you can simply use

    =WORKDAY(H3,15,holidays)

    and similar for other calculations
    Audere est facere

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Working date calculator

    Examples:

    Please Login or Register  to view this content.
    Re: H20 etc... WORKDAY rather than NETWORKDAYS

    Please Login or Register  to view this content.
    NOTES:
    1. your Sheet2 table needs to only contain the Public Holiday Dates - weekends are excluded automatically.
    2. the ATP functions are available by default in XL2007+ as such you don't need to activate the Add-In

+ 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