COVARIANCE.P Function in Excel: Covariance of a Whole Population

COVARIANCE.P Function in Excel: Covariance of a Whole Population 1
⏱ 1 min readUpdated 5 October 2026

StatisticsLevel: ExpertAvailable in: Excel 2010+

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

COVARIANCE.P measures how two complete data sets move together, dividing by n (COVARIANCE.S divides by n-1).

Advertisement

Syntax

=COVARIANCE.P(array1, array2)
Argument What it means
array1, array2 Same-size ranges

Examples

Example 1

=ROUND(COVARIANCE.P(INDEX($H$1:$L$3,A2,0),{1,2,3,4,5}),3)

Result: 6. See the worked example table below for more cases.

COVARIANCE.P in practice

Where you will use it

  • Covariance of two full years of monthly figures
  • Portfolio maths on complete data
  • Teaching

Worked example

CaseFormulaResult
1=ROUND(COVARIANCE.P(INDEX($H$1:$L$3,A2,0),{1,2,3,4,5}),3)6
2=ROUND(COVARIANCE.P(INDEX($H$1:$L$3,A3,0),{1,2,3,4,5}),3)1.2
3=ROUND(COVARIANCE.P(INDEX($H$1:$L$3,A4,0),{1,2,3,4,5}),3)-4

Results calculated in Excel.

Mistakes people make

MistakeWhat to do instead
Sample dataUse COVARIANCE.S
Different sizes#N/A

COVARIANCE.S · CORREL

📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.

Advertisement
✨ Ask AI about this article

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

Free · AI can be wrong