Excel Varp Function

Related Function:
VAR Function
Variance

The Variance is a statistical measure, that is commonly used across a set of values, to identify the amount that the values vary from the average.

For any set of values, the equation for calculating the Variance is:

Population Variance Equation

where,

  • x takes on each value in the set;
  • x is the average of the set of values;
  • n is the number of values.
For further details, see the Wikipedia Variance page
VARP and VAR.P

In Excel 2010, the VARP function has been replaced by the VAR.P, which has improved accuracy.

Although it has been replaced, the Varp function is still available in Excel 2010 (stored in the list of compatibility functions), to allow compatibility with earlier versions of Excel.

Function Description

The Excel VARP function returns the Variance of a given set of values.

The syntax of the function is:

VARP( number1, [number2], ... )

Where the number arguments are values or arrays of values that provide a minimum of 2 numeric values to the function.

Notes:


Varp Function Example

Example of use of the Excel Varp Function

A company has kept a record of its monthly sales figures, over three years. These are stored in cells B3-B14, D3-D14 and F3-F14 of the above example spreadsheet on the right.

The variance of the three years' sales figures is calculated in cell H3 of the spreadsheet. The formula for this, (shown in the formula bar), is:

=VARP( B3:B14, D3:D14, F3:F14 )

As shown in cell H3, the calculated variance for the 3 years of sales figures is 6,170,524.69.


Other Argument Types

The example above shows the arguments to the Varp function being input in the form of 3 cell ranges. However, you can also input figures directly, as individual numbers or number arrays.

For example, if, during January and February 2012 the sales figures are 13,000 and 14,500 you can add these directly into the above function as follows:

Either as individual numbers:

=VARP( B3:B14, D3:D14, F3:F14, 13000, 14500 )

or, as an array of numbers:

=VARP( B3:B14, D3:D14, F3:F14, {13000,14500} )

This gives the updated variance of 5,930,921.05.


For further details and examples of the Excel Varp function, see the Microsoft Office website.


Varp Function Errors

If you get an error from the Excel Varp Function, this is likely to be one of the following:

Common Errors
#DIV/0! - Occurs if none of the values that have been supplied to the Varp function are numeric.
#VALUE! - Occurs if any values that are supplied directly to the Varp function are text values that cannot be interpreted as numeric values.