+ Reply to Thread
Results 1 to 3 of 3

Rounding to Semi-Annual Dates

  1. #1
    Registered User
    Join Date
    10-05-2006
    Posts
    15

    Rounding to Semi-Annual Dates

    Hello All,

    Should be a quick one for you guru's. I need to round some dates to the nearest semi-annual date for that year.

    Ex. - 4/31/2007 = 6/30/2007.
    Ex. - 9/30/2007 = 12/31/2007.

    There are dates from 2006 and 2005 as well. I was trying to find something similar to '=EOMONTH' for semi-annual dates, but to no avail.

    Thanks!

  2. #2
    Registered User
    Join Date
    07-25-2007
    Posts
    24

    Piece of Cake

    Ok, if A1 is the Date
    Then where this line is will do that

    =IF(MONTH(A1)>6,DATE(YEAR(A1),12,31),DATE(YEAR(A1),6,30))

    Explanation:

    Month(), Day(), Year() takes a date and takes the number for day, month or year out. and the Date() puts it all back together

    Adil

  3. #3
    Registered User
    Join Date
    10-05-2006
    Posts
    15
    Thanks!

    Works like a charm.

+ 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