ExcelFlux

COVARIANCE.S function

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

Statistical · Excel 2010+

Where can you use it?

Analytics, quality and research teams. Use this group to examine distributions, variability or relationships in measurements, sales or service durations.

Scenario in the workbook

Measure joint variation in samples using n−1.

A worked example from the workbook

RowAB
6Input readingOutput reading
712
824
936
Record 1
=COVARIANCE.S(A7:A9,B7:B9)

Expected result2

See the inputs and instructions for all 3 examples

Copyable formulas

English Excel · en-US
=COVARIANCE.S(A7:A9,B7:B9)
Turkish Excel · tr-TR
=KOVARYANS.S(A7:A9;B7:B9)

Worked examples

Measure joint variation in samples using n−1.

Open the English sheet. Inputs begin at A6. F7:F9 show the live results and G7:G9 show the original results for comparison.

Row A B
6 Input reading Output reading
7 1 2
8 2 4
9 3 6
Case Formula Expected result
Record 1 =COVARIANCE.S(A7:A9,B7:B9) 2
Record 2 =COVARIANCE.S(A7:A8,B7:B8) 1
Record 3 =COVARIANCE.S(B7:B9,A7:A9) 2
Microsoft Excel reference