How-to recipes · Dates and times
How to get the quarter from a date in Excel
Turn a date into its calendar quarter (1-4) or a label like Q3 2026 with ROUNDUP and MONTH, and calculate fiscal quarters that start in another month.
Sales reviews, budgets and financial statements are reported by quarter, but transactions are recorded with ordinary dates. Excel has no QUARTER function, so you need a small formula to turn 14 August 2026 into 3 or Q3 2026. It gets a little more interesting when your organisation's financial year does not start in January: a fiscal year beginning in April puts August in Q2. This recipe covers calendar quarters, labels, fiscal quarters and the first and last day of a quarter.
The example data
Three dates in A2:A4, from February, August and November 2026.
Calendar quarter: ROUNDUP(MONTH/3)
Divide the month number by 3 and round up: months 1-3 give 1, months 4-6 give 2, and so on.
| A | B | C | |
|---|---|---|---|
| 1 | Date | ||
| 2 | 2026-02-10 | ||
| 3 | 2026-08-14 | 3 | |
| 4 | 2026-11-30 |
August is month 8; 8/3 = 2.67, rounded up to 3.
Result: 3
MONTH returns 1 to 12 and ROUNDUP with 0 decimal places rounds any fraction up to the next whole number. The equivalent =INT((MONTH(A3)-1)/3)+1 with INT gives the same result and is common in older workbooks.
Microsoft 365: the whole column
| A | B | C | |
|---|---|---|---|
| 1 | Date | ||
| 2 | 2026-02-10 | 1 | |
| 3 | 2026-08-14 | 3 | |
| 4 | 2026-11-30 | 4 |
One formula returns the quarter of every date.
A label such as Q3 2026
Join the quarter with the year to make a label that is clear in reports and PivotTables:
| A | B | C | |
|---|---|---|---|
| 1 | Date | ||
| 2 | 2026-02-10 | ||
| 3 | 2026-08-14 | Q3 2026 | |
| 4 | 2026-11-30 |
The result is text, ideal for grouping and chart labels.
Result: Q3 2026
For a label that sorts correctly across years, put the year first: =YEAR(A3)&"-Q"&ROUNDUP(MONTH(A3)/3,0) gives 2026-Q3, so 2025-Q4 sorts before 2026-Q1. Number formats cannot show a quarter, so a formula like this is the only way; see How to convert a date to text in Excel for other date labels.
Fiscal quarters
If the financial year starts in April, April-June is Q1 and January-March is Q4. Shift the date back by the number of months between January and the start month with EDATE, then use the same formula:
| A | B | C | |
|---|---|---|---|
| 1 | Date | ||
| 2 | 2026-02-10 | ||
| 3 | 2026-08-14 | 2 | |
| 4 | 2026-11-30 |
EDATE moves 14 Aug back to 14 May; May is in the 2nd quarter, so August is fiscal Q2.
Result: 2
Use -6 for a year starting in July, -9 for October. The fiscal year needs the same care. A common convention names the fiscal year after the calendar year in which it ends: =YEAR(EDATE(A3,9)) returns 2027 for any date from April 2026 to March 2027. Check which convention your finance team uses before you build the report.
CHOOSE for unusual quarter layouts
If quarters do not follow neat three-month blocks, map each month explicitly with CHOOSE: =CHOOSE(MONTH(A3),4,4,4,1,1,1,2,2,2,3,3,3) lists the quarter for January to December in order; this example gives an April start. It is easy to read and easy to change.
First and last day of the quarter
Useful for SUMIFS ranges and report headers:
- First day:
=DATE(YEAR(A3),(ROUNDUP(MONTH(A3)/3,0)-1)*3+1,1)returns 1 July 2026. - Last day:
=EOMONTH(DATE(YEAR(A3),ROUNDUP(MONTH(A3)/3,0)*3,1),0)returns 30 September 2026. - Days in the quarter: subtract the two and add 1 (92 for Q3).
With those two dates, =SUMIFS(Amount,Date,">="&first,Date,"<="&last) totals a quarter; see How to sum values between two dates in Excel.
PivotTable grouping
If the goal is a quarterly summary, a PivotTable can group dates into quarters without any formula: right-click a date in the row area, choose Group, select Quarters and Years. PivotTable grouping only knows calendar quarters, so for fiscal quarters add the formula column to the data and use it as a row field. See PivotTables: summarise thousands of rows in seconds.
Pitfalls
- Text dates make MONTH return
#VALUE!. Convert them first (How to convert text to a date in Excel). - Forgetting the year. Quarter 1 of 2025 and 2026 are different periods; group by year and quarter together.
- Fiscal year naming varies between countries and companies (ending year vs starting year). Document it next to the report.
- Empty cells return quarter 1, because an empty cell is treated as day 0 in January 1900. Guard with
=IF(A2="","",...).