## Excel RSQ Function

The RSQ function returns the square of the Pearson product-moment correlation coefficient (r2) for two supplied sets of values.

#### Syntax

=RSQ(known_ys, known_xs)

#### Arguments

• known_ys (required): An array or range of data points.
• known_xs (required): An array or range of data points.

#### Return Value

The RSQ function returns a numeric value.

#### Function Notes

• Arguments can be either of the following:
• Numbers;
• Names, arrays, or references that contain numbers.
• Logical values and other values that can be converted to numbers that you type directly into the list of arguments will be counted.
• If text or empty cells are referenced as either of the arguments, the values will be ignored.
• RSQ returns the #N/A error if known_ys and known_xs have different numbers of data points.
• RSQ returns the #DIV/0! error if:
• known_ys and known_xs are empty or have only one data point;
• The standard deviation of the values in one or both of the supplied arrays equals to zero.
• The equation for the Pearson product moment correlation coefficient (r, note that RSQ will return r2) is:

Where x and y are the sample means of the two arrays of values.

#### Example

Take the table below as an example. To get the square of the Pearson product-moment correlation coefficient for two supplied sets of values listed in the table, please copy or enter the formula below in the result cell, and press Enter to get the result.

=RSQ(B6:B12,C6:C12)

#### Related functions

Excel PEARSON Function

The PEARSON function returns the Pearson product-moment correlation coefficient (r) for two supplied sets of values.

Excel CORREL Function

The CORREL function returns the correlation coefficient of two cell ranges, which can be used to determine the relationship between two properties.

### The Best Office Productivity Tools

#### Kutools for Excel - Helps You To Stand Out From Crowd

 🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions… Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ... Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup... Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List... Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Columns to Select Same & Different Cells ... Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ... Top 15 Toolsets:  12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...

#### Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

• One second to switch between dozens of open documents!
• Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
• Increases your productivity by 50% when viewing and editing multiple documents.
• Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.