Statistical All versions ◉ 7 views

=CORREL()

The CORREL function returns the correlation coefficient of two cell ranges. Use the correlation coefficient to determine the relationship between two properties. For example, you can examine the relationship between a location's average temperature and the use of air conditioners.

Applies To: Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016
=CORREL(array1, array2)
Hover argument names in the table for details.
Output typeNumber
Popularity45 / 100
VolatileNo
Dynamic ArrayNo
📥 Download sample .xlsx — Coming soon ▦ Try in Playground Dedicated file for this function — safe & lightweight · sample data + live formulas
Share:

⬇ Download Sample Workbook

A dedicated .xlsx for =CORREL() with Persian sample data & live formulas — open in Excel and practice.

  • Sheet “Sample” — data table + formula in place
  • Sheet “Guide” — syntax, arguments & tips from this page
  • Instant & secure (token + rate limit)
📥 Download CORREL.xlsx — Coming soon ~ 8–12 KB · No macros

⇪ Share

Send this function to friends

🧠 🧠 Quiz this function

%d questions — syntax, example & errors — test yourself!

◧ Arguments

ArgumentTypeRequiredDescription
array1 Array Required A range of cell values.
array2 Array Required A second range of cell values.

▣ Examples

Example 1 =CORREL(B2:B25, C2:C25)
Example 2 =CORREL(D2:D366, E2:E366)

§ Remarks

  • If an array or reference argument contains text, logical values, or empty cells, those values are ignored; however, cells with zero values are included.
  • If array1 and array2 have a different number of data points, CORREL returns a #N/A error.
  • If either array1 or array2 is empty, or if s (the standard deviation) of their values equals zero, CORREL returns a #DIV/0! error.
  • As much as the correlation coefficient is closer to +1 or -1, it indicates positive (+1) or negative (-1) correlation between the arrays. Positive correlation means that if the values in one array are increasing, the values in the other array increase as well. A correlation coefficient that is closer to 0, indicates no or weak correlation.
  • The equation for the correlation coefficient is: where are the sample means AVERAGE(array1) and AVERAGE(array2).

✦ Tips

  • If an array or reference argument contains text, logical values, or empty cells, those values are ignored; however, cells with zero values are included.
  • As much as the correlation coefficient is closer to +1 or -1, it indicates positive (+1) or negative (-1) correlation between the arrays. Positive correlation means that if the values in one array are increasing, the values in the other array increase as well. A correlation coefficient that is closer to 0, indicates no or weak correlation.
  • The equation for the correlation coefficient is: where are the sample means AVERAGE(array1) and AVERAGE(array2).

⚠ Common Errors

#N/A If array1 and array2 have a different number of data points, CORREL returns a #N/A error.
Fix: Make the two ranges the same size
#DIV/0! If either array1 or array2 is empty, or if s (the standard deviation) of their values equals zero, CORREL returns a #DIV/0! error.
Fix: بررسی کنید هر دو محدوده حداقل یک مقدار عددی داشته باشند و مقادیر همه یکسان (انحراف صفر) نباشند.

💬 Comments & Q&A 0 approved

🔒 Your comment will be published after review.

Share your thoughts — visible after admin approval

No comments yet — be the first!

✍️ Add comment / question

captcha
🔒 Your comment will be published after review.