Excel VAR.S function
The VAR.S function calculates the variance based on a given sample.
Excel variance functions
The following table lists all Excel variance functions and their usage notes, which can help you choose the one that best suits your needs.
|| Data type
|| Text and logicals in references
VAR(number1, [number2], ...)
- Number1 (required): The first sample number used in the calculation;
- Number2, ... (required): The second and more sample numbers used in the calculation.
1.The VAR.S function was first introduced in Excel 2010 to replace the VAR function. It is available in Excel 2010 and later versions.
2. There can be up to 255 arguments at a time.
3. Arguments can be either of:
-- Range names, arrays or cell references that contain numbers.
4. The VAR.S function takes the arguments as a sample of the population.
If the data you provided represents the whole population, it is recommended to use the VAR.P function
5. Logical values and text representations of numbers that you directly type in the arguments will be included in the calculation:
-- Logical values: TRUE (1) or FALSE (0);
-- Text representations of numbers: Numbers enclosed in double quotation marks such as “2”.
5. Empty cells, logical values, text, or error values will be ignored in the array or cell references.
If you want to include logical values, text representations of numbers in the array or cell references as part of the calculation, it is recommended to use the VARA function
7. The #VALUE! error occurs if any of the supplied arguments you typed directly in the function are text strings that cannot be interpreted as numbers by Excel.
8. The #DIV/0! error occurs if there are less than 2 numeric values supplied to the function.
9. The equation of the VAR function is as follows:
-- x represents each value in the sample.
is the average of the sample.
-- n is the number of cells in the sample range.
It returns a numeric value.
The following table is a sample of scores. To estimate the variance based on it, you can do as follows.
Select a cell (says F6 in this case), enter the formula below and press Enter to get the result.
Note: The argument in the formula above is supplied as a cell range. However, you can change the formula as follows:
The Best Office Productivity Tools
- One second to switch between dozens of open documents!
- Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
- Increases your productivity by 50% when viewing and editing multiple documents.
- Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.