<p>The <b>COVARIANCE.S</b> function is one of the statistical functions. It is used to return the sample covariance, the average of the products of deviations for each data point pair in two data sets.</p>
<p>The <b>COVARIANCE.S</b> function syntax is:</p>
<p>where <b><em>array-1(2)</em></b> is the selected range of cells with the same number of elements.</p>
<pclass="note"><b>Note:</b> if <b><em>array-1(2)</em></b> contains text, logical values, or empty cells, the function will ignore those values, but treat the cells with the zero values.</p>
<p>To apply the <b>COVARIANCE.S</b> function,</p>
<ol>
<li>select the cell where you wish to display the result,</li>