ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Math
  3. Find the Correlation Between Two Columns in Excel

Find the Correlation Between Two Columns in Excel

By ExcelReady Team·Updated November 3, 2026·6 min read

The short answer

To find the correlation between two columns in Excel, type =CORREL(B2:B7,C2:C7) with one column in each argument. The result is a number from -1 to +1. Close to +1 means both columns rise together, close to -1 means one falls as the other rises, and close to 0 means no straight-line link.

Key takeaways

  • =CORREL(range1, range2) returns the Pearson correlation coefficient, a number from -1 to +1.
  • The sign shows the direction and the size shows the strength: 0.88 is a strong positive link, -0.2 a weak negative one.
  • Both ranges must have the same number of cells, and each row must hold a matching pair.
  • Always look at a scatter chart too: correlation only measures straight-line patterns and is easily pulled by outliers.
  • A high correlation does not prove that one column causes the other.
On this page+
  1. What correlation means
  2. How to use CORREL in Excel
  3. How to read a negative correlation
  4. How Excel calculates correlation
  5. Check the pattern with a scatter chart
  6. Common mistakes and limits
  7. Correlate many columns at once
  8. Practise it

To find the correlation between two columns in Excel, use =CORREL(range1, range2). It returns one number from -1 to +1 that tells you how closely the two columns move together in a straight line. This guide is for analysts, students and job seekers who need to answer "are these two things related?" quickly, and it shows how to calculate correlation in Excel, read the result, and check it properly.

What correlation means#

Correlation measures how strongly two sets of numbers move together. Excel's CORREL function gives the Pearson correlation coefficient, usually written as r.

Value of rWhat it meansExample
+1Perfect positive link: points sit on a rising straight lineHours worked and pay at a fixed hourly rate
Around +0.7 to +0.99Strong positive linkAd spend and sales, often
Around 0No straight-line linkShoe size and exam score
Around -0.7 to -0.99Strong negative linkPrice and units sold, often
-1Perfect negative link: points sit on a falling straight lineFuel left and kilometres driven, at a steady rate

The bands in the middle are a common rule of thumb, not a fixed law. A value of 0.5 might be strong in one field and weak in another.

How to use CORREL in Excel#

CORREL takes two ranges of the same size and compares them row by row. The syntax is:

Excel formula
=CORREL(array1, array2)

Here is six months of ad spend (in thousands) and sales (in thousands) in A1:C7:

ABC
1MonthAd spendSales
2Jan224
3Feb322
4Mar531
5Apr433
6May630
7Jun841
  1. Click an empty cell, such as E2.
  2. Type =CORREL(B2:B7,C2:C7) and press Enter.
  3. Format the cell to two decimal places if you like.

The result is about 0.88. That is a strong positive correlation: months with more ad spend tended to have higher sales. The order of the two ranges doesn't matter, so =CORREL(C2:C7,B2:B7) gives the same answer.

CORREL works in every current version of Excel, on Windows and Mac. The older PEARSON function returns exactly the same number.

How to read a negative correlation#

A negative result means that as one column goes up, the other goes down. Take a product tested at six prices:

Price101214161820
Units sold959280787064

With prices in B2:B7 and units in C2:C7, =CORREL(B2:B7,C2:C7) returns about -0.99. The minus sign gives the direction (higher price, fewer units) and 0.99 gives the strength (very close to a perfect straight line).

Strength is about the size of the number only. A correlation of -0.8 is just as strong as +0.8; it simply runs the other way.

How Excel calculates correlation#

Correlation compares how far each value sits from its own column's average. If both values in a row are above their averages, or both are below, the row pushes r up. If one is above and the other below, it pushes r down. The result is then scaled so it always lands between -1 and +1.

You can build the same number with SUMPRODUCT, which is a good way to see what CORREL does:

Excel formula
=SUMPRODUCT((B2:B7-AVERAGE(B2:B7))*(C2:C7-AVERAGE(C2:C7)))/SQRT(SUMPRODUCT((B2:B7-AVERAGE(B2:B7))^2)*SUMPRODUCT((C2:C7-AVERAGE(C2:C7))^2))

On the ad data this also gives 0.88. The top half adds up the paired distances from the average. The bottom half divides by the spread of each column, which is closely related to the standard deviation. If averages are new to you, start with AVERAGE, MIN and MAX and when to use average vs median.

Check the pattern with a scatter chart#

Correlation only measures straight-line patterns, so always look at the data before you trust the number. A scatter chart is the quickest check:

  1. Select both columns of numbers, such as B1:C7.
  2. Go to Insert > Charts > Scatter and pick the first scatter style.
  3. Click a point, then add a Linear trendline (right-click a point and choose Add Trendline).
  4. In the trendline options, tick Display R-squared value on chart.

R-squared is r multiplied by itself. For the ad data, 0.88 × 0.88 is about 0.77, and =RSQ(C2:C7,B2:B7) returns the same value. You can read it as "about 77% of the variation in sales lines up with the variation in ad spend."

Use a scatter chart for this, not a line chart. A line chart is built for values over time, and it spaces its points evenly instead of by their real numbers.

Common mistakes and limits#

