Chart & Visualization Issues

Create an Excel Histogram Grouped by Month or Quarter

Steve KSteve K Nov 18, 2026 870 views

Question details

Create a chart that counts events by month or quarter across multiple years.

Create an Excel Histogram Grouped by Month or Quarter
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.
Before you start

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.

Solution 1Recommended

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.

1
Insert a PivotTable

Select a cell in the event data, then choose Insert > PivotTable. Confirm the data range and select where to place the PivotTable.

2
Add dates and counts

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.

3
Group the dates

Right-click a date in the PivotTable and choose Group. Select Months and Years, or Quarters and Years, then click OK.

4
Create the chart

Click inside the PivotTable, choose Insert > PivotChart, and select a column chart to display the grouped event counts.

Group event dates in an Excel PivotTable and create a PivotChart
If grouping is unavailable: Check the source date column for blank cells, errors, or dates stored as text. Correct them and refresh the PivotTable before trying Group again.
Group event dates in WPS Spreadsheet

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. 1. Open the event data: Open your workbook in WPS Spreadsheet and confirm that the date column contains valid dates and a header.
  2. 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. 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. 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.
Summarize event counts by month or quarter across yearsOpen and edit Microsoft Excel XLSX and XLS filesCreate PivotTables and column charts in one spreadsheet
microsoft office alternative - wps office

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.