Chart & Visualization Issues

Group Duplicate X-Axis Labels in an Excel Column Chart

Muhammad TalhaMuhammad Talha Nov 27, 2026 870 views

Question details

The user needs one column per unique X-axis category, with repeated categories combined.

Group Duplicate X-Axis Labels in an Excel Column Chart
Product
Microsoft Excel
Device & OS
not provided
Scenario
The source data contains repeated temperature categories and associated spore values that are already partially grouped.
Observed behavior
Excel creates a separate column for each source row, even when several rows have the same X-axis category.
Before you start

Check that the category and value columns have headers and that the values you want to total are numeric. Decide whether summing the repeated categories is appropriate for your data.

Solution 1Recommended

Summarize repeated categories with a PivotTable

Use a PivotTable to total each repeated category before creating the column chart.

1
Create a PivotTable

Select the source data, including headers, and choose Insert > PivotTable. Confirm the range and choose where to place the PivotTable.

2
Group and total the data

In the PivotTable field list, drag the category field, such as Temperature, to Rows and the numeric field, such as Spores, to Values.

3
Check the calculation

If the Values area shows Count instead of Sum, open Value Field Settings for the field and select Sum.

4
Create the chart

Select the summarized categories and totals, then choose Insert > Column Chart and select a column chart style.

Summarize repeated categories with a PivotTable
Refresh after data changes: If source values change, right-click the PivotTable and select Refresh. If new rows fall outside its source range, update the data source first.
Summarize and chart in WPS

Group Duplicate Categories in WPS Spreadsheets

Use a PivotTable in WPS Spreadsheets to sum repeated categories, then create a column chart from the summarized values.

  1. 1. Open the workbook: Open your Excel file in WPS Spreadsheets and select the category and value columns, including their headers.
  2. 2. Insert a PivotTable: Choose Insert > PivotTable, confirm the data range, and select a location for the summary.
  3. 3. Summarize the categories: Drag the category field to Rows and the numeric field to Values. Set the value calculation to Sum if necessary.
  4. 4. Create a column chart: Select the summarized categories and totals, then choose Insert > Chart and select a column chart.
Combine repeated X-axis categories before chartingOpen and edit Microsoft Excel XLSX and XLS filesCreate PivotTables and column charts in one applicationUse a familiar spreadsheet interface for free
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel show a separate column for each duplicate label?

A standard column chart plots the source rows as provided; it does not automatically total rows with matching category labels. Summarize the categories first with a PivotTable or SUMIF.

Why is a histogram not suitable for my grouped data?

A histogram counts observations within bins to show a frequency distribution. It does not normally sum pre-grouped values, such as spore totals, for each temperature category.

Can I use an average instead of a sum?

Yes. In the PivotTable, open Value Field Settings for the numeric field and select Average. Use this only if averaging the source values gives the result you need.

Will changing the X-axis format combine duplicate labels?

No. Formatting changes how labels appear, not how source rows are aggregated. Create a summary table with one row per category before inserting the column chart.