Statistical All versions ◉ 28 views

=PEARSON()

Returns the Pearson product moment correlation coefficient, r, a dimensionless index that ranges from -1.0 to 1.0 inclusive and reflects the extent of a linear relationship between two data sets.

Applies To: Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016
=PEARSON(array1, array2)
Hover argument names in the table for details.
Output typeNumber
Popularity10 / 100
VolatileNo
Dynamic ArrayNo
Download sample .xlsx ▦ Try in Playground Dedicated file for this function — safe & lightweight · sample data + live formulas
Share:

⬇ Download Sample Workbook

A dedicated .xlsx for =PEARSON() with Persian sample data & live formulas — open in Excel and practice.

  • Sheet “Sample” — data table + formula in place
  • Sheet “Guide” — syntax, arguments & tips from this page
  • Instant & secure (token + rate limit)
Download PEARSON.xlsx ~ 8–12 KB · No macros

⇪ Share

Send this function to friends

Quiz this function

%d questions — syntax, example & errors — test yourself!

◧ Arguments

ArgumentTypeRequiredDescription
array1 Array Required A set of independent values.
array2 Array Required A set of dependent values.

▣ Examples

▦ Data
CellValue
A2 Independent values
B2 Dependent values
A3 9
B3 10
A4 7
B4 6
A5 5
B5 1
A6 3
B6 5
A7 1
B7 3
A8 Independent values
B8 Dependent values
A9 9
B9 10
A10 7
B10 6
A11 5
B11 1
A12 3
B12 5
A13 1
B13 3
Pearson product moment correlation coefficient for the data sets above (0.699379) =PEARSON(A3:A7,B3:B7)
Result: 0.699379

§ Remarks

  • The arguments must be either numbers or names, array constants, or references that contain numbers.
  • If an array or reference argument contains text, logical values, or empty cells, those values are ignored; however, cells with the value zero are included.
  • If array1 and array2 are empty or have a different number of data points, PEARSON returns the #N/A error value.
  • The formula for the Pearson product moment correlation coefficient, r, is: where x and y are the sample means AVERAGE(array1) and AVERAGE(array2).

✦ Tips

  • The arguments must be either numbers or names, array constants, or references that contain numbers.
  • If an array or reference argument contains text, logical values, or empty cells, those values are ignored; however, cells with the value zero are included.
  • The formula for the Pearson product moment correlation coefficient, r, is: where x and y are the sample means AVERAGE(array1) and AVERAGE(array2).

⚠ Common Errors

#N/A If array1 and array2 are empty or have a different number of data points, PEARSON returns the #N/A error value.
Fix: Make the two ranges the same size

💬 Comments & Q&A 0 approved

🔒 Your comment will be published after review.

Share your thoughts — visible after admin approval

No comments yet — be the first!

✍️ Add comment / question

captcha
🔒 Your comment will be published after review.