+ Reply to Thread
Results 1 to 4 of 4

Conditional formula to assign any date to specific Quarter

  1. #1
    Registered User
    Join Date
    06-27-2011
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    21

    Conditional formula to assign any date to specific Quarter

    So Im trying to figure out how to get a forumla to check a cell for a date, then assign a quarter date.

    Example if date is 7/2/11 then Quarter is QSep.

    Here are the ranges:
    QMar = 1/1 to 3/31
    QJun = 4/1 to 6/30
    QSep = 7/1 to 9/30
    QDec = 10/1 to 12/31
    Last edited by VBNewb; 07-21-2011 at 01:25 PM.

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Conditional formula to assign any date to specific Quarter

    Try

    ="Q"&CHOOSE(INT((MONTH(A2)+2)/3),"Mar","Jun","Sep","Dec")

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional formula to assign any date to specific Quarter

    Try:

    ="Q"&LOOKUP(MONTH(A1),{1,4,7,10},{"Mar","Jun","Sep","Dec"})

    where A1 contains date.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    06-27-2011
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Conditional formula to assign any date to specific Quarter

    Wow, did not think of that solution! Works great!

+ 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