How To Calculate Variance In Excel

7.1 min read|Last Updated: January 26th, 2024|Categories: excel|
table of content

The Excel statistical functions include the variance, the average (Internal link – how to calculate average in Excel), etc. There are about four hundred functions modified in Excel, and six of them calculate the variance exclusively.

Therefore the Microsoft office Excel software (MS-Excel) helps to reduce the computation time of this index.

In this tutorial, we will learn all these six functions and how to use them based on your data (The most crucial point is that you should know if your data is a sample or population.)

 

The Concept of the Variance

The evaluation of the spread among numbers in a data set is the Variance. Mathematically it’s specified as the average of the squared differences from the mean.

A large variance means numbers in the set are far from the mean and each other, while a small variance demonstrates the opposite.
Learn more: (https://www.mathsisfun.com/data/standard-deviation.html)

 

Calculating Variance in Excel

Excel variance formulas have two types of calculation:

  1. The Statistical functions calculate the variance for an entire population. These functions are VAR.P, VARP and VARPA.

VAR.P: 

This function calculates the variance of the whole population. By the way, the VAR.P function ignores cells with text and logical values (True or False) in reference.

The syntax of VAR.P function: 

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

Number 1: The data (cell, number, etc.) that we want to calculate variance (you can enter the whole range instead of entering the data one by one.)

[number 2], [number 3], … are optional.

How to use the syntax of VAR.P function in Excel
Picture 1- The syntax of the VAR.P function

Use the INSERT FUNCTION Option to Calculate VAR.P

All functions are predefined in Excel. To enter the VAR.P formula, apply the following steps:

  1. Select an empty cell.
  2. Go to the Formulas tab from the ribbon.
  3. Click on the Insert Function from the Function Library group. 
  4. In the Insert Function dialogue box, you have two choices to enter the function.
  • Search for function (search VAR.P)
  • Select the category then select a function (select the Statistical category then select the VAR.P function from the menu.)
  1. Click OK, then the Function Arguments dialogue box appears.
  2. Click in the Number 1 box and enter the first data from the reference (number 1, number 2, … are 1 to 255 numeric arguments corresponding to a population.) Also you can enter your whole range in the Number 1 box.
  3. Press OK.
https://www.youtube.com/watch?v=sflM6lru2ak&list=PLyxa4neX6qJ0dVaKfhev8lmCT03mH-nCu&index=2&t=0s
Video 1- Use the Insert Function to calculate the VAR.P function

 

VARP: 

This function is compatible with Office 2016 and previous versions, but In the new versions, the VAR.P was replaced with the VARP. Anyway, there is no difference between these two functions.

The syntax of the VARP function:

=VARP(number1, [number2], …)

Number 1: The data (cell, number, etc.) that we want to calculate variance. (you can enter the whole range instead of entering the data one by one.)

[number 2], [number 3], … are optional.

How to use the syntax of VARP function in Excel
Picture 2- The syntax of the VARP function


Use the INSERT FUNCTION Option to Calculate VARP

To enter the VARP formula, execute the following steps:

  1. Select an empty cell.
  2. Go to the Formulas tab from the menubar.
  3. Click on the Insert Function button. 
  4. In the Insert Function dialogue box, you have two choices to enter the function.
  • Search for function (search VARP)
  • Select the category then select a function (select the Statistical category then select the VARP function from the menu.)
  1. Click OK, then the Function Arguments dialogue box appears.
  2. Click in the Number 1 box and enter the first data from the reference (number 1, number 2, … are 1 to 255 numeric arguments corresponding to a population.)
  3. Press OK.
https://www.youtube.com/watch?v=appJrpQ0hA0
Video 2- Use the Insert Function to calculate the VARP function

 

VARPA: 

We mentioned that the VARP and VAR.P functions ignore the text (which is evaluated as 0) and logical values (i.e. True or False; The True will be evaluated as one, and the False will be evaluated as zero). Still, the VARPA function returns the variance based on an entire population of numbers, text, and logical values.

The syntax of the VARPA function:

=VARPA(number1, [number2], …)

Number 1: The data (cell, number, etc.) that we want to calculate variance (you can enter values one by one or enter a range.)

[number 2], [number 3], … are optional.

How to use the syntax of VARPA function in Excel
Picture 3- The syntax of the VARPA function

Use the INSERT FUNCTION Option to Calculate VARPA

To enter the VARPA formula, execute the following steps:

  1. Select an empty cell.
  2. Hold Shift and press F3 on your keyboard.
  3. In the Insert Function dialogue box, you have two choices to enter the function.
  • Search for function (search VARPA)
  • Select the category then select a function (select the Statistical category then select the VARPA function from the menu.)
  1. Click OK, then the Function Arguments dialogue box appears.
  2. Click in the Number 1 box and enter the first data from the reference (number 1, number 2, … are 1 to 255 numeric arguments corresponding to a population.)
  3. Press OK.
  1. The Statistical functions calculate the variance for a sample. These functions calculate sample variance in Excel: VAR.S, VARS and VARA.

VAR.S:

This Excel function calculates the variance of a sample. But ignore cells that contain text and logical values; in other words, the VAR.S evaluate the numbers passed into as cell references.

The syntax of the VAR.S function:

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

Number 1: The data (cell, number, etc.) that we want to calculate variance.

[number 2], [number 3], … are optional.

How to use the syntax of VAR.S function in Excel
Picture 4- The syntax of the VAR.S function

 

Use the MORE FUNCTION Option to Calculate VAR.S

In addition to using the Insert Function option, you can find your formulas with the following steps.

  1.  Select an empty cell.
  2.  Go to the Formulas tab from the ribbon.
  3.  Click on the More Functions button.
  4.  Select the Statistical from the menu.
  5.  Select the VAR.S function.
  6.  In the Function Arguments dialogue box, Click in the Number 1 box and enter the first data from the reference (number 1, number 2, … are 1 to 255 numeric arguments corresponding to a population.)
  7.  Press OK.
How to calculate the VAR.S function by the More Functions option
Picture 5- Use the More Function option to calculate the VAR.S

 

VAR: 

All we talked about VAR.S applies for VAR function too. Actually, the VAR.S was replaced with the VAR function in the new versions. 

VARA:

The VARA function is able to estimate the sample variance for the data containing text (which is evaluated as 0) and logical values (the True will be evaluated as one, and the False will be evaluated as zero.)

The syntax of the VAR.S function:

=VARA(number1, [number2], …)

Number 1: The data (cell, number, etc.) that we want to calculate variance.

[number 2], [number 3], … are optional.

Also, you can use options like the Insert Function or the More function, as we mentioned, to calculate the VARA function.

 

 

How to Calculate the Coefficient of Variance in Excel

In the statistical analysis, the coefficient of variance is a comparing dispersion index of two or more variables. The difference among these variables is the unit of measurement.

Learn more: ( https://en.wikipedia.org/wiki/Coefficient_of_variation )

The coefficient of variation expresses the dispersion rate per unit of the mean. This indicator applies only to the relative measurement level

The general formula in statistical mathematics:

CV= Standard deviation / Mean

The syntax of the population CV function:

=STDEV.P(number1, [number2], …)/AVERAGE(number1, [number2], …)

The syntax of the sample CV function:

=STDEV.S(number1, [number2], …)/AVERAGE(number1, [number2], …)

Number 1: The data (cell, number, etc.) that we want to calculate variance.

[number 2], [number 3], … are optional.

Note: Enter numeric data.

Here’s an example that shows how the sample CV function works:

How to calculate the sample CV function in Excel
Picture 6- An example of the sample CV function
https://www.youtube.com/watch?v=XvD2MqNSe0A
Video 3- Usage of the sample CV function in Excel

 

You can connect with us and ask our experts about your questions and get support (bsuite365.com)

Reduce costs, accelerate tasks, and improve quality with Excel automation (bsuite365.com)

Our experts will be glad to help you, If this article didn't answer your questions.

Share now:

About the Author: Paria.S

Leave A Comment

contact us

Contact us today at and speak with our specialist.