formulastreak

Statistics function

CORREL function in Google Sheets and Excel

CORREL measures how closely two sets of numbers move together, from -1 (opposite) through 0 (no link) to 1 (together).

Checked against Microsoft's and Google's documentation on · Example calculated on a live sheet

Syntax

CORREL(array1, array2)

Arguments in [brackets] are optional. Google Sheets writes it CORREL(data_y, data_x).

Example

=CORREL(C2:C9,E2:E9) reads: Measure how closely each rep's July sales (C2:C9) move with their September sales (E2:E9), on a scale from -1 to 1.

Q3 sales team · edit I1 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultI1 = 0.90
ABCDEFGHI
1RepRegionJulAugSepTargetJul vs Sep0.90
2Amara OseiNorth$12,400$13,100$11,800$36,000
3Ben FischerSouth$9,800$10,250$12,100$30,000
4Lina ChenEast$15,200$14,800$16,900$45,000
5Diego AlvarezWest$8,700$9,100$8,400$28,000
6Eva NovakNorth$11,200$12,600$13,900$36,000
7Farid HaddadSouth$13,300$12,900$14,100$39,000
8Grace KimEast$10,100$9,600$10,800$33,000
9Hugo MartinWest$14,500$15,800$15,100$42,000

I1 shows 0.90: reps with a strong July mostly had a strong September too.

How the spreadsheet calculates it

The correlation coefficient of two ranges. Here it's given C2:C9 and E2:E9.

  1. 1. CORREL: The correlation coefficient of two ranges. Here it's given C2:C9 and E2:E9.
    • range1 = `C2:C9`: the first set of numbers
    • range2 = `E2:E9`: the second set, the same size and in the same order

More CORREL examples

  • =CORREL(C2:C9,D2:D9)How closely July and August sales move together.
  • =CORREL(C2:C13,D2:D13)On the exam sheet: do more study hours go with higher scores?
  • =CORREL(C2:C9,E2:E9)^2The square of the correlation (the same value RSQ gives).
  • =IF(ABS(CORREL(C2:C9,E2:E9))>=0.7,"Strong","Weak")A plain-words label for the strength of the link.

Paste any of these into the formula explainer to see it step by step.

Tips

  • Make a quick scatter chart alongside: it shows outliers and curves that one number hides.
  • Keep both ranges on the same rows and sort whole rows, never one column.
  • Round the result to two decimals for reporting.

What CORREL is used for

Checking whether ad spend moves with sales, whether study hours go with scores, comparing two months or two products, and as a first look before deeper analysis.

Arguments

ArgumentRequiredWhat it is
array1YesThe first set of numbers, such as July sales C2:C9.
array2YesThe second set, the same size and in the same row order, such as September sales E2:E9.Watch out: A different number of values gives #N/A.

Common mistakes

  • Reading cause and effect into a correlation.

  • Sorting one column but not the other: CORREL pairs values by position, so the pairs no longer belong together.

  • Reading a result near 0 as 'no relationship': CORREL only measures straight-line links, so a curved pattern can still score near 0.

  • Correlating tiny samples: with a handful of rows, a high value can easily be chance.

In Google Sheets

Google Sheets has CORREL. Google names the arguments data_y and data_x (CORREL(data_y, data_x)); the order doesn't change the result, so formulas move across unchanged.

Errors you may see with CORREL

  • #N/A: The two ranges hold a different number of values.
  • #DIV/0!: One range is empty, or all its values are the same (no spread), as Microsoft's page documents.

Questions

What is a good correlation value?

There's no single cut-off. Values near 1 or -1 mean a strong straight-line link, values near 0 a weak one. How strong is 'strong enough' depends on the question and how much data you have.

Does the order of the two ranges matter?

No: CORREL(C2:C9, E2:E9) and CORREL(E2:E9, C2:C9) return the same value. What matters is that each row pairs the right two values.

Does correlation mean one causes the other?

No. Two things can rise together because a third thing drives both, or by chance. Correlation is a reason to look closer, not proof.

Is CORREL the same as PEARSON?

Both return the Pearson correlation coefficient; CORREL is the one most people use. RSQ returns its square. See the statistics functions guide.

Sources

Official documentation the facts on this page were checked against.

Practise CORREL on a live sheet

Lesson 43, Typical values and spread (Unit 13, Statistics), has 6 graded exercises, checked instantly, with steps and hints when you're stuck. Pro