FormulaGenius
Statistical

Correlation Between Datasets

Calculate the Pearson correlation coefficient between two datasets. Values range from -1 (perfect negative correlation) to +1 (perfect positive correlation). 0 means no linear relationship.

Excel Formula

=CORREL(A2:A100, B2:B100)

Step-by-Step Explanation

1

CORREL calculates the Pearson correlation coefficient

2

A2:A100 is the first dataset

3

B2:B100 is the second dataset

4

+1 means perfect positive correlation

5

-1 means perfect negative correlation

6

0 means no linear correlation

Example

Ad Spend (A)Sales (B)Correlation
$1,000$10,000
$2,000$18,000
$3,000$28,000
$4,000$35,0000.99

Result: =CORREL(A2:A5,B2:B5) → 0.99 (strong positive correlation)

Common Variations

R-squared

=RSQ(B2:B100,A2:A100)

Coefficient of determination (correlation²)

With PEARSON

=PEARSON(A2:A100,B2:B100)

Same as CORREL

Need a Custom Version?

Use our AI generator to create a formula tailored to your specific data and requirements.

Try It with AI →

Related Templates