COVARIANCE.S Function in Excel calculates the sample covariance of two supplied sets of values.
Covariance is the measure of correlation between two sets of variables. Sample Covariance is calculated using formula
- X̄ and ȳ are the sample means of two sets of values
- n is the number of values.
Syntax of COVARIANCE.S Function in Excel:
Where the array arguments are numeric values for which you want to calculate the sample covariance.
Example of COVARIANCE.S Function in Excel
The Above example calculates the sample covariance of two arrays with formula
= COVARIANCE.S (A2:A13,B2:B13)
Which results in value 41.69697
#N/A Error occurs if the two supplied arrays have different lengths.