Skip to content

PEARSON

Returns the Pearson correlation coefficient between two sets of values: a number from -1 to 1. It gives the same result as CORREL.

Syntax

=PEARSON(, )

Statistical

All versions of Excel.

Try it

Edit the formula in D2 or change the inputs. The sheet recalculates as you type.

D2
A
B
C
D
1
Price step
Units
r
2
1
9
-0.9954
3
2
8
4
3
6
5
4
5
6
5
3
7
6
2
8

D2 =ROUND(PEARSON(A2:A7,B2:B7),4) returns -0.9954

How PEARSON works

PEARSON returns the Pearson product-moment correlation coefficient, usually written r. It measures how closely two sets of numbers follow a straight-line relationship, on a scale from -1 to 1. =PEARSON(A2:A7,B2:B7) returns -0.9954 for a price step that rises while units sold fall.

Reading the result

  • Near 1: the values rise together.
  • Near -1: one rises as the other falls.
  • Near 0: there is no straight-line relationship. A curve can still exist, so chart the data.

As a rough guide, anything beyond 0.7 in either direction is strong, 0.4 to 0.7 is moderate, and below 0.3 is weak. Treat these as rules of thumb, not a standard.

PEARSON and CORREL

PEARSON and CORREL use the same calculation and return the same result in current Excel. Use whichever name your team knows. CORREL is shorter and more common. PEARSON is useful when you follow a statistics text or a template that uses that name.

The two arguments

array1 and array2 are ranges or arrays of numbers of the same size. Pairs where either value is text, a logical value or an empty cell are ignored when the data is in cell references. Ranges of different sizes return #N/A. A series with no variation returns #DIV/0!. The order of the two arrays doesn't change the answer.

Squaring for explained variation

RSQ returns the square of PEARSON. If r is -0.9954, then R squared is 0.9909. Squaring drops the sign, so keep PEARSON when direction matters.

Common patterns

  • Strength label: =IF(ABS(PEARSON(A2:A7,B2:B7))>=0.7,"Strong","Weak").
  • Compare drivers: run PEARSON between the outcome and several candidate drivers and rank them by absolute value.
  • Check a pair before regression: use PEARSON as a quick filter before building a trend line with SLOPE and INTERCEPT.

Limits

Correlation does not show cause and effect. It measures only straight-line relationships, can be thrown off by a few extreme points, and says nothing about data outside the range you measured. Two series that both trend upward over time often correlate strongly without any link between them.

Arguments

array1
The first set of values, such as the price step.
array2
The second set of values, such as units sold. It must hold the same number of values as array1, paired by position.

Examples

Each example is a live sheet. Change the inputs or the formula and watch the result.

Example 1

A strong negative relationship

D2 =ROUND(PEARSON(A2:A7,B2:B7),4)

Result: -0.9954

Units fall almost perfectly as the price step rises, so r is close to -1.

D2
A
B
C
D
1
Price step
Units
r
2
1
9
-0.9954
3
2
8
4
3
6
5
4
5
6
5
3
7
6
2
8

D2 =ROUND(PEARSON(A2:A7,B2:B7),4) returns -0.9954

Example 2

A strong positive relationship

D2 =ROUND(PEARSON(A2:A6,B2:B6),4)

Result: 0.9808

Leads rise with spend, so r is close to 1.

D2
A
B
C
D
1
Ad spend
Leads
r
2
10
12
0.9808
3
20
15
4
30
19
5
40
20
6
50
26
7

D2 =ROUND(PEARSON(A2:A6,B2:B6),4) returns 0.9808

Example 3

No straight-line relationship

D2 =ROUND(PEARSON(A2:A7,B2:B7),4)

Result: 0.0363

A value near 0 means a straight line doesn't describe how the complaints move with the week number.

D2
A
B
C
D
1
Week
Complaints
r
2
1
5
0.0363
3
2
2
4
3
6
5
4
3
6
5
5
7
6
4
8

D2 =ROUND(PEARSON(A2:A7,B2:B7),4) returns 0.0363

Your turn.

Solve it in the sheet. Every answer is checked, with hints if you need them.

Task 1 of 2

In D2, return the Pearson correlation coefficient between the price step (A2:A7) and units sold (B2:B7).

Answer in D2.

D2
A
B
C
D
E
1
Price step
Units
r
2
1
9
3
2
8
4
3
6
Strength
5
4
5
6
5
3
7
6
2
8
9

Common mistakes

  • Correlation is not causation. Two series that both trend over time often correlate without any real link.
  • PEARSON only measures straight-line relationships. A clear curve can score near 0.
  • Ranges of different sizes return #N/A, and a series with no variation returns #DIV/0!.
  • A few extreme points can change r a lot. Chart the data first.

Questions people ask

What is the difference between PEARSON and CORREL?

In current Excel they return the same result. CORREL is the shorter and more common name.

What does a PEARSON value of -1 mean?

A perfect straight-line relationship in which one series falls as the other rises.

How do I get R squared from PEARSON?

Square the result: `=PEARSON(A2:A7,B2:B7)^2`, or use RSQ.

Why does PEARSON return #N/A?

The two ranges have different numbers of values. Make them the same size.

Learn PEARSON in a real sheet.

Tracks take you from the basics to modelling, one graded exercise at a time.