Skip to main content

Excel COVAR Function

Author: Amanda Li Last Modified: 2022-12-09

The COVAR function returns the covariance, the average of the products of deviations of two sets of values.

Note: The COVAR function has been replaced with COVARIANCE.P and COVARIANCE.S with improved accuracy. Although COVAR is still available in current versions of Excel, you should consider using the new functions from now on, because COVAR may not be available in Excel’s future versions.

covar function 1


=COVAR(array1, array2)


  • array1 (required): The first range of numbers.
  • array2 (required): The second range of numbers.

Return Value

The COVAR function returns a numeric value.

Function Notes

  • array1 and array2 must be numbers, or names, arrays or references that contain numbers.
  • array1 and array2 must be equal in length. Otherwise, COVAR function returns #N/A error value.
  • If array1 or array2 contains text(s) or logical values or empty cells, COVAR function will ignore them.


To calculate the covariance for each data point of the two arrays as shown in the table below, please copy or enter the below formula in the result cell (E6), and press Enter to get the result.


covar function 2

Related functions

Excel COVARIANCE.P Function

The Excel COVARIANCE.P function returns the population variance of two data sets which is used to determine the relationship between two data sets.

Excel COVARIANCE.S Function

The Excel COVARIANCE.S function returns the sample variance of two data sets.

Excel CORREL Function

The CORREL function returns the correlation coefficient of two cell ranges, which can be used to determine the relationship between two properties.

The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ...
Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup...
Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List...
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  Compare Columns to Select Same & Different Cells ...
Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...


Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Leave your comments
Posting as Guest
Rate this post:
0   Characters
Suggested Locations