RSQ
Statistical

Returns the square of the Pearson product moment correlation coefficient

Syntax:

=RSQ(known_y's, known_x's)

Example:

=RSQ(A2:A10, B2:B10)