Group a PivotTable by Month or Quarter

Excel Formulas › Analysis

All versionsPivotTable

Drop daily dates into a pivot and group them into months, quarters, or years — Excel does the bucketing for you. Right-click a date in the pivot and choose Group.


Quick formula: in the pivot, right-click any date label:
Group → select Months (and/or Quarters, Years)
Excel collapses individual dates into the periods you pick, summing the values within each.

Functions used (tap for the full reference guide):

The example

Daily sales rolled up to monthly totals.

AB
1MonthSales
2Jan$28,000
3Feb$31,500

The formula

Grouping is a right-click action, not a formula:

Right-click a date in the pivot → Group → Months (formula equivalent on raw data below) // daily → monthly buckets

How it works

Pivot date grouping in four clicks:

  1. Build the pivot with the date field in Rows and the value in Values.
  2. Right-click any date in the pivot and choose Group.
  3. Pick Months (add Quarters/Years for a drill-down hierarchy), then OK.
  4. Excel buckets the dates and totals each period. Ungroup the same way to revert.

Formula equivalent on raw data: =SUMIFS(sales, dates, ">="&startOfMonth, dates, "<="&EOMONTH(startOfMonth,0)) totals a month without a pivot — handy when you need the monthly figure inside another formula.

Try it: interactive demo

Live demo

Daily entries “m/d,amount” → monthly totals.

Variations

Quarters too

Group dialog → select Quarters + Years.

Formula: month total

On raw data:

=SUMIFS(sales, dt, ">="&m, dt, "<="&EOMONTH(m,0))

By week

Group → Days, set 7-day interval.

Pitfalls & errors

Dates must be real dates. Text that looks like a date won’t group — convert it first (DATEVALUE).

Group affects all pivots sharing the cache. Grouping in one pivot can change another built on the same data — expected behavior.

Blank/error dates block grouping. Clean the date column, or Excel refuses to group.

Practice workbook

📊
Download the free Group a PivotTable by Month or Quarter practice workbook
Daily source data with a SUMIFS monthly rollup (pivot grouping on the page), plus 4 challenges with answers. No sign-up required.

Frequently asked questions

How do I group a PivotTable by month in Excel?
Right-click any date in the pivot, choose Group, and select Months (and Quarters/Years if you want a hierarchy). Excel buckets the dates and totals each period.
What's the formula equivalent of monthly grouping?
On the raw data, use =SUMIFS(sales, dates, ">="&monthStart, dates, "<="&EOMONTH(monthStart,0)).
Why won't my pivot group the dates?
The date column likely contains text or blank/error cells. Convert text to real dates and remove blanks, then grouping works.

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: Sum by month · Sum by quarter · GETPIVOTDATA

Function references: SUMIFS · EOMONTH