Most wrong correlations come from the data, not the formula. Watch for these:

  • Rows out of line. CORREL pairs B2 with C2, B3 with C3, and so on. If one column is sorted and the other isn't, the result is meaningless.
  • Ranges of different sizes. =CORREL(B2:B7,C2:C8) returns #N/A. Both ranges need the same number of cells.
  • No variation. If every value in one column is the same, CORREL returns #DIV/0!.
  • Text and blanks. CORREL ignores text, TRUE/FALSE and empty cells, but zeros count. A missing value typed as 0 changes the answer.
  • Outliers. One extreme row can push r a long way. Check the scatter chart and the median against the average when a value looks odd.
  • Curved patterns. Data that rises and then falls can have an r near 0 even though the link is strong. The scatter chart shows this; CORREL does not.
  • Causation. Ice-cream sales and sunburn cases rise together because of sunny weather, not because one causes the other.

Correlate many columns at once#

To compare more than two columns, build a small table of CORREL formulas, or use the Analysis ToolPak. Turn it on under File > Options > Add-ins (Windows) or Tools > Excel Add-ins (Mac), tick Analysis ToolPak, then choose Data > Data Analysis > Correlation. It writes a grid that shows the correlation of every pair of columns. The grid holds fixed values, so run it again if the data changes.

Correlation is a standard interview topic for analyst roles. The guide to Excel skills for data analysts shows where it fits next to lookups, pivots and summary statistics.

Practise it#

Correlation is built on averages, so the fastest way to get comfortable is to practise the basics. Practise AVERAGE, MIN and MAX in a live spreadsheet, then compare MEDIAN and MODE in the next lesson: you type the formulas and the sheet checks them instantly. Then try the exercise on this page and build the 0.88 correlation yourself.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

The practice sheet has no CORREL, so build the coefficient yourself. Columns D and E already hold each month's distance from its column average. In B9, type =ROUND(SUMPRODUCT(D2:D7,E2:E7)/SQRT(SUMPRODUCT(D2:D7,D2:D7)*SUMPRODUCT(E2:E7,E2:E7)),2) and press Enter.

fx
ABCDEF
1
Month
Ad spend
Sales
Spend gap
Sales gap
2
Jan
2
24
-2.666666667
-6.166666667
3
Feb
3
22
-1.666666667
-8.166666667
4
Mar
5
31
0.3333333333
0.8333333333
5
Apr
4
33
-0.6666666667
2.833333333
6
May
6
30
1.333333333
-0.1666666667
7
Jun
8
41
3.333333333
10.83333333
8
9
Correlation
10
11
12

Tip: Top: SUMPRODUCT of the two gap columns. Bottom: the square root of (D gaps times D gaps) times (E gaps times E gaps). Round to 2 places. The answer is 0.88.

Practise this in a lesson

LessonAVERAGE, MIN and MAXSummarize a list with its average, smallest and largest values.LessonMEDIAN and MODESee how one outlier skews an average, and describe typical values with MEDIAN and MODE.

Frequently asked questions

What is the formula for correlation in Excel?

+

Use =CORREL(array1, array2), for example =CORREL(B2:B7,C2:C7). It returns the Pearson correlation coefficient. PEARSON(array1, array2) gives exactly the same result.

What is a good correlation value?

+

It depends on the field, but a common rule of thumb is that values above 0.7 or below -0.7 are strong, values between 0.3 and 0.7 (or -0.3 and -0.7) are moderate, and values near 0 are weak.

Why does CORREL return #DIV/0!?

+

One of the columns has no variation, for example every value is the same, or a range is empty. Correlation divides by the spread of each column, so a spread of zero causes the error.

How do I get R squared in Excel?

+

Use =RSQ(known_ys, known_xs), or square the correlation with =CORREL(B2:B7,C2:C7)^2. On a scatter chart you can also add a linear trendline and tick Display R-squared value on chart.

Does correlation mean causation?

+

No. Two columns can move together because a third factor drives both, or by chance in a small sample. Correlation shows that a pattern exists, not why it exists.

Sources

  • SUMPRODUCT function - Microsoft Support
  • AVERAGE function - Microsoft Support
  • SQRT function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 3, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. What correlation means
  2. How to use CORREL in Excel
  3. How to read a negative correlation
  4. How Excel calculates correlation
  5. Check the pattern with a scatter chart
  6. Common mistakes and limits
  7. Correlate many columns at once
  8. Practise it

Keep reading

Math· 7 min read

How to Calculate Standard Deviation in Excel

To calculate standard deviation in Excel, use =STDEV.S(B2:B7) when your data is a sample, or =STDEV.P(B2:B7) when it covers the whole group you care about. Standard deviation measures how far values typically sit from the average. A small result means the values are close together; a large one means they are spread out.

Math· 5 min read

AVERAGE, MIN and MAX in Excel With Examples

AVERAGE returns the mean of a range, MIN returns the smallest number and MAX returns the largest. All three take the same input: =AVERAGE(B2:B6), =MIN(B2:B6) and =MAX(B2:B6). They skip empty cells and text but count zeros, and =MAX(B2:B6)-MIN(B2:B6) shows how spread out the values are.

Data tools· 6 min read

How to Make a Line Chart in Excel

To make a line chart in Excel, put dates or months in the first column and values in the next, with headers in row 1. Select the data, go to Insert > Insert Line or Area Chart, and pick Line or Line with Markers. Add a chart title and axis titles, and use one line per series to compare trends over time.

More on math

  • How to Calculate Cost per Unit in Excel
  • COUNT, COUNTA and COUNTBLANK: Counting Cells in Excel
  • How to Calculate Cumulative Percentage in Excel
  • How to Calculate Customer Lifetime Value (CLV) in Excel
  • Calculate Depreciation in Excel: Straight-Line, DB and DDB
  • Descriptive Statistics in Excel for Any Column of Numbers
All math articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free