Articles

How do you total sales by month and quarter with SUMIFS?

Two key columns in the data, one mixed-reference SUMIFS in the report, and a total that must equal the data. No date arithmetic in the report itself.

To total sales by period in Excel, add a period key to the data once, then use it as a SUMIFS criterion. A month key is =EOMONTH(date,0), the last day of the month, which stays a real date; a quarter key is ="Q"&ROUNDUP(MONTH(date)/3,0). One SUMIFS with mixed references then fills the whole report. On 5,000 invoice lines of a food distributor, the report ties to the data to the cent.

The case comes from the Excel for Finance course by Julian R. Sterling, author of The Real Estate Asset Manager.Get the DRM-free PDF, $19.99 →

Step 1: two key columns in the data

In an Excel table named Sales, type in the first row of two new columns:

Month    =EOMONTH([@Date],0)
Quarter  ="Q"&ROUNDUP(MONTH([@Date])/3,0)

The table fills every row. The first invoice of the case, dated 1 January 2026, gets the month key 31 January 2026 and the quarter key Q1.

Step 2: one SUMIFS for the whole block

Put the regions down column B and Q1 to Q4 across row 5. In D6:

=SUMIFS(Sales[Net],Sales[Region],$B6,Sales[Quarter],D$5)

$B6 keeps the region column when the formula moves right; D$5 keeps the header row when it moves down. Copy to the block:

Northgate Foods (fictional), net sales by region and quarter, FY 2026, US$.
RegionQ1Q2Q3Q4Total
North$696,656$665,058$678,667$663,944$2,704,325
South$450,079$507,946$520,181$593,087$2,071,293
East$564,872$573,575$557,113$706,075$2,401,635
West$216,630$249,257$295,246$314,580$1,075,713
Total$1,928,238$1,995,836$2,051,207$2,277,686$8,252,967

Step 3: months, the same way

For a month column, build the header with =EOMONTH(DATE(2026,m,1),0) and use =SUMIFS(Sales[Net],Sales[Month],B29). The key is a date, so it sorts and filters like one. The twelve months of the case add up to $8,252,967; the largest is December, at $846,811.

Why not date criteria in every cell?

SUMIFS(Sales[Net],Sales[Date],">="&start,Sales[Date],"<="&end) works, and is the right tool for one-off periods such as Q4 to date. For a report, it puts two date calculations in every cell and invites the open-ended criterion that silently includes next year's lines. A key column is computed once and read by every formula.

The check

The grand total of the block must equal =SUM(Sales[Net]). If it does not, a row has a region or quarter the report does not list, often a typo such as "Nort". Keep the difference on a checks sheet, rounded to the cent, and expect zero.

Sources

  1. Julian R. Sterling, Excel for Finance: Formulas, Lookups & Pivot Tables (course, 2026): running case Northgate Foods
  2. Microsoft Support, documentation of SUMIFS, EOMONTH, MATCH, XLOOKUP and PivotTables (consulted November 2026)

Every figure is computed by script from the course's running case, Northgate Foods, a fictional food distributor, and checked on 27 November 2026. For education, not investment or accounting advice.

Learn the Excel that finance runs on

32 lessons on references, tables, INDEX and MATCH, XLOOKUP, SUMIFS, dates, text, pivot tables and checks, built on 5,000 invoice lines of one company, with step files, exercises, a quiz app and a certificate exam ($149).

Read module 1 free →

Questions readers ask

How do I get the month from a date for SUMIFS?

Add a column =EOMONTH(date,0): it returns the last day of the month as a real date, which you can use as a criterion and as a report header.

How do I compute the quarter of a date in Excel?

=ROUNDUP(MONTH(date)/3,0) returns 1 to 4. Join it to a letter with "Q"& to match report headers. For a fiscal year starting in April, use ROUNDUP((MOD(MONTH(date)-4,12)+1)/3,0).

Why does my SUMIFS by month return zero?

Usually because the dates are stored as text after an import, or because the criterion compares a date with a text label. Convert the dates and compare like with like.

Read the whole case

This article is one calculation from The Real Estate Asset Manager. The book takes the same case from first principles to the decision, chapter by chapter, and every figure it prints is a live formula in the free companion workbooks.

See the course →Free companion files

Also on Amazon UK · Amazon Germany · Amazon France · Amazon Canada

Prefer a PDF? The same book is sold as a DRM-free PDF edition, searchable and printable. Get the PDF edition, $19.99

Also on this site

All 5643 articles →