Group Duplicate X-Axis Labels in an Excel Column Chart
Question details
The user needs one column per unique X-axis category, with repeated categories combined.

- 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.
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.
Summarize repeated categories with a PivotTable
Use a PivotTable to total each repeated category before creating the column chart.
Select the source data, including headers, and choose Insert > PivotTable. Confirm the range and choose where to place the PivotTable.
In the PivotTable field list, drag the category field, such as Temperature, to Rows and the numeric field, such as Spores, to Values.
If the Values area shows Count instead of Sum, open Value Field Settings for the field and select Sum.
Select the summarized categories and totals, then choose Insert > Column Chart and select a column chart style.

Combine duplicate categories with SUMIF
Use SUMIF when you want a separate summary table that can serve as the chart source.
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. Open the workbook: Open your Excel file in WPS Spreadsheets and select the category and value columns, including their headers.
- 2. Insert a PivotTable: Choose Insert > PivotTable, confirm the data range, and select a location for the summary.
- 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. Create a column chart: Select the summarized categories and totals, then choose Insert > Chart and select a column chart.

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.




