How to Fix Excel Chart Starting One Point to the Right
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.

- 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.
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.
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.
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.
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'.
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).
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.

Verify Source Data Range Alignment
Ensure that the X-values and Y-values in the Select Data Source dialog cover the exact same range without misalignment.
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. Open Data in WPS Spreadsheet: Launch WPS Office and open your .xlsx file containing the calculation formulas and chart data.
- 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. 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.

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.




