• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Reciprocating quarterly date

Luigi802

New Member
I feel like this should be a simple 1, but I can't figure it out. I'm trying to make a date automatically change every 3 months "quarterly." For example, say =TODAY() "3 Jan 2019", is in A1, I want cell B1 to show 30 Apr 2019 "last day of month", then I want B1 to stay the same until A1 reaches 1 Apr 2019.
 
Wait... you want quarterly... then should TODAY() not return 3/31/2019? Which is end of Q1... Not 4/30/2019.

If that's the case...
=EOMONTH(DATE(2019,ROUNDUP(MONTH(A2)/3,0)*3,1),0)

If it's 4 month per period, just change 3 used in formula above with 4.

Edit: To make it more robust, you can replace 2019 with, Year(A2).
 
To calculate the quarter-end relative to the current date:

= EOMONTH( date, MOD(12-MONTH(date), 3))

The 12 can be omitted if you are happy with MOD of negative numbers. If 'date' is a multicell range (unlikely but I do things like that) you would need +date to convert it to an array.
 
Back
Top