How to Fix Excel Scatter Plot Y-Axis Showing Zeros Instead of Values
Question details
The user's scatter plot displays zeros on the Y-axis because the source data is formatted as text and contains leading spaces.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Creating a scatter chart using data that appears to be numerical but actually includes hidden leading spaces.
- Observed behavior
- The scatter chart plots zeros on the Y-axis instead of the actual data points because Excel interprets the left-aligned text data as a zero value.
Before proceeding, click on a few cells in your Y-axis data range to check if they are left-aligned or have a hidden space before the number. Left-aligned data usually indicates that Excel is treating the numbers as text.
Use Text to Columns to Convert Text to Numbers
This is the fastest method to remove leading spaces and force Excel to recognize the data as numbers, instantly fixing the scatter plot.
When numbers are stored as text due to leading spaces, standard formatting changes won't fix the issue. The Text to Columns wizard is the most effective tool to strip away these spaces and convert the cells into pure numerical formats.
Highlight the range of cells in the Y-axis column that are showing up as zeros in your scatter chart.
Go to the Home tab on the ribbon and change the number format dropdown from Text to 'General' or 'Number'.
Navigate to the Data tab and click on the 'Text to Columns' button.
Without changing any settings in the wizard popup, simply click 'Finish'. Your numbers should now align to the right, and the scatter plot will update automatically.
Use the TRIM and VALUE Functions to Clean Data
If you have a large dataset with persistent leading spaces, you can use formulas to clean the data in a helper column.
Create and Clean Scatter Plots Effortlessly in WPS Spreadsheet
WPS Spreadsheet provides intuitive data formatting tools and advanced chart features, making it easy to convert text to numbers and generate accurate scatter plots without formatting errors.
- 1. Open your dataset: Launch WPS Spreadsheet and open the document containing your scatter plot data.
- 2. Select and clean the data: Highlight the column with left-aligned text data.
- 3. Convert text to numbers: Go to the Data tab, click 'Text to Columns', and click Finish to instantly convert them to right-aligned numbers.
- 4. Insert the chart: Select both your X and Y data columns, go to Insert > Chart > Scatter to create an accurate, error-free plot.

Frequently Asked Questions
Why does Excel plot my numbers as zeros on the Y-axis?
Excel treats cells formatted as text or containing hidden characters like leading spaces as text strings instead of numeric values. When charting, Excel evaluates any text values as zero.
How can I tell if my numbers are formatted as text?
By default, Excel right-aligns numerical data and left-aligns text. If your numbers are automatically aligned to the left side of the cell, they are almost certainly being stored and treated as text.
Will changing the cell format to 'Number' fix the issue automatically?
No, simply changing the cell format from the Home tab dropdown won't instantly convert existing text that contains leading spaces. You must use tools like 'Text to Columns' or manually re-enter the data to force Excel to recalculate the cell's underlying data type.




