Adding quarters to a pivot table lets you summarize monthly data by calendar quarter (Q1, Q2, Q3, Q4) without manually grouping rows. This is useful for sales reports, budget reviews, or any time-based analysis. The fastest way is to use Excel’s built-in Group feature on a date field. This guide shows you the steps for Excel 365 on Windows, with notes for Mac and Excel for the web.
What You’ll Need
- A pivot table already created from a data range or table that includes a column with real dates (not text).
- The date column must be formatted as dates in the source data (e.g., 01/15/2025, not “Jan 15”).
- Excel 2016 or later for the Group feature; Excel 365 recommended.
Step-by-Step
- Create or open your pivot table. If you haven’t made one yet: select any cell in your data, go to Insert > PivotTable, choose where to place it, and click OK.
- Add the date field to the Rows area. In the PivotTable Fields pane, drag the date field (e.g., “Order Date”) to the Rows area. The pivot table will show individual dates.
- Right-click any date in the pivot table. In the context menu, choose Group. (On a Mac, right-click or Control-click and select Group.)
- Select Quarters (and optionally Years). In the Grouping dialog, click Quarters in the “By” list. If your data spans multiple years, also click Years to avoid mixing Q1 of 2024 with Q1 of 2025. Click OK.
- Verify the result. The pivot table now shows quarters (e.g., Q1, Q2) instead of individual dates. If you selected Years, you’ll see a Years field above the Quarters field.
- Add a value field. If not already present, drag a numeric field (e.g., “Sales”) to the Values area. The pivot table now shows total sales per quarter.
- Format the quarter labels (optional). To change “Q1” to “Quarter 1”, create a custom number format: right-click a quarter cell, choose Field Settings (or Value Field Settings if it’s a value), go to the Number Format tab, select Custom, and type
"Quarter "0in the Type box. Click OK twice. - Refresh when source data changes. If you add new dates to your source data, right-click the pivot table and choose Refresh (or press Alt+F5 on Windows, Ctrl+R on Mac) to update the quarters.
Common Mistakes
- Grouping by quarters when dates span multiple years. Without selecting Years, Q1 of 2024 and Q1 of 2025 will be combined into one “Q1” group. Always include Years if your data covers more than one year.
- Dates stored as text. If the date column is text, the Group option is grayed out. Convert text to dates using Data > Text to Columns (delimited, then Date format) or use the DATEVALUE function in a helper column.
- Blank cells in the date column. Blank cells can prevent grouping. Filter out blanks in the source data or fill them with a valid date.
- Dragging the date field to Values instead of Rows. Grouping only works when the date is in the Rows or Columns area, not in Values.
Tips
- Use a date table for more control. If you need fiscal quarters or custom quarter definitions, create a separate table with a quarter column and link it via a relationship (Power Pivot or Data Model).
- Group by months too. In the Grouping dialog, you can select both Months and Quarters to show months nested under quarters.
- Keyboard shortcut for grouping: Select a date cell, press Alt+A then G on Windows (or Command+Option+G on Mac) to open the Grouping dialog.
- Sort quarters correctly. After grouping, right-click a quarter label, choose Sort > More Sort Options, and select “Manual” to drag quarters into the order you want (e.g., Q4 first for fiscal year).
Troubleshooting
- Group option is grayed out. Ensure the date field is in the Rows or Columns area, not Values. Also check that the source data has no blank dates and that the dates are recognized as dates (not text).
- Quarters appear as numbers (1, 2, 3, 4) instead of Q1. This is normal; Excel stores quarters as numbers. Apply a custom number format as shown in Step 7 to display “Q1”.
- New dates don’t show up. Right-click the pivot table and choose Refresh. If the source data range is fixed, update it via PivotTable Analyze > Change Data Source.
- Grouping by quarters combines all years. Re-open the Grouping dialog (right-click a date, choose Group) and add Years to the “By” list. If you already have a Years field, remove it and re-add it.
- Excel for the web doesn’t support grouping. As of 2025, the Group feature is not available in Excel for the web. Use the desktop version or create a calculated column with a formula like
=YEAR(A2)&" Q"&ROUNDUP(MONTH(A2)/3,0)to get a quarter label.
Frequently Asked Questions
- Can I group by quarters without using the Group feature? Yes, you can add a helper column in your source data with a formula like
=YEAR(A2)&" Q"&ROUNDUP(MONTH(A2)/3,0)and use that column in the pivot table. This also works in Excel for the web. - How do I show quarters as columns instead of rows? Drag the date field to the Columns area instead of Rows, then group as usual. The quarters will appear across the top.
- Why does my pivot table show months instead of quarters? The Grouping dialog may have Months selected. Right-click a date, choose Group, and clear Months, leaving only Quarters (and Years if needed).
- Can I group by fiscal quarters that start in April? The built-in Group feature only uses calendar quarters. For fiscal quarters, create a calculated column in your source data, e.g.,
="FY"&YEAR(A2)&" Q"&ROUNDUP(MOD(MONTH(A2)-4,12)/3,0)(adjust the starting month). - Does grouping affect my source data? No, grouping only changes how the pivot table displays the data. Your original data remains unchanged.
- What if I have a date field in the Values area? You can’t group a date in Values. Move it to Rows or Columns first, or use a date field as a value (e.g., count of dates) and group the row field separately.
Related
- Google Sheets Percentage Increase: Formula & Examples
- Random Number 1-20: How to Generate One
- Data Entry Operator WFH: Real Jobs, Pay & How to Start
Try it: the Percentage Formula Generator: percent of, percent change, increase and decrease, with the formula.
More in Charts & pivot tables
- Excel Pivot Table Not Recognizing Dates? How to Fix ItIf an Excel PivotTable is not recognizing dates, first check whether the source cells contain real Excel date…
- Excel Pivot Table Org Chart: Options and WorkaroundsAn Excel PivotTable cannot turn employee records into a graphical organization chart with connected boxes. It can summarize…
- Excel Line Chart Blanks: Gaps, Zeros, or Connected LinesYes. In Excel for Microsoft 365 on Windows, you can choose whether blank cells in a line chart…
- Link a Pivot Chart to a Slicer in ExcelTo link a slicer to an Excel PivotChart, select the PivotTable or PivotChart, choose PivotTable Analyze > Insert…
- Add Data Labels to a Google Sheets Chart: Steps & TipsTo add data labels in Google Sheets, select the chart, open the chart editor, choose Customize > Series,…
- Excel Stacked Bar Chart: How to Create and Read OneTo make a stacked bar chart in Excel for Microsoft 365 on Windows, select your category labels and…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.