Quick Answer

PEARSON Function

Pearson correlation coefficient between two arrays (same as CORREL).

✓ Excel✓ Google SheetsExcel All versions

Syntax

PEARSON
(array1, array2)

Parameters

ParameterDescriptionRequired
array1The first set of independent (or paired) numeric values.Required
array2The second set of numeric values, the same length as array1.Required

Basic Example

Correlation between two paired series

=PEARSON({2,3,5,7,9},{1,2,3,4,5})
Result0.993883

Identical to CORREL on the same data; the coefficient is near 1, a strong positive linear relationship.

Advanced Examples

Example 1: Correlation from ranges

Comparing temperature to ice-cream sales

Both ranges must have the same number of points

=PEARSON(B2:B13,C2:C13)
Result: Correlation coefficient between -1 and 1
Pairs each row; mismatched sizes cause #N/A. The result equals CORREL on the same inputs.

Example 2: Verifying equivalence with CORREL

Two function names, one answer

Show the two functions return the same value

=PEARSON(A2:A20,B2:B20) and =CORREL(A2:A20,B2:B20)
Result: Identical coefficient
PEARSON and CORREL use the same Pearson formula, so they always agree.

How PEARSON Works

PEARSON computes r = Σ((x - x̄)(y - ȳ)) / sqrt(Σ(x - x̄)² · Σ(y - ȳ)²). The result is bounded by -1 and 1. It is mathematically and functionally identical to CORREL; text, logicals, and empty cells are ignored in each array.

1
Arrange paired data
Put the two related series in equal-length ranges.
2
Enter formula
Type =PEARSON(array1, array2).
3
Read the coefficient
Values near 1 or -1 indicate strong linear association.

Important Notes & Limitations

  • Measures only linear association, like CORREL; non-linear links may show ~0.

  • Both arrays must contain the same number of data points, or #N/A is returned.

  • If either array has zero variance, the function returns #DIV/0!.

Common Errors & Fixes

#N/AThe two arrays have different numbers of data points.

Fix: Make sure array1 and array2 are the same length.

#DIV/0!One of the arrays has no variance (all values equal).

Fix: Use data with variation, or check for constant columns.

Download Practice File

Practice PEARSON with Real Data

Download a sample CSV file with pre-populated data and practice exercises for the PEARSON function. Works in both Excel and Google Sheets.

Works in Google SheetsCompatible with ExcelIncludes exercises

File format: CSV (comma-separated values) - opens in Excel, Google Sheets, and all spreadsheet apps

Frequently Asked Questions

Is PEARSON the same as CORREL?
Yes. Both Excel and Google Sheets return the identical Pearson coefficient for the same inputs.
Why does PEARSON exist if it equals CORREL?
It is provided for compatibility and familiarity with statistical notation; the result is the same.
What does a correlation of 0 mean?
No linear relationship; a non-linear relationship may still be present.