Lewati ke konten utama

Excel CORREL(): Analyze Relationships Between Variables in Excel

Analyze the strength and direction of relationships between variables using built-in Excel tools.
7 Agu 2025  · 3 mnt baca

Jelajahi dengan AI

ChatGPTClaudePerplexity

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 editor with contributions to research articles in scientific journals. I'm especially interested in linear algebra, statistics, R, and the like.

Topik
Excel
Data Analysis

Learn Excel with DataCamp

Kursus

Analisis Data di Excel

3 Hr
151.2K
Pelajari cara menganalisis data menggunakan PivotTables dan fungsi logika tingkat menengah sebelum beralih ke alat seperti analisis skenario dan peramalan.
Lihat DetailRight Arrow
Mulai Kursus
Lihat Lebih BanyakRight Arrow
Terkait

Tutorials

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

6 mnt

Tutorials

Pearson Correlation Coefficient: Quantifying Relationships in Data

Discover how the Pearson correlation coefficient quantifies the strength and direction of relationships in your data. Learn to calculate, interpret, and apply it using Python, R, and Excel.
Amberle McKee's photo

Amberle McKee

15 mnt

Tutorials

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

9 mnt

Tutorials

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

5 mnt

Tutorials

Spearman’s Correlation: How to Quantify Nonlinear Relationships

Discover how Spearman's Rank Correlation captures relationships that curve, plateau, or shift pace instead of following a straight line. Learn to calculate, interpret, and apply it in Python, R, and Excel.
Amberle McKee's photo

Amberle McKee

10 mnt

Tutorials

Excel Solver: Optimize Complex Decisions with Multiple Variables

Learn how to use Excel Solver to solve optimization problems with multiple constraints and decision variables. This guide covers setup, solving, and interpreting results with a practical example.
Khalid Abdelaty's photo

Khalid Abdelaty

12 mnt

Lihat Lebih BanyakLihat Lebih Banyak