Solveeit Logo

Question

Question: What Excel formula does one use to calculate the variance between two cells?...

What Excel formula does one use to calculate the variance between two cells?

Explanation

Solution

To understand how one uses to calculate the variance between two cells, we will first understand the meaning of the term ‘Variance’ of a probability distribution. Variance tells us how far is a number in the data set from the mean. It is one of the most important tools in probability distribution and statistics.

Complete step by step solution:
Let us first see how to calculate variance mathematically. Let us suppose we have a data set of five items as: 1, 2, 3, 4 and 5.
The mean of this data set is equal to:
=1+2+3+4+55 =3 \begin{aligned} & =\dfrac{1+2+3+4+5}{5} \\\ & =3 \\\ \end{aligned}
So, the variance is the distance of each data from the mean. So, we will subtract mean from each number to get the variance. This can be represented with the help of following table:

DataMeanVariance
13-2
23-1
330
431
532

Now, in an Excel formula, there are six built-in functions to do variance. These are: VAR, VAR.S, VARP, VAR.P, VARA and VARPA.
The choice of our variance formula depends on the version of Excel, whether we are calculating sample or population variance and whether we want to solve or ignore text and logical data.
Considering all these factors in mind, the proper order of these built-in variance Excel formula could be written as:

NameExcel VersionData TypeText and logical
VAR2000-2019SampleIgnored
VAR.S2010-2019SampleIgnored
VARA2000-2019SampleEvaluated
VARP2000-2019PopulationIgnored
VAR.P2010-2019PopulationIgnored
VARPA2000-2019PopulationEvaluated

Thus, the above data table could be used to get the Excel formula to calculate variance of between two cells according to their data type.

Note: Whenever calculating the variance analysis in Excel, one should provide arguments as values, arrays and cell-references. To evaluate only numericals ignoring empty cells, use the VAR or VAR.S . And to evaluate text and logical values, use the VARA or VARPA function.