TX Sheet Control

CORREL Function

Function

Return the correlation coefficient of two data sets. known_y and known_x are ranges or arrays with the same number of values. The result is from -1 to 1: 1 means a perfect positive linear relationship, -1 a perfect negative one and 0 none. Sets of different size return #N/A, and a set whose values are all equal returns #DIV/0!.

Syntax

CORREL(known_y, known_x, x)

Category: Statistics. Minimum arguments: 2. Maximum arguments: 2.

Available for supported offline calculation.

Examples

=CORREL({1,2,3},{2,4,6})

The formula returns 1, because each value of the second set is twice the value of the first.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

See Also