COVARIANCE.S Function in Excel: Do Two Series Move Together?

COVARIANCE.S Function in Excel: Do Two Series Move Together? featured illustration

πŸ“Ž This article includes 1 downloadable practice file ↓

⏱ 2 min readUpdated 28 September 2026

StatisticsLevel: ExpertAvailable in: Excel 2010+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. COVARIANCE.S in practice
  5. Where you will use it
  6. Worked example
  7. Mistakes people make
  8. Related functions
  9. Continue learning

COVARIANCE.S measures whether two variables rise and fall together. Its size depends on units, so CORREL is easier to read.

Advertisement

Syntax

=COVARIANCE.S(array1, array2)
Argument What it means
array1, array2 Same length.

Examples

Example 1

=COVARIANCE.S(B2:B61, C2:C61)

Covariance of two share returns, used in portfolio risk.

COVARIANCE.S in practice

Where you will use it

  • How two returns move together
  • Portfolio risk inputs
  • Sales vs footfall

Worked example

CasePairFormulaResult
1Ad spend vs sales=ROUND(COVARIANCE.S(INDEX($H$1:$L$3,A2,0),INDEX($N$1:$R$3,A2,0)),2)200.1
2Rainy days vs umbrellas=ROUND(COVARIANCE.S(INDEX($H$1:$L$3,A3,0),INDEX($N$1:$R$3,A3,0)),2)57.5
3Unrelated numbers=ROUND(COVARIANCE.S(INDEX($H$1:$L$3,A4,0),INDEX($N$1:$R$3,A4,0)),2)-0.75

Results calculated in Excel.

Mistakes people make

MistakeWhat to do instead
Hard to interpretUnits multiply; use CORREL for a -1..1 measure
S vs PS for a sample, P for the whole population

CORREL Β· VAR.S

πŸ“š Part of the free Excel course: Beginner β†’ Expert Β· Try it in the Formula Lab or ask the AI Helper.

⚑ Interactive Practice Lab & Formula Tester:

Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.

πŸ“Ž Practice files for this article

  • πŸ“—
    Practice workbook: Statistics advanced33 tasks on realistic sales data β€” type your formula, the Check column turns green when it is right. Answers sheet included.
    ⬇ XLSX Β· 36 KB

Free to use for learning. Files with macros (.bas) are plain text β€” import them with Alt+F11 β†’ File β†’ Import File, and always test on a copy.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free Β· AI can be wrong