Create an Excel Histogram Grouped by Month or Quarter
Question details
Create a chart that counts events by month or quarter across multiple years.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- The user has event dates from multiple years and wants to visualize counts for calendar periods.
- Observed behavior
- The desired chart shows event counts grouped by month or quarter, with years distinguished.
Make sure the source data has a header row and that each event date is a valid Excel date value. Remove or correct blank and text-only date entries before grouping.
Group event dates in an Excel PivotTable and create a PivotChart
Use a PivotTable and PivotChart to count events in calendar months or quarters by year.
A standard Histogram chart groups numeric values into intervals; a PivotChart is better suited to calendar-based grouping.
Select a cell in the event data, then choose Insert > PivotTable. Confirm the data range and select where to place the PivotTable.
In the PivotTable Fields pane, drag the date field to Rows and drag the event field to Values. If necessary, open Value Field Settings and choose Count.
Right-click a date in the PivotTable and choose Group. Select Months and Years, or Quarters and Years, then click OK.
Click inside the PivotTable, choose Insert > PivotChart, and select a column chart to display the grouped event counts.

Chart monthly or quarterly event counts in WPS Spreadsheet
Use a helper column to label each event by month or quarter and year, summarize the labels in a PivotTable, and create a column chart in WPS Spreadsheet.
- 1. Open the event data: Open your workbook in WPS Spreadsheet and confirm that the date column contains valid dates and a header.
- 2. Add period labels: Insert a new column with a header such as Period. If the first date is in A2, enter =TEXT(A2,"yyyy-mm") for months or =YEAR(A2)&"-Q"&ROUNDUP(MONTH(A2)/3,0) for quarters, then fill the formula down.
- 3. Create a PivotTable: Select the data, including the new Period column, and choose Insert > PivotTable. Place Period in Rows and the date field in Values, setting the value calculation to Count if needed.
- 4. Insert a column chart: Select the period labels and their counts in the PivotTable, excluding the grand total, then choose Insert > Chart and select a column chart.

Frequently Asked Questions
How do I keep the same month in different years separate?
In the PivotTable, right-click a date, choose Group, and select both Months and Years. This separates, for example, January of one year from January of another.
Can I combine the same month across all years?
Right-click a PivotTable date, choose Group, and select Months without Years. The resulting monthly counts combine dates from different years.
Why can't Excel group my dates?
The source date column may contain blanks, errors, or text instead of valid dates. Correct those entries, refresh the PivotTable, and try the Group command again.
Should I use an Excel Histogram chart for quarters?
For calendar quarters, use a PivotTable grouped by Quarters and Years and insert a PivotChart. A standard Histogram chart is intended for numeric intervals rather than calendar periods.




