Navigation:  Formula Reference > Spreadsheet Formula Functions >


Previous pageReturn to chapter overviewNext page


This function returns the sample covariance, which is the average of the products of deviations for each data point pair in two sets of numbers.




The two arrays of data in the arguments of this function should meet these criteria:

The data should contain numbers, names, arrays, or references that are numeric. If some cells do not contain numeric data, they are ignored.
The data sets should be the same size, with the same number of data points.
The data sets should not be empty, nor should the standard deviation of their values equal zero.


Use this covariance function to determine the relationship between two sets of data. For example, you can determine whether greater income accompanies greater levels of education.

Data Types

Accepts arrays of numeric data for both arguments. Returns numeric data.




COVARIANCE.S({7,5,6},{7,4,4}) gives the result 1.5

COVARIANCE.S({5,10,15,20,25},{4,8,16,32,64}) gives the result 180