Fix Excel Scatter Chart Displaying Years as Sequential Numbers
Question details
The user is trying to plot specific years on the X-axis of an Excel scatter chart, but the chart displays sequential numbers (1, 2, 3) instead of the actual years.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Creating a scatter plot using a dataset where the X-axis values are years (e.g., 1985, 1997, 1999).
- Observed behavior
- Excel ignores the entered year digits and automatically plots the X-axis data points as sequential numbers starting from 1.
Check your source data to ensure the years are not formatted as text. Look for hidden leading apostrophes or quotation marks in the formula bar, as scatter charts strictly require numeric values to plot coordinates correctly.
Format Years as Strict Numeric Values
Because scatter charts plot coordinates mathematically, text-formatted years will be ignored and plotted as sequential points. Converting the text to standard numbers fixes this instantly.
A common mistake when entering years into Excel is treating them like text labels by adding an apostrophe before the number (e.g., '1985). Scatter charts cannot calculate text values, so Excel defaults to plotting the sequence of the rows (1, 2, 3...). Converting these cells strictly to numeric formats will restore the correct X-axis scale.
Highlight the entire column or row containing your year values in the worksheet.
Navigate to the Data tab on the top ribbon and click on 'Text to Columns'. Without changing any settings, simply click 'Finish'. This forces Excel to re-evaluate the text as actual numbers.
Right-click the selected cells, choose 'Format Cells', navigate to the Number tab, and select 'General' or 'Number'. Ensure decimal places are set to 0.
Click on your scatter chart. It should now automatically update the X-axis to reflect the actual numeric years.

Use Full Dates and Apply Custom Axis Formatting
If your data represents precise moments in time, entering full dates allows Excel to scale the gaps perfectly, while custom formatting keeps the visual axis clean by only displaying the year.
Create and Format Scatter Charts Easily with WPS Spreadsheet
WPS Spreadsheet offers an intuitive charting interface that automatically detects numeric data accurately. You can effortlessly generate scatter plots and customize axis formats without dealing with hidden text conversion issues.
- 1. Highlight your dataset: Open your data file in WPS Spreadsheet and select the columns containing your years and corresponding Y values.
- 2. Insert a Scatter Chart: Go to the Insert tab on the top ribbon, click the Chart icon, choose Scatter, and select your preferred chart style.
- 3. Customize the X-axis: Double-click the X-axis to open the Format Axis panel on the right. Here you can seamlessly adjust numeric bounds or apply specific date formats.

Frequently Asked Questions
Why does my scatter chart show 1, 2, 3 instead of my actual data?
Scatter charts mathematically map coordinates and require strictly numeric values. If your X-axis data is formatted as text or contains hidden characters like a leading apostrophe, the chart cannot read it mathematically. Instead, it plots the points sequentially as row 1, row 2, row 3, and so on.
Can I use a Line Chart instead of a Scatter Chart for years?
Yes. A Line chart treats the X-axis as categorical labels rather than a mathematical scale by default. This means text-formatted years will directly display as labels. However, be aware that a Line chart will space all years equally apart, regardless of the actual time gap between them (e.g., the visual gap between 1985 and 1997 will be identical to 1997 and 1999).
How do I remove hidden apostrophes from multiple cells at once?
You can quickly remove hidden apostrophes by selecting the affected column, clicking on the Data tab, choosing 'Text to Columns', and immediately clicking 'Finish' without altering any settings. This forces the software to re-parse the cells as standard numbers.




