Stop Using 'Insert Chart' — Here's How to Make Linear Graph on Excel Correctly

Most Excel trainers tell you to select your data, go to Insert > Charts > Scatter with Straight Lines, and call it done. That’s dangerously wrong. Excel treats that chart type as a connected scatter plot, not a true linear graph — meaning it ignores X-axis order, skips missing values unpredictably, and breaks regression logic if your X-values aren’t sorted. You’re not plotting Y vs X. You’re plotting Y vs row number. And no amount of formatting fixes that.

The Setup

You’re tracking monthly sales performance for five regional managers at TechNova Solutions. Your raw data lives in A1:C10. Column A is Month (text labels), Column B is Actual Sales ($), Column C is Target Sales ($). But here’s the catch: the months are entered as text — 'Jan', 'Feb', 'Mar' — not real dates. Excel can’t compute slope or trendline intercepts from text. So first, we need numeric X-values.

MonthActual Sales ($)Target Sales ($)
Jan$42,150$45,000
Feb$47,890$45,000
Mar$44,320$45,000
Apr$51,670$45,000
May$53,210$45,000
Jun$58,440$45,000
Jul$62,100$45,000
Aug$59,730$45,000
Sep$65,280$45,000

The Challenge

You need a linear graph where X = time (numeric sequence 1–9), Y = Actual Sales, and a second series showing Target Sales as a flat horizontal line. Not just any line chart — one that supports proper trendline equations, lets you extend forecasts, and displays axis labels correctly. The problem? Excel’s default ‘Line’ chart assumes X is categorical. Its ‘Scatter’ chart assumes X is numeric — but only if you feed it numbers. If you feed it text labels, it assigns 1, 2, 3… automatically — but silently. No warning. No error. Just wrong math.

Also: your Target Sales column is constant. If you plot it as-is in a Scatter chart, Excel draws nine identical points stacked vertically at X=1, X=2, etc. You’ll get a jagged mess unless you convert it to an XY series with proper X-coordinates.

Walking Through It

We’ll build this in four precise steps. Do them in order. Skip one, and the trendline will be garbage.

StepActionResultShortcut
1In D1, type X-Index. In D2, enter =ROW()-1. Drag down to D10.Column D contains 1 through 9 — clean numeric X-values aligned with each month.Alt+H+V+V (Paste Values after dragging)
2Select D1:D10 and B1:B10 → Insert → Charts → Scatter with Straight Lines and Markers.A basic scatter plot appears. X-axis shows 1–9. Y-axis shows $42k–$65k. Points connect in order.Alt+N+S+L
3Right-click chart → Select Data → Add new series. Name: Target. X values: =Sheet1!$D$2:$D$10. Y values: =Sheet1!$C$2:$C$10.Second series appears — flat line at $45,000, crossing all 9 X-positions. No stacking.Alt+J+D+A
4Click the Actual Sales series → Chart Design → Add Chart Element → Trendline → Linear. Right-click trendline → Format Trendline → check Display Equation and Display R-squared Value.Trendline appears with equation y = 2845.7x + 40118 and R² = 0.942. Slope matches actual growth rate.Alt+J+T+L

Here’s what your data range looks like after Step 1 — notice the new X-Index column:

MonthActual Sales ($)Target Sales ($)X-Index
Jan$42,150$45,0001
Feb$47,890$45,0002
Mar$44,320$45,0003
Apr$51,670$45,0004
May$53,210$45,0005
Jun$58,440$45,0006
Jul$62,100$45,0007
Aug$59,730$45,0008
Sep$65,280$45,0009

The Result

This is your final linear graph — built correctly. X-axis is truly numeric. Trendline equation is valid. Forecasting works. You can right-click any data point → Add Data Label → show exact values. You can extend the trendline: double-click it → Format Trendline → under Forecast, set Forward to 3 periods. Excel projects $73,667 for October (X=10), $76,513 for November (X=11), etc.

SeriesX RangeY RangeChart Type
Actual SalesD2:D10B2:B10Scatter with straight lines
Target SalesD2:D10C2:C10Scatter (no lines — use Format Series to add solid line)
Trendline (Actual)——Linear, displayed with equation

What Could Go Wrong

Three mistakes I see in 7 out of 10 learner files — every single workshop.

Mistake #1: Using ‘Line’ chart instead of ‘Scatter’
People highlight A1:C10 → Insert → Line → 2-D Line. Excel plots Month (text) on X-axis as categories. X-axis spacing is equal — even if gaps exist between Jan and Mar. Worse: if you later add a trendline, Excel fits it to category positions (1,2,3…), not real time intervals. The slope becomes meaningless. Fix: Delete it. Start over with Scatter.

Mistake #2: Forgetting to lock cell references when adding Target series
You type =C2:C10 for Y-values in Select Data — but Excel interprets that as relative. When you add more series later, those ranges shift. Always use absolute refs: =$C$2:$C$10. Same for X: =$D$2:$D$10. One missing $ sign breaks everything.

Mistake #3: Adding trendline before confirming X-values are numeric
You skip Step 1. You plot A1:A10 and B1:B10 directly into Scatter. Excel auto-generates X = 1,2,3… but only because your data starts at row 1. If your table begins at row 15, X starts at 15 — and your slope calculation divides by 14 instead of 8. You’ll get y = 202x + 12,800 — completely wrong. Always verify X-values in the formula bar before adding trendline.

Next step: Open your workbook. Go to cell D1. Type X-Index. In D2, enter =ROW()-1. Then hit Alt+N+S+L. That’s all you need to start.

Lisa Anderson

Lisa Anderson

Lisa is a certified Microsoft trainer who writes step-by-step guides for Power Automate