FormulaCraft

How to sum values by quarter in Excel and Google Sheets

Topic:SUM & aggregation
Excel & Google Sheets
=SUMPRODUCT((INT((MONTH(A2:A5)-1)/3)+1=B2)*(C2:C5))

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Put your dates in column A, amounts in column B, and the target quarter number (1–4) in a reference cell such as D1.
  2. 2Use =INT((MONTH(date)-1)/3)+1 to convert any date to its quarter number (1=Q1, 2=Q2, etc.).
  3. 3Wrap in SUMPRODUCT: =SUMPRODUCT((INT((MONTH(A2:A100)-1)/3)+1=D1)*(B2:B100)) to sum all rows whose date falls in the target quarter.
  4. 4Adjust the range A2:A100 and B2:B100 to match your actual data size.

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

Can I use a PivotTable to sum by quarter instead?

Yes — group a date field by Quarter in a PivotTable for a no-formula alternative that automatically handles multiple years.

What if my dates are stored as text?

Convert them first with DATEVALUE() or use Data > Text to Columns to parse them as real date values before applying MONTH().

More on SUM & aggregation

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: