Pinterest Pixel

Master the CORREL Function in Excel: Syntax, Examples, and Errors

John Michaloudis
CORREL is a statistical function that is used to measure the relationship between two sets of numbers.
It tells you whether two things move together, move in opposite directions, or have no link at all.

In this article, you will learn how to use the CORREL function in Excel.

CORREL is a statistical function that is used to measure the relationship between two sets of numbers. It tells you whether two things move together, move in opposite directions, or have no link at all. In this article, you will learn how to use the CORREL function in Excel.

Key Takeaways:

  • CORREL measures the relationship between two sets of numbers.
  • The result of CORREL is always between -1 and 1.
  • A positive result means both values tend to move in the same direction.
  • A negative result means the values tend to move in opposite directions.
  • CORREL only measures linear relationships between values.

 

Introduction to the CORREL Function

Define Correlation

CORREL returns the correlation coefficient of two ranges. This number is also called the Pearson correlation coefficient. It shows how closely two sets of values follow a straight-line pattern.

The result of this correlation can range between -1 and 1.

  • A result close to 1 means a strong positive relationship. When one value goes up, the other goes up too.
  • A result close to -1 means a strong negative relationship. When one value goes up, the other goes down.
  • A result close to 0 means there is little or no linear relationship.

Syntax of the CORREL function

=CORREL(array1, array2)

  • array1 is the first range of values.
  • array2 is the second range of values.

 

How to use the CORREL function

Step-by-Step Guide

In this example, you will be using the CORREL function to understand the relationship between the amount spent on advertising and the sales amount.

STEP 1: Select the cell where you want to display the correlation result.

STEP 2: Enter the CORREL function.

CORREL function in Excel

STEP 3: Select the range containing the advertising amount

CORREL function in Excel

STEP 4: Select the range containing the sales amount.

CORREL function in Excel

STEP 5: Close the parentheses and press Enter to calculate the correlation.

CORREL function in Excel

This means there is a strong positive correlation between advertising and sales.

When to Use the CORREL Function

The CORREL function can be useful when you want to find patterns in numerical data.

You can use it to compare sales with advertising expenses, product prices with demand, or study hours with exam scores.

 

Common CORREL Function Errors

#N/A Error

Excel may return a #N/A error when the two arrays contain different numbers of data points.

Check both ranges and make sure they have the same size.

#DIV/0! Error

Excel may return a #DIV/0! error when there is not enough numeric data or when one of the data sets has no variation.

For example, if every value in one range is 10, Excel cannot calculate a meaningful correlation.

Numbers stored as text

CORREL ignores text. A number typed with a leading apostrophe or imported as text is skipped.

CORREL Does Not Mean Causation

A strong correlation does not always mean that one value causes the other value to change.

For example, ice cream sales and electricity usage may both increase during summer. This does not mean that higher ice cream sales cause higher electricity usage. Hot weather can be the reason both values increase.

 

FAQs

What does the CORREL function do in Excel?

It measures the relationship between two sets of numerical values.

What does a CORREL result of 1 mean?

If the result of the CORREL function is 1, it means there is a perfect positive correlation between the two data sets.

What does a negative correlation result mean?

Negative correlation means the two variables are moving in opposite directions.

Can CORREL return a value greater than 1?

No, correlation cannot return a value greater than 1. The result is always between -1 and 1.

Are CORREL and PEARSON the same in Excel?

They both calculate the Pearson correlation coefficient and normally return the same result.

If you like this Excel tip, please share it


Founder & Chief Inspirational Officer

at

John Michaloudis is a former accountant and finance analyst at General Electric, a Microsoft MVP since 2020, an Amazon #1 bestselling author of 4 Microsoft Excel books and teacher of Microsoft Excel & Office over at his flagship MyExcelOnline Academy Online Course.

See also  IF Function Combined With The AND Function

Steps To Follow

Star 30 Days - Full Access Star

One Dollar Trial

$1 Trial for 30 days!

Access for $1

Cancel Anytime

One Dollar Trial
  • Get FULL ACCESS to all our Excel & Office courses, bonuses, and support for just USD $1 today! Enjoy 30 days of learning and expert help.
  • You can CANCEL ANYTIME — no strings attached! Even if it’s on day 29, you won’t be charged again.
  • You'll get to keep all our downloadable Excel E-Books, Workbooks, Templates, and Cheat Sheets - yours to enjoy FOREVER!
  • Practice Workbooks
  • Certificates of Completion
  • 5 Amazing Bonuses
Satisfaction Guaranteed
Accepted paymend methods
Secure checkout

Get Video Training

Advance your Microsoft Excel & Office Skills with the MyExcelOnline Academy!

Dramatically Reduce Repetition, Stress, and Overtime!
Exponentially Increase Your Chances of a Promotion, Pay Raise or New Job!

Learn in as little as 5 minutes a day or on your schedule.

Learn More!

Share to...