+ Reply to Thread
Results 1 to 5 of 5

Quarter between two dates ?

  1. #1
    Registered User
    Join Date
    10-11-2009
    Location
    INDIA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Post Quarter between two dates ?

    HELLO ,


    I want one or two formula IN EXCEL by which I can calculate.

    1. No of years , No of Months , No of weeks - Between two given dates

    2. No of complete quarters - Between two given dates

    Eg: Start Date = 01 jan 2009 and End date is 31 march 2009 = it should give me a result as 01 Quarter

    But, if end date goes to 01 April 2009 = It should give me a result as 01 Quarter and 01 Day.

    Request you to kindly help me ASAP

    Rakesh230583

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Quarter between two dates ?

    Assuming the two dates are in A1 and B1:

    1) Use the DATEDIF() function
    Years =DATEDIF(A1,B1,"y")
    Months =DATEDIF(A1,B1,"m")
    Weeks =INT(DATEDIF(A1,B1,"d")/7) + 1

    2) Quarters
    =INT((DATEDIF(A1,B1,"m")+1)/3)

    But that gives you the quarters dif only. This particular category would really require you give about 3-4 different examples with sample results, maybe more.

    1/1/2009 - 3/31/2009
    3/1/2009 - 4/1/2009
    2/1/2009 - 8/15/2009
    3/29/2009 - 11/13/2009
    ...etc.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    10-11-2009
    Location
    INDIA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Quarter between two dates ?

    as per the Quarter formula which you gave to me is =INT((DATEDIF(A1,B1,"m")+1)/3)

    But, in this case if,
    Start date is 01 January 2009 and End Date is 31 March 2009 its gives me 1 Quarter,

    while if End date goes to 30 June 2009 it gives me 01 Quarter only..

    Is it possible that I can get a result as 01 Quarter and No of days after completing 01 Quarter till End Date. i.e 30 june 2009

  4. #4
    Registered User
    Join Date
    10-11-2009
    Location
    INDIA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Quarter between two dates ? its urgent please

    its very urgent..
    Can any one please help me..
    please please

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Quarter between two dates ?

    Does the start date always coincide with the beginning of a Quarter ?

    As JB has already stated - provide more example dates & expected results which cover all variants of your requirements, this way people will be able to ensure they capturing your requirements.

+ 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