Closed Thread
Results 1 to 2 of 2

Calculating the Quarter Number for Calendar and Fiscal Year

  1. #1
    Forum Contributor
    Join Date
    12-07-2004
    Posts
    596

    Calculating the Quarter Number for Calendar and Fiscal Year

    Problem:

    Calculating the quarter number corresponding with each of the dates listed in column A.

    Solution:

    To calculate the quarter number based on a calendar year, use the INT and MONTH functions in the following formula:
    =INT((MONTH(A2)-1)/3)+1
    To calculate the quarter number based on a fiscal year (starting in September), use the MOD, CEILING, and MONTH functions as shown in the following formula:
    =MOD(CEILING(22+MONTH(A2)-9-1,3)/3,4)+1

  2. #2
    Registered User
    Join Date
    04-02-2007
    Posts
    1

    Very useful, very hard to find

    ... at least for me. I had much trouble finding quarter in a FY function elsewhere on the internet. I converted Joseph Rubin's formula above to PHP and use it to break my Wordpress entries into something resembling a quarterly magazine.

    In PHP:
    Please Login or Register  to view this content.
    where date('n') is the month number of today. The %4 returns the same as MOD() in Excel. Still assiming 9 (September) is the starting month of our FY.

    Thank you, and credit given to ExcelTip.com at http://neches.net/about/2/

    John Sinclair

Closed 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