ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

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

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Conditional math
  3. How to Sum by Quarter in Excel

How to Sum by Quarter in Excel

By ExcelReady Team·Updated November 2, 2026·7 min read

The short answer

To sum by quarter in Excel, use SUMIFS with a start and an end date. For Q2 2026, type =SUMIFS(B2:B9,A2:A9,">="&DATE(2026,4,1),A2:A9,"<"&DATE(2026,7,1)). You can also use SUMPRODUCT with the quarter number, =SUMPRODUCT((ROUNDUP(MONTH(A2:A9)/3,0)=2)*B2:B9), but add a YEAR test when the data covers several years.

Key takeaways

  • SUMIFS with two date conditions (on or after the first day, before the next quarter) is the most reliable way to sum a quarter.
  • ROUNDUP(MONTH(date)/3,0) turns any date into its quarter number, 1 to 4.
  • SUMPRODUCT can sum by quarter number directly, but add a YEAR test when the data covers more than one year.
  • For a Q1 to Q4 table, put each quarter's start date in a cell and use EDATE(start,3) as the end.
  • Fiscal quarters need the month shifted first, for example with MOD(MONTH(date)-4,12) for an April start.
On this page+
  1. What is a quarter?
  2. How to sum a quarter with SUMIFS
  3. How to build a Q1 to Q4 summary table
  4. How to sum by quarter with SUMPRODUCT
  5. How to sum by fiscal quarter
  6. Other ways: helper column and pivot table
  7. Why is my quarterly total wrong?
  8. Practise it

To sum by quarter in Excel, you add up every amount whose date falls between the first and last day of that quarter. SUMIFS with two date conditions does this in one formula, and SUMPRODUCT can sum by the quarter number directly. This guide shows both, builds a Q1 to Q4 summary table, and covers fiscal quarters that don't start in January. It is for anyone who reports sales, costs or hours by quarter.

All examples use this list of 2026 sales:

AB
1DateAmount
214 Jan 20264,200
320 Feb 20263,100
43 Apr 20265,000
528 May 20262,600
630 Jun 20261,900
79 Aug 20264,400
815 Oct 20263,800
91 Dec 20262,700

What is a quarter?#

A calendar quarter is a block of three months. Q1 is January to March, Q2 is April to June, Q3 is July to September and Q4 is October to December. Excel stores dates as numbers, so "between two dates" is just "between two numbers". That is what makes SUMIFS work. If dates still feel strange, practise the date basics first.

To get the quarter number from one date, use:

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

May is month 5, 5 / 3 is 1.67, and rounding up gives 2. The guide to getting the quarter from a date covers labels like "Q2 2026" and more.

How to sum a quarter with SUMIFS#

SUMIFS adds the amounts that meet every condition. For a quarter, give it two conditions on the same date column: on or after the first day, and before the first day of the next quarter.

Excel formula
=SUMIFS(B2:B9,A2:A9,">="&DATE(2026,4,1),A2:A9,"<"&DATE(2026,7,1))
PartMeaning
B2:B9The amounts to add
A2:A9,">="&DATE(2026,4,1)Date is on or after 1 April 2026
A2:A9,"<"&DATE(2026,7,1)Date is before 1 July 2026

The result is 9,500 (5,000 + 2,600 + 1,900). The & joins the operator to the date, and DATE builds the date from year, month and day, so it works in every regional date format. Using "before the next quarter" instead of "on or before 30 June" also catches dates that include a time of day.

The SUMIFS function guide covers the syntax, and the guide to summing between two dates shows the same pattern for any range. Practise dates in criteria to get the quotes and & right every time.

How to build a Q1 to Q4 summary table#

For a full summary, put each quarter's start date in a cell and let one formula do the rest. In D2:D5, type the first day of each quarter: 1 Jan 2026, 1 Apr 2026, 1 Jul 2026 and 1 Oct 2026. Then in E2:

Excel formula
=SUMIFS($B$2:$B$9,$A$2:$A$9,">="&D2,$A$2:$A$9,"<"&EDATE(D2,3))

