Skip to content

Latest commit

 

History

History
50 lines (29 loc) · 1.43 KB

Excel.WorksheetFunction.Covariance_S.md

File metadata and controls

50 lines (29 loc) · 1.43 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
WorksheetFunction.Covariance_S method (Excel)
vbaxl10.chm137364
vbaxl10.chm137364
Excel.WorksheetFunction.Covariance_S
b660d4b7-80d4-3b79-f987-373f01020e6d
05/22/2019
medium

WorksheetFunction.Covariance_S method (Excel)

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

Syntax

expression.Covariance_S (Arg1, Arg2)

expression A variable that represents a WorksheetFunction object.

Parameters

Name Required/Optional Data type Description
Arg1 Required Variant Array1 - The first cell range of integers.
Arg2 Required Variant Array2 - The second cell range of integers.

Return value

Double

Remarks

The arguments must either be numbers or be names, arrays, or references that contain numbers.

If an array or reference argument contains text, logical values, or empty cells, those values are ignored; however, cells with the value zero are included.

If array1 and array2 have different numbers of data points, Covariance_S returns the #N/A error value.

If either array1 or array2 is empty or contains only one data point each, Covariance_S returns the #DIV/0! error value.

[!includeSupport and feedback]