Correlation Chart in Excel: Step-by-Step Guide
In this article
A correlation chart in Excel lets you see how strongly two sets of numbers move together, and you can build one in a few minutes using a scatter chart plus Excel's built-in CORREL function. There is no single "correlation chart" button; instead you plot one variable on the X axis and the other on the Y axis as a scatter (XY) chart, then add a trendline and calculate the correlation coefficient so the picture and the number back each other up. The steps below use Excel on Windows and Mac desktop; the mobile apps can view a finished chart but are not practical for building one.
What You'll Need
- Excel for Microsoft 365, Excel 2019 or later on desktop (Windows or Mac). Labels and ribbon positions can differ slightly by version and region.
- Two columns of paired data, one row per observation, with the same number of rows in each column.
- Numerical values only in the two data columns, with no text such as "n/a" or "N/A" mixed in, and no merged cells in the data range.
- A header row for column names, if you want the chart to label the axes automatically.
Step-by-Step
- Lay the data out cleanly. Put your first variable in one column (for example A) and the second in the next column (for example B), with a header in row 1 and data starting in row 2. Each row must be a matched pair: the value in A2 belongs with the value in B2. If your pairs came from separate sources, sort or align them by a common key such as a date or ID before you begin, because a mismatch silently produces a meaningless correlation.
- Delete or fix bad cells. Correlation cannot handle blanks, text or error values in the middle of the range. Either remove those rows entirely or replace them with a valid number. A single stray text cell can turn a CORREL result into an error.
- Select the two data columns. Highlight from the first data cell in column A through the last data cell in column B, headers included if you want them. Do not select whole columns, because Excel will try to plot the empty cells below your data and flatten the chart.
- Insert a scatter chart. Go to the Insert tab, find the Charts group, and click the scatter icon. Choose the first option, "Scatter" (markers only, no connecting lines). Excel plots the left-hand column on the X axis and the right-hand column on the Y axis, so column order matters: put the variable you think is the cause or input in the left column.
- Check the axes are the right way round. If the chart looks reversed, click the chart, then use Chart Design > Select Data and swap the X and Y series ranges. If points cluster in a straight diagonal line you have probably selected a column against itself; reselect the correct range.
- Label the axes. Click the chart, then the plus button (Chart Elements) at its top-right corner, and tick Axis Titles. Type a clear name for each axis so a reader knows which variable is which. Add a chart title the same way.
- Add a trendline. Click any data point to select the series, then right-click and choose Add Trendline. A linear trendline is the right choice for a correlation chart. In the Format Trendline pane, tick "Display Equation on chart" and "Display R-squared value on chart" if you want the fit quality shown on the plot.
- Calculate the correlation coefficient. In an empty cell outside your data, type
=CORREL(A2:A50,B2:B50), replacing the ranges with your actual ones. Press Enter. The result is a number from -1 to 1: close to 1 means a strong positive relationship, close to -1 a strong negative one, and close to 0 means little or no linear relationship. CORREL and PEARSON give the same value; use whichever you prefer. - Interpret the number honestly. As a rough guide, an absolute value around 0.7 or higher is strong, 0.4 to 0.7 moderate, and below 0.4 weak, but these thresholds are conventions, not rules. A coefficient near zero with a curved pattern on the chart still means the variables are related, just not linearly.
- Tidy the chart for presentation. Remove gridlines if they clutter the plot, set the marker fill to a solid colour, and adjust the axis minimum and maximum so the data fills the plot area instead of sitting in one corner. Right-click an axis and choose Format Axis to set the bounds.
Common Mistakes
Reading causation into the chart. A tight diagonal line tells you the two variables move together, not that one causes the other. Always phrase your finding as an association.
Mismatched rows. Sorting one column without sorting its partner destroys the pairing while still producing a plausible-looking number. If you sort, sort the whole table at once using Data > Sort.
Plotting a variable against itself or a near-duplicate. Two columns that measure almost the same thing will always correlate strongly and tell you nothing new.
Ignoring outliers. One extreme point can drag the coefficient from near zero to near 0.9. Look at the scatter chart before trusting the number; that is exactly what the chart is for.
Connecting the points with a line. A line chart implies a sequence over time and connects points in row order, which misrepresents a correlation. Use a scatter chart.
Text mixed into numeric columns. Numbers stored as text, often imported from other systems, silently break CORREL. Select the column and use Data > Text to Columns, finishing with the General format, to convert them.
Tips
Use the R-squared value from the trendline as a second reading: it is the correlation coefficient squared and tells you what share of the variation in one variable is associated with the other. Keep your raw data on a separate sheet from the chart so the chart stays clean when you add rows. If you need a quick overview of many variables at once, Excel's Data Analysis ToolPak includes a Correlation tool that produces a full correlation matrix; enable it through File > Options > Add-ins > Analysis ToolPak, then run it from the Data tab. Colour-code points by category if you suspect your data contains distinct groups, since a single correlation can hide two separate clusters. Finally, save a copy before experimenting so you can always return to a working version.
Troubleshooting
CORREL returns #N/A: the two ranges are different sizes, or one contains text or blanks. Check that both ranges cover exactly the same rows.
CORREL returns #DIV/0!: one of the ranges has no variation at all, for example every value is identical. A constant column cannot correlate with anything.
The chart shows a single dot or nothing: you have selected cells but Excel is plotting the wrong range, or the data is text. Reopen Chart Design > Select Data and confirm the series ranges, then verify the cells are numbers, not text.
Points are all bunched in one corner: one axis includes very large values while the other is small, or an axis starts at zero when it does not need to. Adjust the axis bounds under Format Axis.
The trendline option is greyed out: make sure you have clicked a data marker, not the chart background, before right-clicking.
Numbers are right but the chart looks wrong: your X and Y series may be swapped. Swap them in Select Data and re-check the axis titles.
Frequently Asked Questions
What is the difference between CORREL and PEARSON in Excel?
Nothing meaningful in normal use. Both calculate the Pearson correlation coefficient and return the same value for the same data.
Can I make a correlation chart with more than two variables?
You can plot several series on one scatter chart, but each pairing is clearer as its own chart. For an overview of many variables, use the Correlation tool in the Analysis ToolPak to build a matrix.
Does a high correlation mean one thing causes the other?
No. Correlation measures how closely two variables move together. Only a controlled experiment or careful causal analysis can support a causation claim.
Why does my chart show a curve instead of a line?
The relationship is probably non-linear. A linear correlation coefficient will look weak even though a clear pattern exists; add a non-linear trendline fit to see the shape.
Can I build a correlation chart in Excel on my phone?
You can view and edit charts already in a workbook in the Excel mobile apps, but inserting a full scatter chart with a trendline is far easier on desktop. Build it there and the chart travels with the file.