Calculates the correlation coefficient between two variables
The CORREL Function[1] is categorized under Excel Statistical functions. It will calculate the correlation coefficient between two variables.
As a financial analyst, the CORREL function is very useful when we want to find the correlation between two variables, e.g., the correlation between a particular stock and a market index.
=CORREL(array1, array2)
The CORREL function uses the following arguments:
The equation for the correlation coefficient is:
Where:
are the sample means AVERAGE(array1) and AVERAGE(array2).
So, if the value of r is close to +1, it indicates a strong positive correlation, and if r is close to -1, it shows a strong negative correlation.
The CORREL function was introduced in Excel 2007 and is available in all subsequent Excel versions. To understand the uses of the function, let’s look at an example:
Suppose we are given data about the weekly returns of stock A and percentage of change in a market index (S&P 500):
The formula used to find the correlation is:
We get the result below:
The result indicates a strong positive correlation.
Click here to download the sample Excel file
Thanks for reading CFI’s guide to the Excel CORREL function. By taking the time to learn and master these functions, you’ll significantly speed up your financial analysis. To learn more, check out these additional CFI resources:
To master the art of Excel, check out CFI’s Excel Crash Course, which teaches you how to become an Excel power user. Learn the most important formulas, functions, and shortcuts to become confident in your financial analysis.
Launch CFI’s Excel Crash Course now to take your career to the next level and move up the ladder!