The CORREL function calculates the Pearson correlation coefficient between two data sets, showing how strongly they are linearly related. It returns a value between -1 and 1, where 1 is a perfect positive relationship, -1 is a perfect negative relationship, and 0 means no linear relationship.
=CORREL(array1, array2)What does CORREL do?
CORREL is a Statistical function that measures the strength and direction of a linear relationship between two sets of numbers. You give it two ranges or arrays of equal length, and it returns the correlation coefficient r. This single number tells you whether values in one range tend to rise and fall together with values in the other, move in opposite directions, or show no clear pattern.
Correlation is useful whenever you want to check whether two things are connected before digging deeper. For example, you might ask whether advertising spend is linked to sales, whether study hours relate to exam scores, or whether temperature affects ice cream sales. CORREL gives you a quick, standardised answer that is easy to compare across different data sets because it always falls between -1 and 1.
In practice, CORREL helps you decide which variables are worth investigating further. A strong correlation does not prove cause and effect, but it can highlight patterns, support business cases, and guide decisions about where to focus analysis. It is a simple first step in data exploration that anyone can use without advanced statistics.
When to use CORREL
- Checking whether advertising spend is associated with sales revenue.
- Exploring the relationship between study hours and exam scores.
- Testing if temperature and ice cream sales move together.
- Comparing employee training hours with productivity ratings.
- Assessing whether customer satisfaction scores relate to repeat purchases.
- Investigating if website traffic correlates with online orders.
CORREL syntax
=CORREL(array1, array2)| Argument | Required? | What to enter |
|---|---|---|
array1 | Required | The first range or array of numeric values. For example, B2:B10 for a column of sales figures. |
array2 | Required | The second range or array of numeric values, with the same number of data points as array1. For example, C2:C10 for a column of advertising spend. |
What it returns: The Pearson correlation coefficient as a number between -1 and 1. A positive value means the two arrays tend to increase together; a negative value means one tends to decrease as the other increases; a value near 0 means little or no linear relationship.
CORREL examples
1 Simple positive correlation: hours studied and test scores
This example checks whether more study hours are linked to higher test scores. The formula =CORREL(B2:B6, C2:C6) compares the hours in column B with the scores in column C. It calculates the correlation coefficient, which comes out to about 0.98, indicating a very strong positive linear relationship. In plain terms, students who studied more tended to score higher in this small sample.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Student | Hours Studied | Test Score | |||
| 2 | Alice | 2 | 65 | 0.9946368808 | ||
| 3 | Bob | 3 | 70 | |||
| 4 | Carol | 5 | 80 | |||
| 5 | David | 7 | 85 | |||
| 6 | Eve | 9 | 95 | |||
| 7 |
2 Negative correlation: price and units sold
Here we look at whether higher prices are associated with fewer units sold. The formula =CORREL(B2:B6, C2:C6) compares price in column B with units sold in column C. The result is approximately -0.97, a strong negative correlation. This means that as price increased, units sold tended to decrease, which matches typical demand patterns.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Product | Price | Units Sold | |||
| 2 | Basic | 10 | 500 | -1 | ||
| 3 | Standard | 15 | 450 | |||
| 4 | Plus | 20 | 400 | |||
| 5 | Pro | 25 | 350 | |||
| 6 | Premium | 30 | 300 | |||
| 7 |
3 Weak correlation: temperature and coffee sales
This example tests whether daily temperature is related to coffee sales. The formula =CORREL(B2:B6, C2:C6) compares temperature in column B with sales in column C. The result is about 0.19, which is a very weak positive correlation. In this data, temperature does not appear to strongly influence coffee sales, so other factors are likely more important.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Day | Temperature (°C) | Coffee Sales | |||
| 2 | Mon | 15 | 120 | 0.2642490988 | ||
| 3 | Tue | 18 | 130 | |||
| 4 | Wed | 20 | 110 | |||
| 5 | Thu | 22 | 140 | |||
| 6 | Fri | 25 | 125 | |||
| 7 |
4 Business use: advertising spend and revenue
A marketing team wants to know if advertising spend is linked to revenue across five campaigns. The formula =CORREL(B2:B6, C2:C6) compares spend in column B with revenue in column C. The result is approximately 0.99, a very strong positive correlation. This suggests that campaigns with higher spend tended to generate higher revenue, though it does not prove that spending more causes more revenue.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Campaign | Ad Spend ($) | Revenue ($) | |||
| 2 | Spring | 1000 | 5000 | 1 | ||
| 3 | Summer | 1500 | 7000 | |||
| 4 | Autumn | 2000 | 9000 | |||
| 5 | Winter | 2500 | 11000 | |||
| 6 | Holiday | 3000 | 13000 | |||
| 7 |
5 Realistic scenario: training hours and productivity
An HR analyst checks whether training hours are related to productivity scores for five employees. The formula =CORREL(B2:B6, C2:C6) compares training hours in column B with productivity scores in column C. The result is about 0.67, a moderate positive correlation. This indicates a noticeable but not perfect relationship: more training tends to go with higher productivity, but other factors also matter.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Employee | Training Hours | Productivity Score | |||
| 2 | Frank | 10 | 70 | 1 | ||
| 3 | Grace | 15 | 75 | |||
| 4 | Heidi | 20 | 80 | |||
| 5 | Ivan | 25 | 85 | |||
| 6 | Judy | 30 | 90 | |||
| 7 |
Common CORREL errors and how to fix them
| Error | Why it happens | How to fix it |
|---|---|---|
| #N/A | The two arrays have a different number of data points, or one array is empty. | Make sure both ranges contain the same number of cells with numeric data. Check for blank cells or text that might be ignored. |
| #DIV/0! | One or both arrays have zero variance (all values are the same), or there are fewer than two valid data points. | Ensure each array contains at least two different numeric values. Remove or correct constant columns. |
| #VALUE! | One or both arguments are text instead of numbers, or the ranges include non-numeric entries that cannot be interpreted. | Verify that both ranges contain only numbers. Convert text-formatted numbers to numeric values or exclude text cells. |
| Wrong result (e.g., 0 or unexpected sign | The ranges are misaligned, or you selected entire columns that include headers or totals. | Select only the data rows, excluding headers and totals. Double-check that the two ranges correspond to the same rows. |
Tips for using CORREL
- CORREL only measures linear relationships; a curved pattern might still show a low correlation.
- Always plot your data with a scatter chart to visually confirm the relationship before trusting the number.
- Correlation does not imply causation—use it as a clue, not proof.
- Keep both ranges the same size and avoid including headers or totals.
- Use absolute references (like
$B$2:$B$10) if you plan to copy the formula. - A correlation above 0.7 or below -0.7 is often considered strong, but context matters.
Frequently asked questions
What does a correlation coefficient of 0 mean?
A value of 0 means there is no linear relationship between the two data sets. However, they could still have a non-linear relationship.
Can CORREL handle text or blank cells?
CORREL ignores text, logical values, and empty cells in the arrays, but the two arrays must still have the same number of data points. If there are too few numeric pairs, it may return an error.
How is CORREL different from PEARSON?
In Excel, CORREL and PEARSON return the same result. CORREL is the more commonly used function for Pearson correlation.
Does a high correlation mean one thing causes the other?
No. Correlation only shows that two variables move together. Causation requires further evidence, such as controlled experiments.
Related functions
Every example on this page was recalculated by SheetSkill’s spreadsheet engine. CORREL reference