Edit Excel Chart Category Labels and Data Ranges
Question details
Correct chart category labels and series names by checking the chart's source data and references.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Editing a chart whose axis labels or series names do not match the intended worksheet data.
- Observed behavior
- Excel appears to allow only the first label to be edited or assigns incorrect axis values.
Identify the cells containing the category labels, series names, and values. Check the chart type, because an XY scatter chart uses numeric X values rather than a standard category-label range.
Correct the chart data range and category labels in Excel
Use Select Data to connect the chart to the complete source table and correct individual series and axis references.
Right-click the chart and select Select Data. In Chart Data Range, select the complete table, including labels and headers, such as B10:D13.
Under Horizontal (Category) Axis Labels, select Edit and choose the cells containing all category labels, such as B11:B13. Select OK.
Under Legend Entries (Series), select a series and choose Edit. Set Series name to its header cell and Series values to the matching data cells, then select OK.
In Select Data Source, select Switch Row/Column if Excel has interpreted categories and series in the wrong direction. Review the preview and select OK.

Use a secondary axis for a series with a different scale
Use this option when a correctly referenced series is difficult to read because its values differ greatly in scale from the other series.
Correct chart labels and source data in WPS Spreadsheets
Open your workbook in WPS Spreadsheets and use the chart's data selection controls to review its source range, category labels, and series names.
- 1. Open the workbook: In WPS Spreadsheets, select Open and choose the Excel workbook containing the chart.
- 2. Select the chart data: Right-click the chart and choose Select Data. Select the complete source table, including the headers and category labels.
- 3. Review labels and series: In the data selection dialog, check the category-label range and edit each series name and values as needed. Confirm the changes.
- 4. Save the workbook: Check the chart, then select File > Save or Save As to keep the updated workbook.

Frequently Asked Questions
Why does my Excel chart show the wrong category labels?
The chart may reference the wrong cells or omit part of the source table. Right-click the chart, choose Select Data, and check the Chart Data Range and Horizontal (Category) Axis Labels.
How do I change a chart series name?
Right-click the chart and choose Select Data. Under Legend Entries (Series), select the series, choose Edit, and update the Series name reference or text.
Why can't I edit category labels on my scatter chart?
An XY scatter chart plots numeric X values rather than standard category labels. In Select Data, select a series and choose Edit to change its Series X values.
Will a secondary axis fix incorrect chart labels?
No. A secondary axis helps display a series on a different scale. To fix labels, use Select Data to correct the category-label range or series references.




