ExcelReady
CourseFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before the interview. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Function guides
  • Blog

Product

  • Certificate

Company

  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Dates
  3. Get the Quarter From a Date in Excel

Get the Quarter From a Date in Excel

By ExcelReady Team·Updated October 30, 2026·7 min read

The short answer

Excel has no QUARTER function, so you calculate the quarter from a date's month: =ROUNDUP(MONTH(A2)/3,0) returns 1 to 4. Add a label with ="Q"&ROUNDUP(MONTH(A2)/3,0), or include the year with &" "&YEAR(A2). For a fiscal year starting in another month, shift the date first with EDATE.

Key takeaways

  • =ROUNDUP(MONTH(A2)/3,0) turns months 1–12 into quarters 1–4.
  • ="Q"&ROUNDUP(MONTH(A2)/3,0)&" "&YEAR(A2) gives labels like Q3 2025.
  • For a fiscal year starting in July, use =ROUNDUP(MONTH(EDATE(A2,-6))/3,0).
  • Quarter start: =DATE(YEAR(A2),(ROUNDUP(MONTH(A2)/3,0)-1)*3+1,1).
  • Total by quarter with SUMIFS on a quarter column, or group dates by quarter in a PivotTable.
On this page+
  1. How to get the quarter from a date
  2. How to show the quarter as Q1, Q2, Q3, Q4
  3. How to get the fiscal quarter
  4. How to get the first and last day of the quarter
  5. How to total sales by quarter
  6. How to get the current quarter
  7. Common mistakes with quarter formulas
  8. Practise it

To get the quarter from a date in Excel, divide the month by 3 and round up: =ROUNDUP(MONTH(A2)/3,0) returns 1, 2, 3 or 4. Excel has no QUARTER function, so this short formula is the standard approach. This guide is for anyone building monthly or quarterly reports, and it also covers Q1–Q4 labels, fiscal years, quarter start and end dates, and totals by quarter.

How to get the quarter from a date#

Combine MONTH and ROUNDUP. MONTH gives the month number from 1 to 12, and dividing by 3 then rounding up groups those months into fours.

Excel formula
=ROUNDUP(MONTH(A2)/3,0)
MonthMONTH(A2)/3Rounded upQuarter
January (1)0.331Q1
March (3)1.001Q1
April (4)1.332Q2
August (8)2.673Q3
December (12)4.004Q4

The 0 in ROUNDUP means "round up to a whole number". Any month in the same quarter gives the same result, so March 31 is still Q1.

You'll also see =INT((MONTH(A2)+2)/3). It returns the same 1 to 4 and works in every version of Excel. Use whichever reads more clearly to you.

If MONTH returns odd results, the "dates" may be text. Our guide to why Excel stores dates as numbers explains how to tell, and DATE, YEAR, MONTH and DAY covers MONTH itself.

How to show the quarter as Q1, Q2, Q3, Q4#

Join the letter Q to the number with &:

Excel formula
="Q"&ROUNDUP(MONTH(A2)/3,0)

Here are some orders labelled this way:

ABC
1OrderOrder dateQuarter
2SO-50012/14/2025Q1
3SO-50025/3/2025Q2
4SO-50038/21/2025Q3
5SO-500411/30/2025Q4

When your data covers more than one year, add the year so Q1 2024 and Q1 2025 stay separate:

Excel formula
="Q"&ROUNDUP(MONTH(A2)/3,0)&" "&YEAR(A2)

This returns labels like Q3 2025. For labels that sort correctly as text, put the year first: =YEAR(A2)&"-Q"&ROUNDUP(MONTH(A2)/3,0) gives 2025-Q3, and 2024 labels sort before 2025 ones.

Label a whole column in one formula#

In Excel 2021, Excel 2024 and Microsoft 365, you can give the formula a whole range and let the results spill:

Excel formula
="Q"&ROUNDUP(MONTH(B2:B6)/3,0)

Typed once in C2, it fills C2:C6 with a label for every order. There's nothing to fill down, and if you lengthen the range, the labels extend with it. In older versions, write the single-cell formula in C2 and fill it down with Ctrl+D (Windows) or ⌘D (Mac).

How to get the fiscal quarter#

Shift the date back by the number of months between January and your fiscal year's first month, then use the same formula. If your fiscal year starts in July, move each date back 6 months:

Excel formula
=ROUNDUP(MONTH(EDATE(A2,-6))/3,0)
Fiscal year startsMonths to shiftFormula
April-3=ROUNDUP(MONTH(EDATE(A2,-3))/3,0)
July-6=ROUNDUP(MONTH(EDATE(A2,-6))/3,0)
October-9=ROUNDUP(MONTH(EDATE(A2,-9))/3,0)

With a July start, August 14, 2025 moves back to February, so it is fiscal Q1. EDATE moves a date by whole months; our guide to adding days, months or years to a date explains how.

The fiscal year label depends on your company's rule. If the fiscal year is named after the year it ends in, a July start gives =YEAR(EDATE(A2,6)): August 2025 is in fiscal year 2026.

How to get the first and last day of the quarter#

Build the quarter's first day with DATE. The quarter's first month is (quarter − 1) × 3 + 1:

Excel formula
=DATE(YEAR(A2),(ROUNDUP(MONTH(A2)/3,0)-1)*3+1,1)

For August 14, 2025 (Q3), this returns July 1, 2025.

For the last day, find the quarter's last month (quarter × 3) and jump to its month-end with EOMONTH:

Excel formula
=EOMONTH(DATE(YEAR(A2),ROUNDUP(MONTH(A2)/3,0)*3,1),0)

