Correlation measures how strongly two things move together — ad spend vs sales, temperature vs ice-cream orders. CORREL returns a single number from −1 to +1 that captures the relationship.
+1 = perfect positive, 0 = no linear relationship, −1 = perfect negative.
The example
Ad spend vs sales — do they rise together?
| A | B | |
|---|---|---|
| 1 | Ad spend | Sales |
| 2 | $10 | $120 |
| 3 | $20 | $170 |
| 4 | $30 | $210 |
| 5 | $40 | $280 |
| 6 | Correlation: | 0.99 |
The formula
The correlation between spend and sales:
How it works
One number summarizes the relationship:
CORRELcompares how the two columns vary together, scaled to a value between −1 and +1.- Here spend and sales climb together almost perfectly —
0.99, a strong positive correlation. - A value near
0means no linear relationship; near−1means as one rises the other falls. - Square it for R² (
=RSQ()) — the share of variation in one column explained by the other.
Correlation is not causation. A high CORREL means the two move together — not that one causes the other. A hidden third factor (or coincidence) can drive both.
Try it: interactive demo
Adjust the last sales value; watch the correlation change.
Variations
R-squared
Share of variance explained:
Correlation matrix
Pairwise CORREL across several columns builds a matrix (or use the Data Analysis ToolPak).
Slope of the relationship
How much Y changes per unit of X:
Pitfalls & errors
Correlation captures only linear relationships. A strong curved (U-shaped) link can show a CORREL near 0. Always eyeball a scatter plot too.
Ranges must be the same size and paired row-by-row. Mismatched lengths return #N/A.
Outliers distort it. A single extreme pair can pull the correlation up or down dramatically.
Practice workbook
Frequently asked questions
How do I calculate correlation in Excel?
How do I get R-squared?
Does a high correlation prove causation?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class