To build a scatter graph in Excel, highlight two columns of numerical data, go to the Insert tab, and select the Scatter (X, Y) chart icon. This process creates a visual representation of the relationship between two variables, allowing you to identify correlations, trends, and outliers within your dataset.

What You'll Need

  • Microsoft Excel installed on your PC or Mac.
  • A dataset consisting of two sets of numerical values (one for the X-axis and one for the Y-axis).
  • Data organized in adjacent columns for the easiest setup.

Step-by-Step

  1. Organize Your Data: Arrange your data in two columns. Place the independent variable (the cause or the value you control) in the left column and the dependent variable (the effect or the value you are measuring) in the right column. Excel automatically assigns the left column to the X-axis and the right column to the Y-axis.
  2. Select the Data: Click and drag your mouse to highlight the cells containing the numerical data. Include the column headers (labels) in your selection so that Excel can automatically name your axes and legend.
  3. Insert the Chart: Navigate to the Insert tab on the top ribbon. In the Charts group, click the Insert Scatter (X, Y) or Bubble Chart icon (it looks like a series of dots on a graph).
  4. Choose the Chart Type: From the dropdown menu, select the first option, Scatter. This will place individual markers for each data point without connecting them with lines.
  5. Add Axis Titles: Click on the chart to reveal the Chart Design and Format tabs. Go to Chart Design > Add Chart Element > Axis Titles. Select both Primary Horizontal and Primary Vertical. Click the text boxes that appear on the graph to type in the names of your variables.
  6. Label the Chart: Click the default "Chart Title" text box at the top of the graph and type a descriptive name that explains what the relationship between the two variables represents.
  7. Adjust the Scale (Optional): If your data points are clustered in one area, right-click on the numbers of the X or Y axis and select Format Axis. In the pane that opens, you can change the Minimum and Maximum bounds to zoom in on your data.
  8. Add a Trendline (Optional): To see the general direction of the data, click on any single data point in the chart to select the series. Right-click and select Add Trendline. Choose Linear to see a straight line of best fit.

Common Mistakes

  • Including Non-Numerical Data: Attempting to create a scatter plot with text in the data range (other than the headers) will often result in an empty chart or an error. Ensure only numbers are in the plotted area.
  • Swapping X and Y: Putting the dependent variable in the left column. If your graph looks "sideways" or the logic is reversed, you will need to swap your columns or manually change the series data.
  • Selecting Too Many Columns: If you select three or more columns of numbers, Excel may try to plot multiple data series on the same graph, which can make the chart cluttered and confusing.
  • Using a Line Chart Instead: A common error is choosing a "Line Chart" instead of a "Scatter Chart." A line chart treats the X-axis as labels (categories), whereas a scatter chart treats the X-axis as a numerical scale.

Tips

  • Use a Trendline Equation: When adding a trendline, check the box for Display Equation on chart in the Format Trendline pane. This gives you the mathematical formula for the relationship between your variables.
  • Change Marker Style: If you have overlapping points, right-click a data point, select Format Data Series > Fill & Line > Marker. You can change the marker size or make the fill semi-transparent to see where points overlap.
  • Clean Data First: Remove any empty rows or columns within your data range before selecting it, as gaps can cause the graph to skip points or create breaks in the visual flow.

Troubleshooting

If the graph does not look as expected, try these steps in order:

  • Check Data Types: Ensure your numbers are not formatted as "Text." If you see small green triangles in the corners of your cells, select the cells, click the warning icon, and choose Convert to Number.
  • Verify Axis Assignment: If the X and Y axes are swapped, right-click the chart, choose Select Data, click Edit under Legend Entries (Series), and manually re-select the ranges for the X and Y values.
  • Reset the Scale: If the dots are all bunched up in one corner, right-click the axis > Format Axis and set the Minimum bound to a number closer to your lowest data point rather than zero.
  • Update Data Range: If you added new data to your table and it isn't appearing, click the chart and drag the colored boundary boxes in your spreadsheet to include the new rows.

Frequently Asked Questions

Can I plot more than one set of data on the same scatter graph?

Yes. Right-click the chart, choose Select Data, and click Add. You can then select a new set of X and Y values for a second series, which will appear in a different color.

Why is my scatter plot showing a line instead of dots?

You likely selected "Scatter with Smooth Lines" or "Scatter with Straight Lines" instead of the basic "Scatter" option. To fix this, right-click the chart, go to Change Chart Type, and select the first Scatter option.

How do I remove the gridlines from my graph?

Click on any of the gridlines in the chart area and press the Delete key on your keyboard, or go to Chart Design > Add Chart Element > Gridlines and uncheck the boxes.

Can I use a scatter graph for non-numerical data?

No. Scatter graphs require numerical values for both axes to plot coordinates. If you have categories (like "Red," "Blue," "Green"), a Bar Chart or Column Chart is the correct choice.

How do I change the color of the markers?

Right-click on any data point, select Format Data Series, go to the Fill & Line (paint bucket) icon, expand the Marker section, and change the Fill color.