In Excel: put numeric x-values in one column and numeric y-values in the next, select both columns, then Insert ▸ Scatter (X, Y).
On this page7
Place x-values in the left column and y-values in the right column.
Select both numeric columns, without totals or labels inside the data body.
Choose Insert ▸ Scatter (X, Y) and pick markers or smooth lines.
Add axis titles and, when useful, a trendline with the equation or R-squared value.
What this does
A scatter plot compares two numeric measurements. Unlike a line chart, both axes are value axes, so the distance between points matters on x and y. It is the right chart for relationships, clusters, outliers and correlations: ad spend versus revenue, height versus weight, temperature versus demand. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “add line to scatter plot in excel”. Start on a copy or a tiny sample, keep the affected cells visible, and compare the result with the outcome you expected before you touch the real workbook. When this is a ribbon command, the selection matters more than the button: confirm the range, apply the command, then spot-check the output before saving. The point is a visual that makes the number obvious at a glance, but the practical win is that someone else can open the file and understand what happened without asking you.
A worked example
Column A holds ad spend 100, 200, 300, 400 and 500; column B holds revenue 820, 980, 1210, 1320 and 1510. Select A2:B6 and insert a Scatter chart. The upward cloud shows revenue rising as spend rises. Add a trendline and display R-squared to quantify how closely the points follow a line. Scatter plots are the spreadsheet workhorse for relationship questions. They quickly reveal whether two measures move together, where outliers sit and whether a trendline is meaningful enough to discuss. When the result is not what you expected, undo straight away rather than repairing it by hand — undo restores the sheet exactly, while manual fixes tend to leave small inconsistencies behind that surface later.
In Google Sheets
This is a command rather than a formula, so there is no syntax to carry over. Google Sheets arranges its commands in menus across the top instead of a ribbon, names some of them differently and does not have every Excel command — look for the equivalent in the Sheets menus or its help before assuming the steps match. Nothing on this page is behind a login or a download: the exact answer is at the top, and the detail below it is there for when you need it. That is the whole promise here — the answer first, and just enough context to make it stick. The short version of “add line to scatter plot in excel”: the answer is at the top of this page, and the sections above explain why each step matters, so a variation of the problem does not stump you. Try it once on a copy of a real file and the steps stick far better than re-reading them.
Common mistakes
- Using a line chart, which treats the x-axis as categories instead of numeric positions.
- Selecting the y-values first, causing Excel to guess the x-axis incorrectly.
- Mixing text labels into the numeric range, which can make points disappear or plot at zero.
- Interpreting correlation as causation; a scatter plot shows association, not proof.
Frequently asked questions
What is the difference between scatter and line charts?
Scatter charts use numeric x and y axes. Line charts connect ordered categories or dates and are usually for trends over a sequence.
How do I add a trendline?
Click the series, choose Chart Elements (+) ▸ Trendline, and open More Options to show the equation or R-squared.
Can I label individual points?
Yes. Add data labels, then use label options to pull labels from a worksheet range.
Other ways people ask this
On the way here you may have searched this as “how to add lines to scatter plot excel”, “add regression line to scatter plot in excel” and “how to add a line in scatter plot excel” — it is all the same task, and this page is the single, complete answer to it.
Why do people search for this in so many different ways?
Because the same task has many names. “how to add lines to scatter plot excel”, “add regression line to scatter plot in excel”, “how to add a line in scatter plot excel” all point at the one operation explained on this page, which is why they all lead here.