+ Reply to Thread
Results 1 to 6 of 6

Caclulate month of quarter (1st month - 3rd month)

  1. #1
    Forum Contributor
    Join Date
    10-17-2008
    Location
    Vancouver
    MS-Off Ver
    2002 and XP
    Posts
    117

    Caclulate month of quarter (1st month - 3rd month)

    Hello,

    Have calendar quarter (1-4) in one column, have month serial value in the other (1-12). How do I caculate with month of the quarter that the date is?

    so for
    december

    month serial = 12
    quarter = 4
    month of quarter = 3

    because december is the 3rd month of that Quarter.

    I would like a formula that can determine that.

    Any ideas?

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Caclulate month of quarter (1st month - 3rd month)

    =int((month(a1)-1)/3)+1 gives 1/4 of calendar year
    you could use
    =CHOOSE(MONTH(A1),1,2,3,1,2,3,1,2,3,1,2,3) to return which month of 1/4
    similarly you could do same for 1/4
    =CHOOSE(MONTH(E1),1,1,1,2,2,2,3,3,3,4,4,4)
    Last edited by martindwilson; 10-30-2009 at 08:04 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Caclulate month of quarter (1st month - 3rd month)

    For month of quarter try

    =MOD(MONTH(A1)-1,3)+1

    where A1 is a date

  4. #4
    Forum Contributor
    Join Date
    10-17-2008
    Location
    Vancouver
    MS-Off Ver
    2002 and XP
    Posts
    117

    Re: Caclulate month of quarter (1st month - 3rd month)

    Martin: that is the formula I used to calculate the calendar quarter, thank you

    Daddylonglegs: Formula works like a charm, thank you

  5. #5
    Registered User
    Join Date
    07-15-2018
    Location
    Jackson, MS
    MS-Off Ver
    2016
    Posts
    1

    Re: Caclulate month of quarter (1st month - 3rd month)

    How can I get actual month number if I have month of quarter and quarter number ?

    Like I have 2nd month of Qtr and Qtr =3, so actual month = 11

  6. #6
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,631

    Re: Caclulate month of quarter (1st month - 3rd month)

    shgupta278,
    When you joined the forum recently you agreed to abide by the Forum Rules, but in haste I fear you might not have actually read them. Please stop and take a moment to read them now. We all follow these rules for the benefit of all, as must you. Thanks.

    (link above in the menu bar)


    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Ben Van Johnson

+ 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