Most tools create a usable scatter plot from a table in under a minute, provided one column holds the x values and another holds the y values as numbers. If a column mixes text with numbers, or a pair contains a blank cell, the plot either drops that row without warning or refuses to build — and that is where nearly every failed attempt starts.
This guide treats "a table of data" as a plain two-column (or wider) dataset with one row per observation. The steps below name exact menus in Excel for Microsoft 365, Google Sheets, and Python's matplotlib, state what each tool does with bad rows, and close with a worked check you can run against your own chart.
What a Scatter Plot Requires From Your Table Before You Chart
The x column should be a number or a date; the y column must be a number. Excel's scatter chart plots only numeric pairs, so a y column formatted as text produces an empty or flat chart, and the fix lives in Data > Text to Columns or a VALUE() helper column, not in the chart menu.
Dates on the x axis behave differently across tools. Excel scatters dates correctly because it stores them as serial numbers, while Google Sheets may treat date text as categories unless the column is recognized as a date type; if the sheet shows the dates left-aligned, they are text.
Duplicates are legal. A scatter plot of 500 customers can have ten rows sharing the same x value, and each appears as its own marker stacked vertically. That matters because a dense vertical band usually signals repeated measurements, not an error.
Sorting is optional and harmless — the chart follows row pairs, so you never need to sort the table first unless you want the visual order for a legend. Two columns and a header row are enough to start, and any extra columns can be assigned as marker colors or ignored.
Nine Steps to Build the Chart in Excel 365
The fastest Excel route is four clicks: select the two numeric columns, choose Insert > Scatter, pick the marker-only subtype, then edit the axis titles. The remaining steps fix axis bounds and add a trendline so the chart communicates a relationship rather than just dots.
1: Click the header of the x column, hold Ctrl, and click the header of the y column. 2: Go to Insert > Charts group > Scatter, and choose Scatter with only Markers. 3: Right-click a data point and pick Add Trendline for a linear fit, keeping the default 2-period moving average off. 4: Right-click the value axis and open Format Axis to set the minimum and maximum so the data is not crammed into a corner. 5: Double-click the chart title and type a sentence stating what the pair means, such as "Ad spend vs. weekly signups, Q3." 6: Add axis titles via Chart Design > Add Chart Element > Axis Titles. 7: Save the workbook before converting the source range to an Excel Table, since table conversion can change references.
If all markers sit on one vertical line, the x column likely holds identical values or text coerced to a single number — check the cell format before assuming the chart is broken. If markers vanish entirely, look for the plot area being scrolled out of the frame; resetting the axis bounds in Format Axis restores them.
The Same Chart in Google Sheets in Five Actions
Google Sheets builds the plot through Insert > Chart, then a Chart type change to Scatter, and it does not require selecting columns in advance if the header row is intact. A common miss: the default chart appears as a column chart, and users stop there without switching the type dropdown.
1: Select the full table range, headers included. 2: Choose Insert > Chart; the Chart editor opens on the right. 3: In Setup, change Chart type to Scatter. 4: Set the X axis to the x column and Series to the y column. 5: Open Customize > Series to choose marker shape and size, then close the editor.
Sheets quietly skips rows where either coordinate is blank; Excel does the same by default but can show empty cells as gaps via the Hidden and Empty Cells dialog. If the chart shows a diagonal line through every point, check whether a trendline was enabled by accident and switch it off in Customize > Series.
Formatting Choices That Change What Readers See
Marker size and axis range do more interpretive work than chart title styling. In Excel, Format Data Series sets marker size; the default 5-point marker at 100% scale becomes unreadable when 400 points overlap, so shrinking to 3 and adding 40% transparency is a practical fix for dense data.
Axis scaling is the fastest way to mislead. Starting the y axis above zero exaggerates differences between points, which is acceptable when the question is ranking rather than magnitude — but label the axis so readers know the zero point was cut.
A trendline answers "is there a pattern," while a legend answers "which group is which." Adding a second series as color-coded markers requires converting the table to a pivot layout or adding a category column, and Excel uses the Category column in the chart's Select Data dialog rather than the Series values field.
Gridlines default to major units only in both Excel and Sheets; turning on minor gridlines helps readers estimate values between ticks without hovering. That single formatting choice often saves a paragraph of explanation in a report.
Adding a Trendline, R², and What a Low Fit Actually Means
A linear trendline reports an R² value between 0 and 1, and Microsoft's own guidance describes R² as the proportion of variance in y explained by x — 0.7 means 70% of the variation is accounted for, not that the model is correct. Excel displays R² only if you tick Display R-squared value on chart in Format Trendline.
Plot the trendline after confirming the shape looks linear; a curved cloud with a straight fitted line produces a low R² and a misleading "no relationship" conclusion. Consider a moving average or a polynomial fit only when the scatter genuinely curves.
A low R² on real business data is normal. Survey measures often land near 0.2–0.4, and that still supports decisions when the sample is large and the direction is consistent; what matters is whether the slope's sign matches the operational expectation.
For a quick sanity check, compare the trendline slope against a hand calculation on two extreme points. If the fitted slope contradicts the visual steepness of the point cloud, the x or y range is wrong, not the model.
Python and R: Reproducible Charts From a Dataframe
In pandas, one line plots the pair: df.plot.scatter(x="hours", y="score") draws the chart through matplotlib, and plt.show() displays it; the same data in seaborn's scatterplot accepts a hue argument to color by a third column in a single call.
Matplotlib names the two arrays explicitly: plt.scatter(x_values, y_values, s=20, alpha=0.6) sets size and transparency, and plt.xlabel("Hours studied") plus plt.ylabel("Exam score") labels the axes. Skipping the alpha value is the most common reason exported charts look like solid blobs.
R's ggplot2 version is ggplot(df, aes(x = hours, y = score)) + geom_point(), and adding + geom_smooth(method = "lm") attaches the fitted line with a confidence band that Excel does not draw by default. That band is the practical advantage of a code workflow for published analysis.
Version differences matter at the margins. Older matplotlib releases defaulted to a different marker edge color, and pandas plotting changed its default color cycle; pinning library versions in a requirements file keeps an archived chart reproducible years later. If a script that worked last year now renders oddly, check the library version before editing the data.
When the Plot Comes Out Wrong: Seven Failure Cases
Seven failures account for almost every "my scatter plot is broken" question, and each has a named cause. The diagnosis table below maps symptom to cause so you can skip the guesswork; every fix happens in the source table or axis settings, not in the chart type.
| Symptom | Likely cause | Fix |
|---|---|---|
| All points on one vertical line | x column holds identical values or text coerced to one number | Reformat x cells as numbers and re-select the range |
| Empty chart area | y column stored as text, or wrong range selected | Run Text to Columns or a VALUE() helper column |
| Points clustered in a corner | One outlier stretching the axis | Set axis maximum in Format Axis, or exclude the row |
| Diagonal line through all points | A trendline or line chart subtype enabled | Switch subtype to markers only; delete the trendline |
| Dates appearing as 1, 2, 3 | Date text not recognized as dates | Convert with DATEVALUE or format the column as Date |
| Missing rows compared to the table | Blank cell in a pair | Fill the gap or accept the drop and note it |
| Chart updates with wrong rows after edits | Range not converted to an Excel Table | Convert source range to a Table so references expand |
The blank-cell rule differs by tool and deserves its own warning. Sheets drops a row silently when either coordinate is blank; Excel omits it from the plotted series but keeps the row in the source, which means an exported CSV count will not match the marker count.
Outliers deserve a rule rather than a reflex. Removing a point changes the story, so keep it visible and shrink the axis, or add a note explaining the exclusion; a scatter plot without the outlier often hides the operational reason it exists.
Using the Table Behind the Chart to Compute What the Plot Cannot Show
A scatter plot shows shape, not totals. The same rows can answer "how much" with one added column: a formula in Excel such as =SUMPRODUCT((B2:B101>0)*(C2:C101)) counts rows meeting a threshold, and Sheets uses the equivalent SUMPRODUCT syntax with the same logic.
Suppose a 60-row table records support tickets per week against resolution hours, and every point sits in the 2–6 hour band. The chart shows a tight cluster; a computed average of resolution hours and a count of weeks above 5 hours converts that cluster into a staffing decision the dots alone cannot make.
Correlation in Excel comes from the CORREL function or the Data Analysis ToolPak's Correlation tool, which outputs a matrix; a value of 0.62 between ad spend and signups is interpretable only alongside the sample size and the time window the table covers.
Keep the computed column out of the chart selection. Adding a totals row to a scatter range plots the sum as a giant point at the far edge and wrecks the axis — a small mistake that shows up in a surprising number of shared workbooks.
Holding a Reader's Attention With Labels, Callouts, and Chart Hygiene
Excel's Data Labels option can show the y value, the x value, or a category name from an adjacent column, which turns a scatter of 30 points into a labeled map of 30 named accounts. Enable it via Chart Design > Add Chart Element > Data Labels, then Format Data Labels to position labels above markers.
With more than about 20 labeled points, clutter wins. A practical rule: label only the points above or below a threshold, either by filtering the source table to those rows for a second series or by deleting individual labels after applying them.
Titles carry more weight than the axis text most people spend time on. "Revenue vs. headcount, 12 regions, FY2025" tells a reader what the comparison is and its scope in nine words; "Chart 1" tells them nothing and forces a caption elsewhere.
Export at the size the reader will view it. A chart sized for a slide loses its 8-point axis text when pasted into a narrow document column, so set the chart's font to at least 9 points and test the export in the destination file, not just in the editor.
FAQ
Can I make a scatter plot from a table with three or more columns?
Yes, and the third column usually becomes a color or size dimension rather than another axis. In Excel, add it as a second series or apply a Category column in Select Data; in seaborn, pass it to hue. Beyond three columns, a second chart beats cramming everything into one frame.
Why does my scatter plot show only a line instead of points?
The chart subtype is set to line or the series contains a single row, so one point stretches into a line. Switch to Scatter with only Markers and confirm at least two rows are selected. A single observation renders as one marker, which is correct behavior, not a bug.
Do I need to sort the table before plotting?
No, row order is irrelevant because each marker pairs an x value with its y value on the same row. Sorting matters only for reading the source table, and sorting after charting updates the chart without changing the point positions.
How many data points can a scatter plot handle before it becomes unreadable?
Marker-based charts stay readable to roughly 1,000 points in Excel and Sheets before overplotting hides density. Beyond that, reduce marker size and raise transparency, or bucket points into a heatmap; Excel's default marker at size 5 turns solid black around 300 overlapping points.
What is the difference between a scatter plot and a line chart?
A line chart connects points in the order they appear, implying sequence, while a scatter plot places points by coordinate and implies relationship. If your x values are dates in sequence, a line is usually right; if they are measurements across units, a scatter is.
Can the x axis in a scatter plot be text, like product names?
No, Excel and Sheets scatter charts plot numeric x values, so names collapse or force a category axis. For named categories, use a column chart or assign a numeric code to each name and add data labels from the name column.
What does an R² of 0.8 on the trendline actually tell me?
It tells you that 80% of the y variation is explained by the fitted line in your sample, not that predictions are 80% accurate. R² rises with clustered data even when the slope is trivial, so report it beside the slope and the sample size.
This article is general educational information about spreadsheet and plotting software, not professional data-analysis advice. Software menus and defaults change between editions and releases, so verify current paths in your own version's help documentation. For analysis that informs a regulated decision — financial, clinical, or legal — have a qualified local professional review both the data and the interpretation before you act on the chart.