Chart & Visualization Issues

How to Fix Excel Scatter Plot Y-Axis Showing Zeros Instead of Values

Tauseeq MagsiTauseeq Magsi Oct 26, 2026 870 views

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.

Fix Excel Scatter Plot Y-Axis Showing Zeros Instead of Values
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 you start

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.

Solution 1Recommended

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.

1
Select the affected cells

Highlight the range of cells in the Y-axis column that are showing up as zeros in your scatter chart.

2
Set format to General or Number

Go to the Home tab on the ribbon and change the number format dropdown from Text to 'General' or 'Number'.

3
Open Text to Columns

Navigate to the Data tab and click on the 'Text to Columns' button.

4
Finish the conversion

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.

Check Alignment: If the process is successful, the previously left-aligned numbers will immediately snap to the right side of their cells, confirming they are now recognized as values.
Try WPS Spreadsheet

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. 1. Open your dataset: Launch WPS Spreadsheet and open the document containing your scatter plot data.
  2. 2. Select and clean the data: Highlight the column with left-aligned text data.
  3. 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. 4. Insert the chart: Select both your X and Y data columns, go to Insert > Chart > Scatter to create an accurate, error-free plot.
Easily clean data and remove leading spaces with the built-in Text to Columns feature.Fully compatible with Microsoft Excel file formats (.xlsx, .xls) ensuring seamless data migration.Rich library of customizable charts, including scatter plots, for professional data visualization.Free, lightweight, and user-friendly interface similar to Microsoft Office.
microsoft office alternative - wps office

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.