# VAR.P Function

Returns the variance of a given set of values

## What is the VAR.P Function?

The VAR.P Function is categorized under Excel Statistical functions. This function will return the variance of a given set of values. It was introduced in MS Excel’s 2010 version.

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

As a financial analyst, the VAR.P function can be useful in calculating variances in revenue. Portfolio managers often use the function to measure and keep a track of their portfolios’ risk.

### Formula

=VAR.P(number1,[number2],…)

The VAR.P function uses the following arguments:

1. Number1 (required argument) – This is the first argument corresponding to a population.
2. Number 2,.. (optional argument) – Here, the number arguments can be up to 254 values or arrays of values that provide at least two values to the function.

When providing the arguments, we need to remember that:

1. VAR.P assumes the given data represents the entire population. If data represents a sample, compute variance with VAR.S.
2. VAR.P only evaluates numbers in references, ignoring empty cells, text, and logical values like TRUE or FALSE.
3. Arguments can either be numbers or names, arrays, or references that contain numbers.
4. Arguments can be hard-coded values instead of references.
5. To evaluate logical values and/or text, use the VARPA function.

### How to use VAR.P Function in Excel?

As a worksheet function, VAR.P can be entered as part of a formula in a worksheet cell. To understand the uses of the function, let’s see an example:

#### Example

Suppose we are given the monthly sales figures of a business over the last three years, as shown below: For the variance of the given population, the formula used is: We get the results below: In the example above, we took the arguments for the VAR.P function as input in the form of three cell ranges. However, we can also enter the figures directly, either as individual numbers or number arrays.

### A few things to remember about the VAR.P Function

1. #DIV/0! error – Occurs if we did not provide any numeric values as arguments.
2. #VALUE! error – Occurs when any of the values provided directly to this function are text values that cannot be interpreted as numbers.
3. VAR.P function is used when calculating the variance of an entire population. If your data is just a sample of the population, you should use the VAR.S function.