FormulaCraft

How to sum values by fiscal quarter in Excel and Google Sheets

Topic:Date arithmetic
Excel & Google Sheets
=SUMPRODUCT((INT(MOD(MONTH(A2:A9)-C2+12,12)/3)+1=E2)*(YEAR(A2:A9)+(MONTH(A2:A9)<C2)=F2)*B2:B9)

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 transaction dates in A2:A9, amounts in B2:B9, and the fiscal year start month in C2 (e.g. 4 for April).
  2. 2The fiscal quarter formula is INT(MOD(MONTH(date)-start_month+12,12)/3)+1. The +12 inside MOD prevents negative remainders when a date month is earlier than the fiscal start month.
  3. 3The fiscal year formula is YEAR(date)+(MONTH(date)<start_month). Dates before the fiscal year start month belong to the prior fiscal year.
  4. 4In E2 enter the fiscal quarter number (1-4) you want to sum. In F2 enter the fiscal year. In G2 enter the full SUMPRODUCT formula.
  5. 5Verify: for a July-start fiscal year, July-September = Q1, October-December = Q2, January-March = Q3, April-June = Q4.

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

How do I sum by fiscal quarter when the fiscal year starts April 1?

Set C2 to 4. January, February, and March dates will map to Q4 of the prior fiscal year automatically.

Can I use a pivot table for fiscal quarters?

Not directly — pivot tables use calendar quarters. Add a helper column with the fiscal quarter label and use that as a pivot field.

More on Date arithmetic

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: