+ Reply to Thread
Results 1 to 7 of 7

Rounding up or down to a specific date

  1. #1
    Registered User
    Join Date
    12-18-2011
    Location
    Liverpool,england
    MS-Off Ver
    Excel 2010
    Posts
    21

    Rounding up or down to a specific date

    In excel I have a spread sheet that I use to calculate payment dates for students doing standing orders. I enter the date the student enrolled and would like it to calculate the start date of the standing order. All standing orders are paid on the 15th of each month. For example if a student enrolled on the 5th September it must show the 15th October as the payment date, if enrolled on the 5th October must show 15th November. If they enrol earlier than the 5th it must show the 15th of the same month. Hope that makes sense! Any ideas?

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Rounding up or down to a specific date

    Hi and welcome to the board

    And if they enroll between the 15th end the end of the month, what happens?

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Rounding up or down to a specific date

    Hi ajh,

    See the attachment and let us know if this is what you are looking for.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Attached Files Attached Files
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Rounding up or down to a specific date

    with enrol date in a2
    =IF(DAY(A2)<5,EOMONTH(A2,-1)+15,EOMONTH(A2,0)+15)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    12-18-2011
    Location
    Liverpool,england
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Rounding up or down to a specific date

    Hi DILIPandey

    Thats great and just what I'm looking for.
    Many Thanks
    Andy

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Rounding up or down to a specific date

    you are welcome Andy..

    Cheers

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

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

    Re: Rounding up or down to a specific date

    You could get the same result with this formula

    =EOMONTH(A2-4,0)+15
    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