+ Reply to Thread
Results 1 to 10 of 10

Quarters between dates

  1. #1
    Registered User
    Join Date
    08-26-2018
    Location
    Michigan
    MS-Off Ver
    2016
    Posts
    2

    Quarters between dates

    Hi everyone - first of all thanks to everyone who will help me on this, I have to tried to do it by myself but it’s been a constant struggle.

    I need to calculate the number of quarters between 2 dates but it has to include both quarters of start and end date for example...

    Start: 6/30/18
    End: 1/1/2019

    Quarters between = 4
    It will need to count the quarters that each date is sitting in

    Also, I need help calculating number of quarters between start and end of year for that specific date, I figure this will be easy once I have my first problem fixed

    Thank you all!

  2. #2
    Registered User
    Join Date
    06-19-2012
    Location
    Michigan
    MS-Off Ver
    Excel 2016
    Posts
    97

    Re: Quarters between dates

    I think this would do it:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-26-2018
    Location
    Michigan
    MS-Off Ver
    2016
    Posts
    2

    Re: Quarters between dates

    This doesn't work because if you change start date to 7/1/2018 - the result you get is 4 when it should be 3

  4. #4
    Forum Contributor
    Join Date
    07-01-2018
    Location
    Adelaide, South Australia
    MS-Off Ver
    Office 365, & Excel 2016 on windows 10, & 14.7 for mac, & Excel 2015 for mac
    Posts
    173

    Re: Quarters between dates

    How's this? Substitute your cell references for "Date1" and "Date2"

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

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,923

    Re: Quarters between dates

    Or try:

    =DATEDIF(DATE(YEAR(A1),FLOOR(MONTH(A1)-1,3)+1,1),DATE(YEAR(B1),CEILING(MONTH(B1)+1,3)+1,1),"m")/3

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,407

    Re: Quarters between dates

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



    A
    B
    C
    D
    E
    1
    6/30/2018
    4
    In Name Manager
    D_per_Yr
    =(400*365.25-3)/400
    2
    1/1/2019
    In Name Manager
    D_per_Mo
    =D_per_Yr/12
    3
    In B1 =MATCH(A2,EOMONTH(A1,INDEX((ROW(INDIRECT("1:"&INT((A2-A1+1)/D_per_Mo)))-2)*3,0)),1)
    4
    Last edited by FlameRetired; 08-27-2018 at 12:03 AM.
    Dave

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,407

    Re: Quarters between dates

    Edit Ignore this one. It doesn't work.

    Another way.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by FlameRetired; 08-27-2018 at 10:51 PM.

  8. #8
    Forum Contributor
    Join Date
    07-01-2018
    Location
    Adelaide, South Australia
    MS-Off Ver
    Office 365, & Excel 2016 on windows 10, & 14.7 for mac, & Excel 2015 for mac
    Posts
    173

    Re: Quarters between dates

    Considering that several methods have been suggested, what factors do people think makes a 'better' solution for a context like this?

    I'm inclined to suggest that simpler solutions with less nested brackets are less error prone to input errors, and fewer or easier to understand functions are better. Particularly for someone who needed the help.
    But do some of the harder to read ones offer performance benefits? Or is just a case of people suggesting the functions that they are most familiar with?

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,407

    Re: Quarters between dates

    This sounds like a question better suite for the 'Water Cooler' sub-forum.

    Consider starting a thread there ... we are at risk of "hijacking" the OP's thread here.

  10. #10
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,407

    Re: Quarters between dates

    Another. Array entered. If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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] Convert Dates into Quarters
    By shahamat in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-13-2017, 11:29 PM
  2. How to calculate quarters between two dates
    By jenaskris in forum Excel General
    Replies: 15
    Last Post: 08-21-2014, 04:14 PM
  3. Dates / Quarters
    By pickslides in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-05-2014, 09:26 PM
  4. Number of Quarters between two dates
    By pauldaddyadams in forum Excel General
    Replies: 2
    Last Post: 04-21-2009, 10:39 AM
  5. Splitting dates into quarters
    By snorrekatt in forum Excel General
    Replies: 2
    Last Post: 08-30-2007, 10:47 AM
  6. Dates to quarters
    By Ainsley in forum Excel General
    Replies: 6
    Last Post: 02-27-2006, 09:39 AM
  7. [SOLVED] Formatting of dates into quarters
    By Peter in forum Excel General
    Replies: 5
    Last Post: 02-21-2006, 11:50 AM

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