EDATE(D2,3) returns the date three months later, which is the start of the next quarter. Fill the formula down to E5:

DE
1Quarter startTotal
21 Jan 20267,300
31 Apr 20269,500
41 Jul 20264,400
51 Oct 20266,500

The four totals add up to 27,700, the same as the whole column, which is a quick check that no row was missed. The $ signs keep the data ranges fixed while D2 moves down. To show "Q1 2026" instead of a date, use a custom number format or a label column. To get quick at tables like this, practise SUMIFS with more than one condition.

How to sum by quarter with SUMPRODUCT#

SUMPRODUCT can turn each date into a quarter number and add the matching amounts, with no helper column:

Excel formula
=SUMPRODUCT((ROUNDUP(MONTH(A2:A9)/3,0)=2)*B2:B9)

For each row, the test gives TRUE or FALSE. Multiplying by the amounts turns TRUE into 1 and FALSE into 0, so only Q2 amounts are added. The result is again 9,500.

This formula ignores the year. If your data covers 2025 and 2026, April 2025 and April 2026 are both "quarter 2". Add a year test:

Excel formula
=SUMPRODUCT((ROUNDUP(MONTH(A2:A9)/3,0)=2)*(YEAR(A2:A9)=2026)*B2:B9)

SUMPRODUCT works in every version of Excel. The SUMPRODUCT function guide explains how it multiplies and adds arrays.

How to sum by fiscal quarter#

A fiscal quarter follows your company's financial year, which may start in a month other than January. For a year that starts in April, April to June is fiscal Q1 and January to March is fiscal Q4. Shift the month first:

Excel formula
=INT(MOD(MONTH(A2)-4,12)/3)+1

MOD(MONTH(A2)-4,12) counts months from April, so April is 0 and March is 11. Dividing by 3 and adding 1 gives the fiscal quarter. To total fiscal Q1 in one step:

Excel formula
=SUMPRODUCT((INT(MOD(MONTH(A2:A9)-4,12)/3)+1=1)*B2:B9)

On the sample data, fiscal Q1 is April to June, so the result is 9,500. Change the 4 to the month your year starts. The guide to getting the fiscal year from a date shows how to label the fiscal year too.

Other ways: helper column and pivot table#

A helper column is the easiest method to read. In C2, type =ROUNDUP(MONTH(A2)/3,0) and fill down. Then sum with =SUMIFS(B2:B9,C2:C9,2). Anyone who opens the file can see which quarter each row belongs to.

A pivot table is the fastest for a one-off report. Put Date in Rows and Amount in Values, right-click any date, choose Group, and select Quarters and Years. In newer versions, Excel may group dates automatically when you add them.

For other periods, the same patterns apply. See how to sum by month and how to sum by year.

Why is my quarterly total wrong?#

A wrong or zero total usually comes from one of these:

  1. Dates stored as text. SUMIFS can't compare text with a date. If the dates sit on the left of the cell, convert them first.
  2. A date typed inside the quotes. ">=1/4/2026" means 1 April in some regions and 4 January in others. Build dates with DATE.
  3. Using "<=" with the last day when dates have times. 30 June at 3 pm is after 30 June at midnight, so "<="&DATE(2026,6,30) misses it. Use "<"&DATE(2026,7,1).
  4. Forgetting the year. A quarter-number formula without a YEAR test mixes years together.
  5. Ranges of different sizes. SUMIFS returns #VALUE! if B2:B9 and A2:A8 don't match.

Practise it#

Quarterly totals are a common task in finance and operations tests, and the hard part is writing date criteria quickly. Practise dates in criteria in a live spreadsheet, then practise SUMIFS with several conditions: you type each formula and ExcelReady checks it instantly. Start with the Q4 exercise on this page.

Try it yourself

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

Click E2 and use SUMIFS with DATE to total the Amount (B2:B9) for Q4 2026: dates from 1 October 2026 to 31 December 2026.

