In this article we will learn how to calculate the quarter number for Fiscal Year and Calendar Year in Microsoft Excel.
To calculate quarter in Excel you can use the formula of “INT”, “MONTH”, “MOD” and “CEILING” function.
INT function is used to return the whole number without decimals. This is better than changing the number of decimal places displayed, which would risk some numbers being rounded up and thus giving an incorrect result.
MOD function is used to returns the remainder after a number is divided by a divisor.
MONTH function is used to return the month in numbers.
CEILING function is used to roundup the number to the nearest multiple of a specified value.
Let’s take an example and understand how to calculate the quarter number.
We have a table of dates, in which we want to return the quarter according to the calendar year and fiscal year.
To calculate excel date quarter for a calendar year:-
- Select the cell B5 and write the formula to calculate the quarter number
- =”Quarter”& INT ((MONTH (A5)-1)/3) +1&” “&YEAR (A5) and press Enter on the keyboard.
- This function will return the Quarter no. according to the calendar which is Quarter 4 2013.
- To return the quarter no. for the rest of the cells, copy the same formula by pressing the key “CTRL+C” and paste it in the range B6:B15 by pressing the key “CTRL+V” on your keyboard.
To calculate the quarter number for a fiscal year ending in September:
- Select the cell C5 and write the formula to calculate the quarter number.
- =”Quarter”&MOD(CEILING(22+MONTH(A5)-9-1,3)/3,4)+1&” “&YEAR(A5) and press Enter on the keyboard.
- This function will return the Quarter no. according to the fiscal calendar which is Quarter 1 2013.
- To return the quarter no. for the rest of the cells, copy the same formula by pressing the key “CTRL+C” and paste it in the range C6:C15 by pressing the key “CTRL+V” on your keyboard.
This function is useful when you have to do certain analysis based on quarters and compare the data of one quarter with another.
Also, you can choose whether you need the quarter as per the financial year or as per the fiscal year and use the appropriate formula to give you the right quarter numbers for your data.
If you liked our blogs, share it with your friends on Facebook. And also you can follow us on Twitter and Facebook.
We would love to hear from you, do let us know how we can improve, complement or innovate our work and make it better for you. Write us at firstname.lastname@example.org