Statistical Excel 2010 ◉ 19 views

=COVARIANCE.S()

Returns the sample covariance, the average of the products of deviations for each data point pair in two data sets.

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

⬇ Download Sample Workbook

A dedicated .xlsx for =COVARIANCE.S() 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 COVARIANCE.S.xlsx ~ 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 The first cell range of integers.
array2 Array Required The second cell range of integers.

▣ Examples

Sample covariance for the data points entered as an array in the function. =COVARIANCE.S({2,4,8},{5,11,12})
Result: 9.666666667
Sample covariance for the identical data points, but entered as cell ranges in the function. =COVARIANCE.S(A3:A5,B3:B5)
Result: 9.666666667

§ Remarks

  • The arguments must either be numbers or be names, arrays, or references that contain numbers.
  • If an array or reference argument contains text, logical values, or empty cells, those values are ignored; however, cells with the value zero are included.
  • If array1 and array2 have different numbers of data points, COVARIANCE.S returns the #N/A error value.
  • If either array1 or array2 is empty or contains only 1 data point each, COVARIANCE.S returns the #DIV/0! error value.

✦ Tips

  • The arguments must either be numbers or be names, arrays, or references that contain numbers.
  • If an array or reference argument contains text, logical values, or empty cells, those values are ignored; however, cells with the value zero are included.

⚠ Common Errors

#N/A If array1 and array2 have different numbers of data points, COVARIANCE.S returns the #N/A error value.
Fix: Make the two ranges the same size
#DIV/0! If either array1 or array2 is empty or contains only 1 data point each, COVARIANCE.S returns the #DIV/0! error value.
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.