Using Excel, answer the following. The first quarter of the year is January–March; the second quarter, April–June; the third quarter, July–September; and the fourth quarter, October–December. Write a formula that returns (for any given date) the quarter of the year.
Formula : =ROUNDUP(MONTH(CellContainingDate)/3,0)
Explanation:
The basic idea in finding the quarter of the year is to get the corresponding month as integer (which is always between 1 - 12) and divide it by 3 and finally rounding it up. So here we first extract the integer value of the month from the cell containing the date and divide it by 3. Then ROUNDUP function is used to round the result to the nearest whole number.
The output of the above formula will be just integers denoting the corresponding quarter (1,2,3..). If we want to print like "Quarter1", "Quarter2", ... etc then slight modification in the formula will do the trick:
="Quarter" & ROUNDUP(MONTH(CellContainingDate)/3,0)
Get Answers For Free
Most questions answered within 1 hours.