This returns September 30, 2025. Pair it with a countdown to see how many days are left in the quarter; our guide to counting the days until a deadline shows how.

How to total sales by quarter#

Add a quarter column with the formula above, then use SUMIFS or COUNTIFS on it. With amounts in D2:D100 and labels like "Q3 2025" in E2:E100:

Excel formula
=SUMIFS($D$2:$D$100,$E$2:$E$100,"Q3 2025")

Without a helper column, SUMPRODUCT can test the quarter directly:

Excel formula
=SUMPRODUCT((ROUNDUP(MONTH(B2:B100)/3,0)=3)*(YEAR(B2:B100)=2025)*D2:D100)

Each test returns 1 or 0 per row, and multiplying keeps only rows where both are true. Make sure B2:B100 has no blank cells, because MONTH of a blank is 1 and would count as January.

Group by quarter in a PivotTable#

You don't need any formula in a PivotTable. Put the date field in Rows, right-click any date, choose Group, and select Quarters and Years. Selecting Years as well keeps Q1 2024 apart from Q1 2025. In recent versions of Excel, dates may be grouped automatically when you add them to the PivotTable.

How to get the current quarter#

Use TODAY() as the date to label the quarter you're in now:

Excel formula
="Q"&ROUNDUP(MONTH(TODAY())/3,0)

TODAY() updates each time the workbook recalculates, so a dashboard header always shows the current quarter. If you need the time as well, see TODAY vs NOW. And for part-of-year calculations, such as how much of the year has passed, YEARFRAC returns the fraction directly.

Common mistakes with quarter formulas#

Watch for these:

  • Rounding the wrong way. ROUND(MONTH(A2)/3,0) puts January in quarter 0 and April in Q1. Use ROUNDUP.
  • Forgetting the year. Quarters from different years merge in totals unless you include YEAR.
  • Text dates. MONTH returns #VALUE! on text that Excel can't read as a date.
  • Blank cells in array formulas. MONTH of an empty cell is 1, so blanks look like January.

Practise it#

Try the exercise to label orders Q1 to Q4. The quarter formula is built on MONTH and YEAR, which you can practise in the DATE, YEAR, MONTH and DAY lesson, where you build dates from parts and pull them apart in a live spreadsheet.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

Label each order with its calendar quarter. In C2, join "Q" to ROUNDUP(MONTH(B2)/3,0) so the result looks like Q1.

fx
ABCD
1
Order
Order date
Quarter
2
SO-5001
45702
3
SO-5002
45780
4
SO-5003
45890
5
SO-5004
45991
6
SO-5005
45747
7
8
9

Tip: MONTH(B2) gives 1 to 12. Divide by 3, round up with ROUNDUP(…,0), then join "Q" in front with &.

Practise this in a lesson

LessonHow Excel stores dates: DATE, YEAR, MONTH, DAYLearn why every date is secretly a number, then build dates with DATE and take them apart with YEAR, MONTH and DAY.

Frequently asked questions

Is there a QUARTER function in Excel?

+

No. Excel has YEAR, MONTH and DAY but no QUARTER function. Use =ROUNDUP(MONTH(A2)/3,0) to calculate it.

How do I show the quarter as Q1, Q2, Q3 or Q4?

+

Join the letter Q to the number: ="Q"&ROUNDUP(MONTH(A2)/3,0). Add &" "&YEAR(A2) to get labels like Q1 2025.

How do I get the fiscal quarter if our year starts in April?

+

Move the date back three months before calculating: =ROUNDUP(MONTH(EDATE(A2,-3))/3,0). April then becomes fiscal Q1 and March becomes Q4.

How do I get the current quarter?

+

Use TODAY() as the date: =ROUNDUP(MONTH(TODAY())/3,0). It updates every day you open the file.

Can a PivotTable group dates by quarter?

+

Yes. Right-click a date in the PivotTable, choose Group, and select Quarters (and Years, so quarters from different years don't merge).

Sources

  • MONTH function - Microsoft Support
  • ROUNDUP function - Microsoft Support

Written and checked by the ExcelReady Team. First published October 30, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. How to get the quarter from a date
  2. How to show the quarter as Q1, Q2, Q3, Q4
  3. How to get the fiscal quarter
  4. How to get the first and last day of the quarter
  5. How to total sales by quarter
  6. How to get the current quarter
  7. Common mistakes with quarter formulas
  8. Practise it

Keep reading

Dates· 7 min read

YEARFRAC in Excel: Part of a Year Between Two Dates

YEARFRAC returns the time between two dates as a fraction of a year, such as 0.5 for six months. Write =YEARFRAC(start_date, end_date, [basis]). Use basis 1 (actual days) for tenure, age and prorating; the default, basis 0, treats every month as 30 days, as many US finance calculations do. Wrap it in INT for whole years.

Dates· 6 min read

Days Until a Deadline in Excel (Countdowns)

To count the days until a date in Excel, subtract today from it: =A2-TODAY(). The result updates every day and turns negative once the date has passed. Wrap it in IF to show "Overdue" or "Due today", and use =NETWORKDAYS(TODAY(),A2) to count only the working days left.

Basics· 5 min read

Why Excel Stores Dates as Numbers (and Why It Matters)

Excel stores every date as a number called a serial number: the count of days since 1 January 1900, which is day 1. So 1 January 2025 is 45658. The date format only changes how that number looks. Because dates are numbers, you can subtract them to get the days between, add days, sort them and compare them.

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback. The first lessons are free, with no download.

Start learning for free