Chart & Visualization Issues

How to Fix Excel Chart Starting One Point to the Right

Emma BrownEmma Brown Nov 4, 2026 868 views

Question details

The user's Excel chart created from formula results is shifting one unit to the right along the x-axis, whereas manually entered values plot correctly.

How to Fix Excel Chart Starting One Point to the Right
Product
Microsoft Excel
Device & OS
not provided
Scenario
Creating a chart from calculated formula results that include conditional blank strings.
Observed behavior
The plotted chart is shifted one unit to the right along the positive x-axis, ignoring or misinterpreting the initial data point.
Before you start

Verify your chart's source data range to ensure there are no unintended empty cells or misaligned rows between your X and Y axis columns before altering formulas.

Solution 1Recommended

Adjust Horizontal Axis Type and Handle Blank Strings

Correct the axis type from Category to Scatter/Numeric and modify formulas that return empty strings to prevent Excel from shifting plotted points.

When formulas return an empty string (""), Excel treats the result as text rather than a truly blank cell. On a categorical line chart, this text occupies a plot position, pushing the actual numeric data one point to the right.

To resolve this, you must change how your formulas output empty data or switch to a chart type that handles numerical coordinates accurately.

1
Change chart type to XY Scatter

Right-click your chart and select 'Change Chart Type'. Choose 'X Y (Scatter)' instead of 'Line', as Scatter charts treat both axes as numeric values, ignoring text-based blanks.

2
Format horizontal axis

If you must use a Line chart, right-click the horizontal (X) axis, select 'Format Axis', and under 'Axis Options', ensure the axis type is set to 'Date axis' rather than 'Text axis'.

3
Update source formulas

Select the cells containing your formulas. Replace formulas that return blank strings like =IF(BC5="","",BA4+J10/2000) with =IF(BC5="",NA(),BA4+J10/2000).

4
Apply changes

Press Enter to apply the modified formula and drag the fill handle to update the rest of your column. Excel charts natively ignore #N/A errors without shifting the data points.

Adjust Horizontal Axis Type and Handle Blank Strings
Line Chart vs Scatter Chart: Line charts treat blank strings as text categories, causing axis plotting issues. XY Scatter charts handle numeric gaps more effectively and are highly recommended for scientific or mathematical data.
Seamless Chart Creation

Create Accurate Charts Instantly with WPS Spreadsheet

Avoid axis shifting and formula misinterpretation by using WPS Spreadsheet. It offers smart charting tools that perfectly handle formulas, #N/A values, and complex data ranges, ensuring your graphs are plotted exactly as intended.

  1. 1. Open Data in WPS Spreadsheet: Launch WPS Office and open your .xlsx file containing the calculation formulas and chart data.
  2. 2. Insert the Chart: Highlight your data range, navigate to the 'Insert' tab on the ribbon, and select your preferred chart type (e.g., Scatter).
  3. 3. Adjust Chart Settings: Double-click the chart to open the properties panel on the right, where you can easily configure axis options and manage hidden or empty cells.
Smart data handling for formulas, #N/A errors, and blank cells.Fully compatible with Microsoft Excel (.xlsx) formats and chart types.Rich library of customizable chart templates including Scatter and Line charts.Lightweight, fast, and completely free to use.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my Excel chart treat empty formula cells as zero or shift the data?

Excel treats the formula result "" (a blank string) as text, not a truly empty cell. On a categorical line chart, this text takes up a physical plot position, which shifts subsequent numeric data to the right. Replacing "" with NA() in your formula solves this issue.

How do I make my Excel chart ignore blank cells completely?

Right-click the chart, select 'Select Data', click the 'Hidden and Empty Cells' button, and choose 'Connect data points with line' or 'Leave as gaps' depending on your chart type. Note that this feature only works for truly empty cells or #N/A values, not for formula-generated blank strings.

What is the best chart type for plotting mathematical formulas?

An XY (Scatter) chart is highly recommended for mathematical or scientific formulas because it plots both X and Y values as numerical coordinates. Line charts, conversely, treat X values as evenly spaced categories regardless of their numerical value.