Example 1
Ad spend against sales
B8 =ROUND(CORREL(B2:B6,C2:C6),3)
Result: 0.995
Sales rise almost in step with ad spend, so the correlation is very close to 1.
B8 =ROUND(CORREL(B2:B6,C2:C6),3) returns 0.995
Returns the correlation coefficient between two sets of numbers: a value from -1 to 1 showing how closely they move together.
Syntax
=CORREL(, )
All versions of Excel, including Excel for Microsoft 365 and Excel for the web.
Try it
Edit the formula in B8 or change the inputs. The sheet recalculates as you type.
B8 =ROUND(CORREL(B2:B6,C2:C6),3) returns 0.995
CORREL measures how strongly two sets of numbers move together. It returns a number between -1 and 1. Use it to ask "does ad spend track sales?", "do hours studied predict exam scores?" or "do these two products sell together?".
Squaring the result gives the share of the variation in one series that a straight-line relationship with the other explains. A correlation of 0.995 gives 0.99, or 99%. Excel has RSQ for this directly.
Values are paired by position: the first value in array1 goes with the first in array2, and so on. The two ranges must be the same size, or CORREL returns #N/A. If a row has text, a blank or a logical value in either range, that pair is left out. If either array is empty, or all the values in one are identical, the result is #DIV/0!, because there is no variation to measure.
Because the correlation of A with B equals the correlation of B with A, the order of the arguments does not matter. That makes CORREL different from SLOPE and INTERCEPT, where order matters.
A high correlation shows that two series move together, not that one causes the other. Two series that both trend upward over time, such as sales and a growing customer base, correlate strongly whatever the link between them. Correlation also measures only straight-line relationships and is distorted by outliers. A single extreme pair can raise or lower the result a lot. Plot the data before relying on the number.
To turn a relationship into a prediction, use SLOPE, INTERCEPT or FORECAST.LINEAR. For the spread of each series, see STDEV.S.
B2:B6.C2:C6. It must hold the same number of values as array1, paired by position. Because correlation is symmetric, the order of the two arrays does not matter.Each example is a live sheet. Change the inputs or the formula and watch the result.
Example 1
B8 =ROUND(CORREL(B2:B6,C2:C6),3)
Result: 0.995
Sales rise almost in step with ad spend, so the correlation is very close to 1.
B8 =ROUND(CORREL(B2:B6,C2:C6),3) returns 0.995
Example 2
B8 =ROUND(CORREL(B2:B6,C2:C6),6)
Result: -1
Every price rise of 1 cuts sales by exactly 10 units, so the points sit on a downward straight line.
B8 =ROUND(CORREL(B2:B6,C2:C6),6) returns -1
Example 3
B8 =ROUND(CORREL(B2:B6,C2:C6)^2,3)
Result: 99.0%
The squared correlation is 0.9899, so about 99% of the variation in sales lines up with ad spend in this small sample.
B8 =ROUND(CORREL(B2:B6,C2:C6)^2,3) returns 99.0%
Example 4
B8 =CORREL(B2:B6,C2:C5)
Result: #N/A
The sales range stops one row short, so the two arrays have different numbers of values.
B8 =CORREL(B2:B6,C2:C5) returns #N/A
Solve it in the sheet. Every answer is checked, with hints if you need them.
Task 1 of 2
In B9, return the correlation between hours studied and test score.
Answer in B9.
#N/A.A moderately strong positive relationship: the two series tend to rise together, and about half of the variation (0.7 squared is 0.49) lines up with the other series. What counts as strong depends on your field.
No. `CORREL(B2:B6,C2:C6)` equals `CORREL(C2:C6,B2:B6)`. In SLOPE, INTERCEPT and FORECAST.LINEAR the order does matter.
One of the ranges has no numbers, or all of its values are identical, so there is no variation to correlate.
No. A strong correlation can come from a third factor or from a shared trend over time. It is a reason to look closer, not proof of a cause.
Square the correlation, `=CORREL(B2:B6,C2:C6)^2`, or use `=RSQ(C2:C6,B2:B6)`.
Tracks take you from the basics to modelling, one graded exercise at a time.