# How to Find Correlation Coefficient in Google Sheets (2024)

## Correlation Coefficient in Google Sheets

In Google Sheets, the correlation coefficient measures the strength and direction of a linear relationship between two variables. It's a statistical value that ranges from -1 to 1, where:

• 1 indicates a perfect positive linear relationship,
• -1 indicates a perfect negative linear relationship, and
• 0 indicates no linear relationship.

## Syntax

Google Sheets uses the CORREL function to calculate the correlation coefficient. The syntax for this function is:

CORREL(range1, range2)

Where:

• range1: The first range of values.
• range2: The second range of values.

These ranges must be of equal size and contain numeric values. The CORREL function then calculates the Pearson correlation coefficient between these two ranges which helps you understand the linear relationship between them. This can be useful for various data analysis tasks, such as understanding how two variables move with respect to each other in financial, scientific, and other types of data.

## How to Calculate Correlation Coefficient in Google Sheets

### 1. Enter Data into Two Columns

First, input your data into two columns. Let's use an example where column A represents the hours studied per week (Variable X) and column B represents test scores (Variable Y) for a group of students. Each row corresponds to a different student's data.

### 2. Choose an Empty Cell for the Correlation Result

Find an empty cell where you want the correlation coefficient result to appear. This is where Google Sheets will display the calculation.

### 3. Input the CORREL Function in the Formula Bar

In the selected cell, type =CORREL( to initiate the correlation coefficient calculation. This tells Google Sheets you're going to calculate the correlation coefficient.

### 4. Specify Data Ranges for Both Variables in the Formula

Continue your formula by specifying the data ranges for your two variables. If your data for hours studied is in cells A2 through A11, and your test scores are in cells B2 through B11, your formula should look like =CORREL(A2:A11, B2:B11). Make sure these ranges accurately reflect where your data is in the sheet.

### 5. Execute the Function by Pressing Enter

Close the parentheses and press Enter. Google Sheets will now calculate the correlation coefficient for the data you specified and display the result in your selected cell.

### 6. Analyze the Correlation Coefficient Result

Look at the result to understand the relationship between your variables. A value near 1 suggests a strong positive relationship (as hours studied increases, so do test scores), a value near -1 indicates a strong negative relationship, and a value around 0 suggests no linear relationship.

We hope that you now have a better understanding of how to find correlation coefficients in Google Sheets. If you enjoyed this article, you might also like our article on how to add a secondary axis in Google Sheets or our article on MINIFs in Google Sheets.

# Automate repetitive tasks with Lido

Save hours on repetitive and tedious work. Lido is a new spreadsheet that connects your spreadsheets, forms, PDFs, and email inbox.

Trigger
Action
Select trigger
When a cell value in Google Sheets changes
Check Google Sheets for today's date
Send me a daily reminder
On new Typeform submission
When a cell value in database changes
Check database for today's date
When a new row is added in database
When a new HubSpot customer is created
Select action
Creates a one- or multiple-day calendar event with optional attendees
Create a Slack channel, and optionally add a topic or members
CALLURL
Makes any HTTP request
Replaces [@column_name] values in a Google Doc with the corresponding table row's values
CREATEPDF
Replaces [@column_name] values in a Google Doc with the corresponding table row's values, then export it as a PDF
FETCH
Makes any HTTP request and returns the response
INSERTROWS
Inserts given array below defined values in given worksheet
SENDGMAIL