Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How to Sort by Color in Excel
  • Error Bars in Excel
  • Get column name from index in Excel Table
  • Example of COUNTIFS with variable table column in Excel
  • How to create Gauge Chart in Excel

References

  • How to use Excel OFFSET function
  • How to reference named range different sheet in Excel
  • Vlookup Examples in Excel
  • CHOOSE function: Description, Usage, Syntax, Examples and Explanation
  • How to get relative column numbers in a range in Excel

Data Validations

  • Data validation must not exist in list
  • Excel Data validation whole percentage only
  • Excel Data validation must not contain
  • Excel Data validation specific characters only
  • Excel Data validation with conditional list

RSQ function: Description, Usage, Syntax, Examples and Explanation

by

What is RSQ function in Excel?

RSQ function is one of Statistical functions in Microsoft Excel that returns the square of the Pearson product moment correlation coefficient through data points in known_y’s and known_x’s. For more information, see the PEARSON function. The r-squared value can be interpreted as the proportion of the variance in y attributable to the variance in x.

Syntax of RSQ function

RSQ(known_y’s,known_x’s)

The RSQ function syntax has the following arguments:

  • Known_y’s: An array or range of data points.
  • Known_x’s: An array or range of data points.

Explanation of RSQ function

  • Arguments can either be numbers or names, arrays, or references that contain numbers.
  • Logical values and text representations of numbers that you type directly into the list of arguments are counted.
  • If an array or reference argument contains text, logical values, or empty cells, those values are ignored; however, cells with the value zero are included.
  • Arguments that are error values or text that cannot be translated into numbers cause errors.
  • If known_y’s and known_x’s are empty or have a different number of data points, RSQ returns the #N/A error value.
  • If known_y’s and known_x’s contain only 1 data point, RSQ returns the #DIV/0! error value.
  • The equation for the Pearson product moment correlation coefficient, r, is:Equationwhere x and y are the sample means AVERAGE(known_x’s) and AVERAGE(known_y’s).RSQ returns r2, which is the square of this correlation coefficient.

Example of RSQ function

Steps to follow:

1. Open a new Excel worksheet.

2. Copy data in the following table below and paste it in cell A1

Note: For formulas to show results, select them, press F2 key on your keyboard and then press Enter.

You can adjust the column widths to see all the data, if need be.

Copy the example data in the following table, and paste it in cell A1 of a new Excel worksheet. For formulas to show results, select them, press F2, and then press Enter. If you need to, you can adjust the column widths to see all the data.

Data
Known y Known x
2 6
3 5
9 11
1 7
8 5
7 4
5 4
Formula Description Result
=RSQ(A3:A9, B3:B9) Square of the Pearson product moment correlation coefficient through data points in A3:A9 and B3:B9. 0.05795

Post navigation

Previous Post:

How to calculate project complete percentage in Excel

Next Post:

Popularly Used Excel Functions and their examples

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • Excel If, Nested If, And/Or Criteria Examples
  • OR function: Description, Usage, Syntax, Examples and Explanation
  • IFERROR function: Description, Usage, Syntax, Examples and Explanation
  • AND function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel TRUE Function

Date Time

  • Convert date to month and year in Excel
  • Calculate total hours that fall between two times in Excel
  • YEAR function: Description, Usage, Syntax, Examples and Explanation
  • TIME function: Description, Usage, Syntax, Examples and Explanation
  • Get days between dates ignoring years in Excel

Grouping

  • How to randomly assign people to groups in Excel
  • Group numbers with VLOOKUP in Excel
  • Group times into unequal buckets in Excel
  • Group numbers at uneven intervals in Excel
  • Categorize text with keywords in Excel

General

  • How to add sequential row numbers to a set of data in Excel
  • Select, Insert, Rename, Move, Delete Worksheets in Excel
  • How to fill cell ranges with random text values in Excel
  • How to test a range for numbers in Excel
  • Find Most Frequently Occurring Word in Excel Worksheet
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning