+ Reply to Thread
Results 1 to 4 of 4

Rounding Dates

  1. #1
    Registered User
    Join Date
    08-27-2004
    Posts
    40

    Rounding Dates

    Good afternoon!

    I have a series of job dates that we need to keep track of to ensure they are not overdue. We have a maximum of 6 weeks (42 days) between which visits can be completed, so for example a job completed on the 1st June must be completed by approx 15th July.

    This seemed easy at first, I simply used Excel to add 42 days to the original date but there is a problem! Each visit is due monthly and if a job is completed at the end of a month, e.g. 29th June, the next projected date is in August, NOT July.

    Is there any way of getting Excel to add 42 days to a date, but for it to know that the next audit date should not be more than one calender month from the last i.e. if last audit is in June, the latest it can be completed is 31st July?

    Thanks

    Darren

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Hi, Darren. If you have the Analysis ToolPak add-in installed, you can use the EOMONTH function:

    =MIN(A1+42,EOMONTH(A1,1))

    HTH

    Jason

  3. #3
    Registered User
    Join Date
    08-27-2004
    Posts
    40
    Thank you for the quick response - unfortunately I do not have this. Are there any other ways of acheiving the same result?

    Thanks

    Darren

  4. #4
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Hi, Darren. This should work for you:

    =MIN(A1+42,DATE(YEAR(A1),MONTH(A1)+2,1)-1)

    Jason

+ 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