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
6 pairs
R² = 0.9962
Intercept = 0.1667
Need it as an auditable file?
Ships inside the linked template — formula-driven, unlocked, audit-ready.
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. Keep the inputs visible and clearly labelled and the whole thing stays auditable — anyone who opens the file later, including you, can see at a glance exactly what feeds the result and change one assumption without hunting through the formula. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “calculate correlation coefficient in excel”. Start on a copy or a tiny sample, keep the affected cells visible, and compare the result with the tool above before you touch the real workbook. 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. The point is a calculation you can defend to a CFO or an auditor, but the practical win is that someone else can open the file and understand what happened without asking you.
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. If there is any chance you will reuse this, drop it into a small template tab right now: a labelled input area on the left and the formula beside it, checked once against the tool above. Next time the same question comes up, the answer is a single paste away instead of a rebuild from memory.
In Google Sheets
If you are in Google Sheets rather than Excel, the good news is that the formula shown here is identical and the workflow barely changes — menus sit across the top instead of in a ribbon, and a few function names differ slightly, but anything you build here moves across with little or no rework. Keep this page bookmarked for the next time the same question comes up. Better still, rebuild the example once in your own sheet — doing it yourself, with the tool above to check against, is what turns a copied formula into a technique you own. Here is the takeaway for “calculate correlation coefficient in excel”: copy the answer if you are busy, but if you have a spare few minutes, rebuild the example in Excel yourself with the tool above open beside it. That single pass — type it, run it, watch the result move when you change an input — is what turns a formula you found into a technique you trust. Keep your inputs labelled and referenced, never hard-coded, and the same sheet stays correct and auditable as it grows. Done that way, you will not need to look this up again, and you will be the person others ask.
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
People reach this page typing “how to calculate coefficient of correlation in excel”, “how to calculate correlation coefficient on excel”, “how to calculate coefficient correlation in excel” and “calculate correlation coefficient in excel”, among other phrasings; whichever wording you used, the fix above is the one you want.
Why do people search for this in so many different ways?
Because the same task has many names. “how to calculate coefficient of correlation in excel”, “how to calculate correlation coefficient on excel”, “how to calculate coefficient correlation in excel” all point at the one operation explained on this page, which is why they all lead here.