Returns the Pearson correlation coefficient of two given sets of data.
Syntax
x: The cell range containing the first set of data. Eg., A2:A6
Examples
|
Formula |
Result |
|
=CORREL(A2:A6;B2:B6) |
0.826077806 |
|
=CORREL(A2:A4;B2:B4) |
0.986241383 |
|
=CORREL({1;2;3};{5;12;8}) |
0.427121098 |
Possible Errors
|
Errors |
Meaning |
|
#N/A! |
|
|
#NAME! |
|
|
#VALUE! |
|
|
#REF! |
|
|
#N/A! |
|
|
#DIV/0! |
|
Similar Functions