Ir al contenido principal

Excel CORREL(): Analyze Relationships Between Variables in Excel

Analyze the strength and direction of relationships between variables using built-in Excel tools.
7 ago 2025  · 3 min de lectura

The CORREL() function in Excel is a powerful statistical tool that helps users determine the relationship between two sets of data. By calculating the correlation coefficient, you can quickly assess whether two variables move together, move in opposite directions, or have no relationship at all.

In this article, I'll will walk you through how to use the CORREL() function in Excel, along with its syntax, and some examples. It's a good starting point for other things, also, as you will see, like regression and things that happen in finance, such as when working with stock returns and interest rates.

What Is the CORREL() Function in Excel?

The CORREL() function in Excel measures the strength and direction of the linear relationship between two variables. The result, known as the correlation coefficient or, more exactly, the Pearson correlation coefficient, ranges from -1 to 1:

  • 1 indicates a perfect positive correlation
  • -1 indicates a perfect negative correlation
  • 0 indicates no linear correlation

This function is commonly used to quantify relationships—for instance, a strong negative correlation (close to -1) between interest rates and bond prices, or a strong positive one (close to 1) between advertising spend and revenue.

Excel CORREL() Syntax and Arguments

Before using the CORREL() function, it's important to understand its syntax and required arguments. The function requires two ranges of data as input.

=CORREL(array1, array2)
  • array1: The first range of values

  • array2: The second range of values

Both arrays must have the same number of data points. If they do not, CORREL() will return a #N/A error.

How to Use CORREL() in Excel

To use the CORREL() function in Excel, follow these steps:

  1. Enter your two data sets in separate columns.

  2. Click on the cell where you want the correlation coefficient to appear.

  3. Type the CORREL() formula, referencing your data ranges.

  4. Press Enter to display the result.

For example, if your data is in columns A and B from rows 2 to 11:

=CORREL(A2:A11, B2:B11)

Excel CORREL array example

Our formula returns the correlation coefficient between the two data sets.

We expect get a result close to -1, indicating a strong negative correlation between interest rates and bond prices, as this aligns with financial theory, since as interest rates rise, bond prices typically fall.

Interpreting CORREL() Results in Excel

After calculating the correlation coefficient, it's important to interpret the result correctly. The value you get from CORREL() will fall between -1 and 1:

  • Values close to 1: Strong positive correlation (as one variable increases, so does the other)
  • Values close to -1: Strong negative correlation (as one variable increases, the other decreases)
  • Values close to 0: Little or no linear relationship

Keep in mind that correlation does not imply causation. A high correlation coefficient simply indicates a relationship, not that one variable causes the other to change.

Common Errors with CORREL()

When using the CORREL() function in Excel, you may encounter some common errors. Understanding these can help you troubleshoot issues quickly.

  • N/A error: Occurs if the two arrays have different numbers of data points

  • DIV/0! error: Happens if either array has less than two data points or if the standard deviation of either array is zero

  • VALUE! error: Appears if non-numeric values are included in the data ranges

If you make sure that your data ranges are equal in length and contain only numeric values, I think you will avoid all of these errors.

Conclusion

The CORREL() function in Excel is an essential tool for analyzing the relationship between two data sets. Once you are comfortable using the CORREL() function, you may want to explore other statistical functions in Excel. Functions like COVARIANCE.P() and LINEST() are very useful for what they do. And make sure to take our Data Analysis in Excel course to keep learning. 

Advance Your Career with Excel

Gain the skills to maximize Excel—no experience required.

Start Today for Free

Josef Waples's photo
Author
Josef Waples

I'm a data science writer and editor with contributions to research articles in scientific journals. I'm especially interested in linear algebra, statistics, R, and the like. I also play a fair amount of chess! 

Temas

Learn Excel with DataCamp

Curso

Análisis de datos en Excel

3 h
107.9K
Aprende a analizar datos con Tablas dinámicas y funciones lógicas intermedias antes de pasar a herramientas como el análisis hipotético y la previsión.
Ver detallesRight Arrow
Comienza el curso
Ver másRight Arrow
Relacionado

blog

R Correlation Tutorial

Get introduced to the basics of correlation in R: learn more about correlation coefficients, correlation matrices, plotting correlations, etc.
David Woods's photo

David Woods

13 min

Tutorial

Understanding Correlation: Measuring Relationships in Data

Learn how to identify relationships between variables using correlation. Discover the different types of correlation coefficients and their applications.
Josef Waples's photo

Josef Waples

Tutorial

Correlation Matrix In Excel: A Complete Guide to Creating and Interpreting

Learn the statistical concept of correlation, and follow along in calculating and interpreting correlations for a sample dataset, in a step-by-step tutorial.
Arunn Thevapalan's photo

Arunn Thevapalan

Tutorial

Excel RSQ(): Find the Coefficient of Determination in Excel

Calculate the strength of a linear relationship between two data sets. Use RSQ() to find the coefficient of determination quickly in Excel. Learn syntax, see practical examples, and troubleshoot common mistakes.
Josef Waples's photo

Josef Waples

Tutorial

Excel Table: The Essential Tool for Organizing Data

Discover how Excel tables go beyond formatting with powerful features like structured references, automatic expansion, filtering, and integration with PivotTables and charts.
Javier Canales Luna's photo

Javier Canales Luna

Tutorial

Visualizing Data in Excel

Learn about Excel's various data visualization options that can help you analyze and interpret your data.
Jess Ahmet's photo

Jess Ahmet

Ver másVer más