VAR.S Function

A computational function used in Microsoft Excel to calculate the variance of a given model.

Author: Caira Sotingco
Caira Sotingco
Caira Sotingco
Reviewed By: Parul Gupta
Parul Gupta
Parul Gupta
Working as a Chief Editor, customer support, and content moderator at Wall Street Oasis.
Last Updated:February 24, 2024

What is the VAR.S Function?

The VAR.S function is a computational function used in Microsoft Excel to calculate the variance of a given model.

Estimating the variance of a model involves assessing the spread of data points around the mean. Mathematically, variance measures the average squared deviation of each data point from the mean of the dataset.

Similarly, the Excel function VAR.P also calculates the variance of a given model. The major difference between the two functions is the sample size being studied. The VAR.P function in Excel calculates the variance of a population, considering all data points, rather than just a sample.

The VAR.S function in Excel calculates the variance of a sample, representing a subset of the entire population. This may yield a different result compared to calculating the variance for the entire population

Key Takeaways

  • VAR.S in Excel calculates the variance of a sample dataset, assessing the spread of data points around the mean. It differs from VAR.P by considering only a subset of the population.
  • To use VAR.S in Excel, employ the formula: VAR(number1, [number2],..), where number1 represents the sample dataset, and additional arguments can include up to 254 values or arrays of values.
  • Access VAR.S in Excel via the Formulas tab, navigate to More Functions, select Statistical, then VAR.S. Alternatively, type "=VAR.S" in the desired cell and input the sample data.

Formula Of VAR.S Function

To calculate the variance of a model, you will need the following formula:

VAR(number1, [number2],..)

Where

  1. Number1 (required argument): Represents the initial argument about a sample of a population
  2. Number 2,…  (optional argument): These additional arguments can include up to 254 values or arrays of values, ensuring a minimum of two values for the function

All inputs for the VAR.S function must be numerical values. Text representations, such as “one” or “two,” are not accepted in the VAR.S calculation in Excel.

How to use VAR.S Function in Excel?

The VAR.S function can be navigated within the Excel sheet in the following steps:

  1. Formula tab
  2. More Functions
  3. Statistical
  4. VAR.S

For a quicker search, simply type in “=VAR.S” in the desired cell or table and continue utilizing the sample set to reach your calculations of the given dataset.

Another way to locate the VAR.S function is to follow the steps as directed in the instructions:

  • In the Excel sheet, locate the Formulas tab at the top bar
  • Click on More Functions
  • In the dropdown bar, you will see six additional categories. Click on Statistics
  • Another drop-down bar will appear with functions in alphabetical order. Simply scroll down and locate “VAR.S.”Function

Remember that VAR.S calculates the variance of a sample dataset, while the VAR.P function calculates the variance of an entire population.

Note

The VAR function in Excel will return the same answer as the VAR.S function because both functions take the data from a given sample set to calculate its variance.

VAR.S Function Example

For example, let's find the number of cars owned by ten residents living in an apartment complex to calculate the variance of the residents who own cars.

Table

As shown above, we took a portion or a small sample of an entire apartment complex to calculate the variance. In doing so, the VAR.S function is most suitable for this specific dataset of residents who own cars.

Once we input the necessary data, you may notice that the variance is calculated at the bottom. The component “number1” category is labeled as the number of residents studied in the sample and the number of cars.

In the highlighted cell, B12, the calculated variance for the number of cars residents own is 1.1667. The formula bar also represents this calculation as “=VAR.S(B2:B11)”.

Formula

If you have a second sample set, highlight the first sample set for “number1” followed by a comma, then highlight the second for the optional formula component “number2.”

Calculation

Double-check for errors in calculations to ensure accurate data input. Errors such as #DIV/0! or #VALUE! may arise due to:

  • Inputting only one numerical value
  • Inputting non-numerical values

Free Resources

To continue learning and advancing your career, check out these additional helpful WSO resources: