+ Reply to Thread
Results 1 to 8 of 8

Semi-annual issues

  1. #1
    Registered User
    Join Date
    11-25-2010
    Location
    Finland
    MS-Off Ver
    Excel 2008
    Posts
    2

    Post Semi-annual issues

    Hi everybody,

    I'm new here and I got a little question for all Excel-wizards out there. I´ve been trying to come up with equation which would round some dates to the end of the next semi-annual date for that or the next year. I found this

    "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!

    Join Date: 26 Jul 2007

    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


    from this site and it´s a good start but not working for me. This is what I mean:

    ex: 14-Jun-2010 = 31-Mar-2011
    ex: 20-Oct-2010 = 31-Sep-2011

    I´ve been banging my head against the wall for quite some time and would appreciate any help!

    EDIT:

    Sorry guys I wasn't specific enough, my bad.

    So this is what need the formula to do:

    Input: 14-Jun-2010, Output should be: 31-Mar-2011
    Input: 20-Oct-2010, Output should be: 31-Sep-2011

    This is question concerning a semi-annual training event, as if somebody accomplishes an event in i.e 14-Jun-2010 he´s due on the 31-Mar-2011, so he´s good until the end of the next semi-annual period.
    Anyone?

    EDIT: Thanks KIPA for pointing this one out!
    Last edited by Sami Kaasalainen; 11-26-2010 at 08:18 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Semi-annual issues

    This returns the 3/31 or 10/31 following the date:

    =EOMONTH(A1, LOOKUP(MONTH(A1), {1,4,11}, {3,10,15}) - MONTH(A1))

    E.g.,

    Please Login or Register  to view this content.
    Last edited by shg; 11-25-2010 at 11:03 AM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,440

    Re: Semi-annual issues

    Not sure why it's giving you a problem; seems OK to me.

    Excel 2003, Windows XP:

    HTML Code: 

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    11-25-2010
    Location
    Finland
    MS-Off Ver
    Excel 2008
    Posts
    2

    Re: Semi-annual issues

    So this is what would need the formula to do:

    example :Input: 14-Jun-2010, Output should be: 31-Mar-2011
    example: Input: 20-Oct-2010, Output should be: 31-Sep-2011

    This is question concerning a semi-annual training event, as if somebody accomplishes an event in i.e 14-Jun-2010(the first semiannual period) he´s due on the 31-Mar-2011(which is the end of second semi-annual period), so he´s good until the end of the next semi-annual period.This might be confusing but according to our calendar the "training"-year starts at the beginning of April.
    Any help would be appreciated!

  5. #5
    Registered User
    Join Date
    11-22-2010
    Location
    Finland
    MS-Off Ver
    Excel 2003, 2007
    Posts
    95

    Re: Semi-annual issues

    You might want to fix the first post edit, since it has a different output of 20-Oct-2010. This of course assuming that the due date is 31-Sep but not 31-Oct.
    An example file is never useless!

    Tried an example function of mine and got errors?
    - Had you found them, replace ; with , and , with .

  6. #6
    Registered User
    Join Date
    11-22-2010
    Location
    Finland
    MS-Off Ver
    Excel 2003, 2007
    Posts
    95

    Re: Semi-annual issues

    Source data in B2:

    Please Login or Register  to view this content.
    It's a bit of a mess, might deduct (more).
    Last edited by KiPA; 11-26-2010 at 09:00 AM. Reason: Decucted the code.

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Semi-annual issues

    =eomonth(a1, lookup(month(a1), {1,4,10}, {9,15,21}) - month(a1))

  8. #8
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Semi-annual issues

    Try this formula

    =DATE(YEAR(A1),CEILING(MONTH(A1)+3,6)+4,0)

    or using EOMONTH....

    =EOMONTH(A1,MOD(3-MONTH(A1),6)+6)
    Audere est facere

+ 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