To plot X versus Y in Excel, put your X values in one column and your Y values in the column next to it, select both columns including the headers, then go to Insert > Charts and choose Scatter. An XY scatter chart is the only chart type that treats both axes as numeric values, so it is what you want whenever each point has a measured X coordinate and a measured Y coordinate. Line charts, bar charts and column charts assume the horizontal axis is just a label sequence, which is why they produce misleading result when your X values are numbers such as time, temperature, dose or distance.
Labels in the Excel ribbon can differ slightly by version, platform and region, so if a button is not where described, look for the nearest equivalent name in the same tab.
What You'll Need
- Excel for Windows, Mac, the web or mobile, with the data already entered. The steps below describe the desktop ribbon; on mobile the chart tools sit behind an icon rather than a ribbon.
- Two columns of numeric data: one for X and one for Y, ideally side by side on the same sheet.
- Optional but recommended: a header row naming both columns, which Excel uses automatically as axis titles.
- Clean values: no text notes, blank cells or units typed inside the same cells as the numbers.
Step-by-Step
- Lay out the data. Put all X values in one column, for example column A, and the matching Y values in the next column, column B. Each row should be one pair of measurements: the X in A2 goes with the Y in B2, the X in A3 goes with B3, and so on. Do not sort only one column, or you will break the pairings.
- Label the top of each column with a header, such as "Time (s)" in A1 and "Temperature (C)" in B1. Keep units in the header rather than in the cells, so the numbers stay numeric.
- Select both columns, including the header row. The quick way is to click the first header cell and drag, or click A1 and then hold Shift while clicking the last cell in column B. Selecting extra empty columns is fine as long as they have no stray data.
- Open the Insert tab on the ribbon and find the Charts group.
- Click the Scatter icon, which shows dots on a pair of axes, and pick the first option: Scatter with only markers. Start simple; you can add lines later. Excel inserts the chart on the sheet with your X values along the horizontal axis and Y values along the vertical axis.
- Check the axis mapping immediately. If the chart looks mirrored or the axes seem swapped, click the chart, then go to Chart Design > Select Data. In the dialog, edit the series, set the Series X values to your X column and the Series Y values to your Y column. This dialog is where every later data change happens too.
- Add axis titles. Click the chart, choose the plus sign button that appears at its top right corner, tick Axis Titles, then type your real labels into the placeholder boxes. Use the header names so readers know what the numbers mean.
- Format the numbers on the axes if needed. Right-click an axis and choose Format Axis to set the minimum, maximum, major unit or number format. Setting a sensible minimum is often the difference between a readable plot and a squashed cloud of points near the edge.
- Resize and position the chart. Drag a corner handle to resize, and drag the chart itself to move it. For a clean page, move the chart to its own sheet with Chart Design > Move Chart, then choose New sheet.
- Add a trendline if you want to show a relationship. Right-click any data point and choose Add Trendline. In the pane, choose Linear for a straight-line fit and tick Display Equation on chart and Display R-squared value on chart if you need the fit quality.
- Save the workbook. The chart is stored in the file, so the plot updates automatically whenever you change the underlying numbers.
Common Mistakes
The single most common error is choosing a Line chart instead of a Scatter chart. A line chart spaces every point evenly along the horizontal axis regardless of its actual X value, so data with uneven gaps in time or dose gets distorted. If your existing chart has category labels along the bottom, delete it and start again with Scatter.
Second, people select the columns in the wrong order. Excel plots the first numeric series on the X axis and the second on the Y axis only when it is set up correctly; when in doubt, confirm the mapping in Select Data rather than trusting the visual result.
Third, storing numbers as text, usually because a cell contains a unit or an apostrophe, leaves points missing from the chart. Numeric values in Excel align to the right of the cell by default; if yours sit on the left, they are probably text. Convert them with the Text to Columns tool or by retyping without the stray characters.
Fourth, blank cells and error values break the series. Excel may drop those rows or join across them, making the shape of the data misleading. Clear them or remove the rows before charting.
Finally, forgetting to sort the data is a real risk with scatter data, but sorting one column only is worse: it separates X from Y and produces nonsense. If you must sort, select the whole block first and sort both columns together.
Tips
Use markers that suit your data density: small dots when you have hundreds of points, larger shapes when you have a dozen. You can change the marker style by right-clicking a point and choosing Format Data Series.
Give the chart a single clear title in plain language, not the default wording Excel guesses from the headers. A title like "Weekly energy use against outdoor temperature" tells the reader what to look for.
If you have repeated measurements, consider adding a legend and naming each series in Select Data. Multiple series on one scatter chart are useful for comparing groups, but keep it to two or three or the plot becomes hard to read.
For reproducible analysis, keep the raw data and the chart on separate sheets and never overwrite the original numbers. If you need to test a transformation such as a logarithm, do it in a new helper column so the source stays intact.
Troubleshooting
If the chart is empty or only shows one point, the selected range probably does not include the rows you expect, or Excel read the data as text. Reselect the range carefully and check the alignment of the cells.
If the X axis runs from zero upward when your data starts much higher, right-click the axis, open Format Axis and set the minimum closer to your lowest value. If the axis is reversed, look for the Values in reverse order option in the same pane and untick it.
If the axis labels are dates or text you did not intend, confirm the column really holds numbers. Date serial numbers can look numeric but still produce odd spacing.
If the trendline equation shows a strange symbol or number format, it is usually a locale issue with the decimal separator; change the number format of the cells or read the equation with that in mind.
If the chart does not update after you change the data, check that the chart range still covers the edited rows. Adding new rows below the range does not automatically extend it: resize the source range in Select Data or convert the range to an Excel Table first, which expands automatically.
If a button described here is missing, update Excel to the current version through your normal update channel and check again, and remember that the web and mobile versions offer fewer chart formatting options than the desktop app.
Frequently Asked Questions
What is the difference between an XY scatter chart and a line chart?
A scatter chart plots both values as numbers and spaces points according to their X values. A line chart treats the horizontal axis as evenly spaced categories, even when those categories are numbers.
Should the X column come first or the Y column?
Convention is X on the left and Y on the right, and Excel expects that order when it inserts a scatter chart. You can swap them later in Select Data.
Can I plot X versus Y from two columns that are not next to each other?
Use Select Data and set the Series X values and Series Y values separately; they do not have to be adjacent columns.
How do I add a second Y series for comparison?
Select the chart, open Select Data, and use Add to create a new series with its own X and Y ranges. Each series appears as its own colour.
Why do some of my data points not appear?
The most common cause is that those cells contain text or are blank. Excel skips or misreads non-numeric values.
Does the scatter chart work the same on Excel for the web and mobile?
The chart type exists, but formatting options are more limited there. For full control over axes, labels and trendlines, use the desktop version.