Calendar Quarter Excel Formula
Using this formula we can convert any date into a calendar quarter.
Calendar quarter excel formula. 1 2 3 4 from a date you can use the roundup function together with month. In this example the formula reduces to roundup 5 3 0 roundup 1 666667 0 2. Date year a2 int month a2 1 3 1 3 1 1 1 for 26 may 2018 it returns 30 jun 2018 which is the last date of the quarter.
Select a blank cell which next to the date here i select c1 and type this formula roundup month a1 3 0 into it then press enter key to get the relative quarter. Q choose month date 1 1 1 2 2 2 3 3 3 4 4 4 year date will return values like. A1 is the date you need to get quarter from and you can change it to your need.
To calculate the start date of a quarter based on a date. Date year a2 floor month a2 1 3 1 1 into a blank cell where you want to locate the result and drag the fill handle down to the cells which you want to apply this formula and all the start dates of the quarter by the given dates have been calculated see screenshot. If you want the quarter number to include a q with a year value you can concatenate.
To get the quarters from the given dates you can use formula. Q1 2016 q2 2016 etc. Choose roundup month b3 3 0 q1 q2 q3 q4 the month b3 part of the formula takes the date and returns the numerical month value of the date so for example month 2014 07 15 would return a value of 7.
Roundup x 0 always rounds x up to the nearest integer. Adding a q and year. In the example shown the formula in cell c5 is.
If you want to calculate the quarter i e. This works for fiscal years with a january start. The month function returns the month number of a date.