+ Reply to Thread
Results 1 to 10 of 10

Rolling Year function

  1. #1
    Registered User
    Join Date
    07-11-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    9

    Rolling Year function

    Hi,

    I'm creating a spreadsheet that calculates the end date of an employees training period. I've used the WORKDAY function to calculate the end date based on the Start Date and the number of days they are in training. the issue is the holiday compnent of the WORKDAY function only appears to remove one day for each date entered rather than a date range. E.g They are on holiday between 05/08/2014 - 22/08/2014 the function would only add two days to the end date rather than the total number of work days missed. Is there any way a date range can be used with the WORKDAY function, or is there a better way for me to acheive what I want?

    Many Thanks

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Rolling Year function

    Excel doesn't assume that, if you list 2 dates, you want a range of dates. Typically, users do not want date ranges assumed....New Year's Day, etc.
    You need to list every holiday date.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    07-11-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    9

    Re: Rolling Year function

    Thank you for your reply, I understand what you say above. My question is can date ranges be used with the WORKDAY function or do I need to approach the problem from a different angle.

  4. #4
    Forum Contributor
    Join Date
    10-19-2012
    Location
    chennai
    MS-Off Ver
    Excel 2013
    Posts
    134

    Re: Rolling Year function

    hi

    will you attach a sample file..

    rajan

  5. #5
    Registered User
    Join Date
    07-11-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    9

    Re: Rolling Year function

    Book2.xlsxHi,

    Please attached the workbook. The two dates I have entered only add two days to the end date, I would like them to be counted as a range.

    Many Thanks

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

    Re: Rolling Year function

    Try this in K2
    Please Login or Register  to view this content.
    If both days are inclusive then
    Please Login or Register  to view this content.
    Last edited by kvsrinivasamurthy; 07-11-2014 at 08:33 AM.

  7. #7
    Registered User
    Join Date
    07-11-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    9

    Re: Rolling Year function

    Excellent!!! Thank you very much

  8. #8
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Rolling Year function

    I don't think that quite works.
    Example:
    Start Date: 8/1/2014
    Days to complete: 30
    Absence time: 8/5/2014 thru 8/22/2014

    This formula:
    Please Login or Register  to view this content.
    returns: 10/8/2014

    However, this formula:
    Please Login or Register  to view this content.
    returns: 10/1/2014
    Which I believe is correct

    Details:
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    07-11-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    9

    Re: Rolling Year function

    Hi Ron,

    Indeed your example does provide the required result. Many thanks for the reply.

  10. #10
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Rolling Year function

    Glad you got something you can use.

+ 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. Replies: 4
    Last Post: 07-03-2013, 01:34 AM
  2. Rolling Year problems
    By Joeman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-25-2007, 05:53 PM
  3. [SOLVED] Rolling year
    By Marilyn in forum Excel General
    Replies: 2
    Last Post: 06-17-2006, 10:15 PM
  4. [SOLVED] rolling year in excel
    By JJC in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. [SOLVED] rolling year in excel
    By JJC in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-05-2005, 10:05 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