+ Reply to Thread
Results 1 to 11 of 11

Counting Calendar Quarters

  1. #1
    Registered User
    Join Date
    08-28-2003
    Posts
    32

    Counting Calendar Quarters

    I would like to be able to calculate the number of calendar quarters that have passed since a specific date. In another words, if the date were 11/20/14, the correct answer would be 2 (12/31/14 and 3/31/15). If the date were 11/20/13 then the answer would be 6. Thank you for your assistance.

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Counting Calendar Quarters

    i suppose you mean from today
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    A1= date
    B1= today
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    08-28-2003
    Posts
    32

    Re: Counting Calendar Quarters

    Thank you. Much appreciated.

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Counting Calendar Quarters

    Some cases @ humdingaling formula will give wrong answer
    if the two dates are 15-Oct-14 31-05-15 it the result will be 3 but actual result is 2
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Counting Calendar Quarters

    I haven't gone through all the date combinations but these seem to work.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  6. #6
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: Counting Calendar Quarters

    Quote Originally Posted by newdoverman View Post
    I haven't gone through all the date combinations but these seem to work.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Try 3/31/2015 to 4/1/2015.

    Both result in 0.

    According to OP, it could/should be 1.

    Additionally, neither formula is based on actual quarter end dates (i.e. 3/31, 6/30, 9/30, 12/31).

    This one seems to work the way OP'er wants...
    Please Login or Register  to view this content.
    Needs modified if OP'er actually wants full quarters elapsed.
    Last edited by jhren; 04-02-2015 at 11:25 AM.

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Counting Calendar Quarters

    So, you are trying to say that 1 day is a quarter?....don't think so.

  8. #8
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: Counting Calendar Quarters

    Quote Originally Posted by newdoverman View Post
    So, you are trying to say that 1 day is a quarter?....don't think so.
    Of course not. But, for example, from 3/31 to 4/1 of any year, the first quarter passed. OP's example show calendar quarter end dates as the "passed" criteria.

  9. #9
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Counting Calendar Quarters

    Try
    =INT(DATEDIF(EOMONTH(A3,INT(MONTH(A3)/3)*3-MONTH(A3)),B3,"m")/3)
    or
    =INT(DATEDIF(EOMONTH(A3,INT(MONTH(A3)/3)*3-MONTH(A3)),B3+1,"m")/3)

  10. #10
    Registered User
    Join Date
    08-28-2003
    Posts
    32

    Re: Counting Calendar Quarters

    Actually, it needed a small adjustment to add "1" quarter for those months that were either 3,6,9, or 12. Thanks again.

  11. #11
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Counting Calendar Quarters

    =int((datedif(eomonth(a3,-mod(month(a3)-1,3)-1),eomonth(b3,0),"m")-1)/3)+1
    try this

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Pivot table sort by calendar date quarters
    By Xx7 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 02-26-2014, 10:02 PM
  2. Transpose Quarters from Calendar Year to Fiscal Year
    By jodiander in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-25-2013, 01:00 PM
  3. [SOLVED] Counting the quarters in a date range
    By mharry in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 04-02-2013, 12:47 PM
  4. How to seperate dates into calendar-year quarters?
    By Coachwooten in forum Excel General
    Replies: 2
    Last Post: 04-25-2012, 10:21 AM
  5. Counting # of Quarters
    By sabunabu in forum Excel General
    Replies: 4
    Last Post: 08-13-2008, 02:56 PM

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