ReferenceFunctionsStatistics Functions
CORREL
Returns the Pearson correlation coefficient between two numeric arrays.
Summary
CORREL measures linear relationship strength from -1 (perfect inverse) to 1 (perfect
direct).
Remarks
- Both arrays must produce the same number of numeric values.
- Returns
#N/Awhen array lengths differ. - Returns
#DIV/0!when either series has zero variance.
Examples
Perfect positive linear correlation
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
1
Perfect negative linear correlation
Grid
| Cell | Value | |
|---|---|---|
Formula
=
Result
Not evaluated yet.
Expected
-1
Related functions
Runtime metadata
Category
Statistics
Signature
CORREL(arg1, arg2, ... argN: Number (Range))This function accepts a repeating argument pattern (min args: 2).
Arity
min 2, max 1
Arguments
arg1Number · Range · coercion NumberLenientText
Caps
PUREREDUCTIONNUMERIC_ONLY
Source