In Excel: use =CORREL(array1, array2) — it returns a correlation coefficient from -1 to 1, where 0 means no linear relationship.
On this page8
Syntax
Arguments
| Argument | required / optional | Description |
|---|---|---|
array1 | required | The first set of values. |
array2 | required | The second set, the same size as array1. |
Related functions
Select the result cell and type =CORREL(.
Select the first range, add a comma, then the second — they must be the same size.
Press Enter and read the result against the -1 to 1 scale.
Chart the two series as a scatter plot before drawing any conclusion from the number.
What this does
CORREL measures how strongly two variables move together, on a scale from -1 (perfectly opposed) through 0 (unrelated) to 1 (perfectly aligned). It detects linear relationships only: a strong curved relationship can return a coefficient near zero, which is why plotting the data alongside the number is not optional. The other standing caveat is that correlation says nothing about cause. Both ranges must be the same size; pairs where either value is missing are dropped. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make. Treat “correl function excel” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected formula shows up while it is still harmless. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That turns a calculation you can defend to a CFO or an auditor into a method you can reuse, explain, and defend when the workbook leaves your screen.
A worked example
Marketing spend in B2:B37 and revenue in C2:C37: =CORREL(B2:B37, C2:C37) returning 0.78 indicates a strong positive linear relationship. Squaring it gives R², the share of variance explained: =CORREL(B2:B37,C2:C37)^2 returns about 0.61, matching the R² a trendline reports. CORREL puts a single defensible number on "do these move together", which is the first question any two-variable analysis has to answer. Check the referenced cells, argument order and result type in your workbook. Start with the worked example before changing an input, then compare the changed result with the calculation you expected. An error value or a result of a different type is a reason to inspect the inputs and arguments.
In Google Sheets
Google Sheets support for this task has not been verified. Check the function, arguments and workflow in the target product before transferring the example. Matching formula notation does not establish identical behaviour. Keep this page bookmarked for the next time the same question comes up. Better still, repeat the steps once in your own workbook — doing it yourself is what turns a copied answer into something you remember. For “correl function excel”, keep the input cells and the result visible while you check the formula in Excel. Follow the worked example and change one input at a time. The steps explain the workbook calculation; this page does not run a live calculator for that task.
Common mistakes
- Reading correlation as causation, which the coefficient cannot support in either direction.
- Trusting a near-zero result without plotting;
CORRELis blind to non-linear relationships. - Ranges of different lengths, which returns
#N/A.
Frequently asked questions
What counts as a strong correlation?
It depends entirely on the field. Above 0.7 is usually called strong in business data and would be weak in a physical measurement.
How do I get R-squared?
Square the coefficient: =CORREL(x,y)^2, or use =RSQ(y,x) directly. Both match the R² a chart trendline displays.
Does correlation prove causation?
No. It measures co-movement only; a lurking third variable explains a great many strong correlations.
Other ways people ask this
On the way here you may have searched this as “how to use correl function in excel” and “how to use the correl function in excel” — it is all the same task, and this page is the single, complete answer to it.
Why do people search for this in so many different ways?
Because the same task has many names. “how to use correl function in excel”, “how to use the correl function in excel” all point at the one operation explained on this page, which is why they all lead here.