fx
ABCDEF
1
Date
Amount
2
46036
4200
Q4 total
3
46073
3100
4
46115
5000
5
46170
2600
6
46203
1900
7
46243
4400
8
46310
3800
9
46357
2700
10
11
12

Tip: Start with the amounts, B2:B9. Then two pairs on A2:A9: ">="&DATE(2026,10,1) and "<="&DATE(2026,12,31).

Practise this in a lesson

LessonDates in criteria: totals by date range and monthCount and total rows between two dates with COUNTIFS and SUMIFS, build a monthly summary, and drive the date range from input cells.LessonCOUNTIFS and SUMIFSCount and sum with several conditions at once, and learn why SUMIFS puts the sum range first.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.Function guideSUMIFSTotal values that meet several conditions with SUMIFS. Examples by region, month and number range, common errors, and live practice.Function guideSUMPRODUCTMultiply columns and add the results in one step with SUMPRODUCT. Totals, weighted averages, conditions, and a live exercise to try.

Frequently asked questions

How do I sum by quarter in Excel?

+

Use SUMIFS with two date conditions: on or after the quarter's first day and before the next quarter's first day. For Q2 2026 that is =SUMIFS(B2:B9,A2:A9,">="&DATE(2026,4,1),A2:A9,"<"&DATE(2026,7,1)).

How do I get the quarter from a date in Excel?

+

Use =ROUNDUP(MONTH(A2)/3,0). It returns 1 for January to March, 2 for April to June, 3 for July to September and 4 for October to December. Add "Q"& in front to show Q1 to Q4.

Can a pivot table sum by quarter?

+

Yes. Put the date field in Rows, right-click a date, choose Group, and select Quarters and Years. The pivot table then totals each quarter for each year.

How do I sum by fiscal quarter?

+

Shift the month so the fiscal year starts at 1. For a year starting in April, the fiscal quarter is =INT(MOD(MONTH(A2)-4,12)/3)+1, and you can sum with SUMPRODUCT on that result.

Why does my quarterly SUMIFS return 0?

+

Usually the dates are stored as text, or the date is written inside the quotes, like ">=1/4/2026" in the wrong date order. Build the dates with DATE and join them with &, and check that column A holds real dates.

Sources

  • SUMIFS function - Microsoft Support
  • SUMPRODUCT function - Microsoft Support
  • DATE function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 2, 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. What is a quarter?
  2. How to sum a quarter with SUMIFS
  3. How to build a Q1 to Q4 summary table
  4. How to sum by quarter with SUMPRODUCT
  5. How to sum by fiscal quarter
  6. Other ways: helper column and pivot table
  7. Why is my quarterly total wrong?
  8. Practise it

Keep reading

Dates· 7 min read

Get the Quarter From a Date in Excel

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.

Conditional math· 6 min read

How to Sum by Month in Excel With SUMIFS

To sum by month in Excel, put the first day of the month in a cell, such as D2, and use SUMIFS with two date conditions: =SUMIFS(B2:B8,A2:A8,">="&D2,A2:A8,"<="&EOMONTH(D2,0)). EOMONTH returns the last day of that month, so the formula adds every amount dated from the 1st to the month end. Fill it down for a monthly summary.

Conditional math· 6 min read

How to Sum by Year in Excel

To sum by year in Excel, use SUMIFS with two date conditions: on or after 1 January and before 1 January of the next year. With the year in E2, write =SUMIFS(C2:C8,A2:A8,">="&DATE(E2,1,1),A2:A8,"<"&DATE(E2+1,1,1)). A shorter option is =SUMPRODUCT((YEAR(A2:A8)=E2)*C2:C8), and a PivotTable can group dates by year.

More on conditional math

  • How to Sum by Week in Excel
  • Sum the Last 30 Days in Excel With SUMIFS and TODAY
  • How to Use SUMIF in Excel
  • SUMIF Blank and Not Blank Cells in Excel
  • SUMIF Contains Text: Sum by Partial Match
  • SUMIF Greater Than or Less Than a Number
All conditional math articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free