EXCEL COVARIANCE.S FUNCTION

The COVARIANCE.S function in Excel computes the sample covariance of two sets of data. Because the function is new in Excel 2010, it is not available in previous versions of Excel.

Syntax :

=COVARIANCE.S(array1, array2)

Parameters :

  •  Array1 and array2 are two equal-length arrays containing numeric values.
  • It should be noted that if the given arrays include text or logical values, the Covariance.S function will disregard them.

 

 

Step By Step Guide of COVARIANCE.S Function

Example :

The spreadsheet on the right has two sets of values in columns A and B. The sample covariance of the values in the spreadsheet’s columns A and B may be determined using the Excel Covariance.S function, as shown below: =DIFFERENCE.S ( A2:A9, B2:B9 )  This yields 19.00928571, indicating a positive correlation between the two sets of data.

  • #N/A – Occurs if the lengths of the given arrays 1 and 2 are different.
  • #VALUE! – This error occurs when one or both of the given arrays are empty.

Related Functions

HLOOKUP Function

HLOOKUP Function

Explore Now

VLOOKUP Function

VLOOKUP Function

Explore Now

INDEX Function

INDEX Function

Explore Now

MATCH Function

MATCH Function

Explore Now

DATE Function

DATE Function

Explore Now

IF Function

IF Function

Explore Now

OR Function

OR Function

Explore Now

AND Function

AND Function

Explore Now

RANK Function

RANK Function

Explore Now

SUMIF Function

SUMIF Function

Explore Now

XIRR Function

XIRR Function

Explore Now

WORKDAYS Function

WORKDAYS Function

Explore Now