In Excel: use =VAR.S(range) for a sample, or =VAR.P(range) for a full population.
On this page7
List your numbers in one column or row.
In a blank cell type =VAR.S( and select the range.
Press Enter for the sample variance.
Use =VAR.P(range) when the data is the whole population rather than a sample.
What this does
Variance is the average squared distance of each value from the mean — the raw measure of spread that standard deviation is built on. Because it squares the differences, its units are squared too (euros², points²), which is why standard deviation, its square root, is usually the figure people quote. Variance still matters wherever the maths needs the un-rooted quantity, such as combining the spread of independent sources. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. Treat “coefficient of variance excel formula” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected formula shows up while it is still harmless. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That turns a calculation you can defend to a CFO or an auditor into a method you can reuse, explain, and defend when the workbook leaves your screen.
A worked example
For 12, 15, 9, 21, 17, 14 (mean 14.67), =VAR.S(A1:A6) returns about 17.07. Take its square root and you get the standard deviation, ≈4.13. Variance underpins portfolio theory, ANOVA, and any model that has to add up uncertainty from several sources. When the next step is more maths rather than a human-readable report, variance is the quantity you keep. Check the referenced cells, argument order and result type in your workbook. Start with the worked example before changing an input, then compare the changed result with the calculation you expected. An error value or a result of a different type is a reason to inspect the inputs and arguments.
In Google Sheets
Google Sheets support for this task has not been verified. Check the function, arguments and workflow in the target product before transferring the example. Matching formula notation does not establish identical behaviour. Nothing on this page is behind a login or a download: the exact answer is at the top, and the detail below it is there for when you need it. That is the whole promise here — the answer first, and just enough context to make it stick. For “coefficient of variance excel formula”, keep the input cells and the result visible while you check the formula in Excel. Follow the worked example and change one input at a time. The steps explain the workbook calculation; this page does not run a live calculator for that task.
Common mistakes
- Reporting variance where readers expect standard deviation — the squared units mislead.
- Choosing VAR.P for a sample, which understates the true spread.
- Including non-numeric cells in the range.
- Forgetting that adding a constant to every value leaves variance unchanged, while scaling multiplies it by the square.
Frequently asked questions
Variance or standard deviation?
Report standard deviation to humans (same units as the data); keep variance for further calculation, where its additive property across independent sources is convenient.
Why square the differences?
Squaring removes the sign so positive and negative deviations do not cancel, and it penalises large deviations more, which is exactly what a spread measure should do.
Does Google Sheets have VAR.S?
Yes — VAR.S and VAR.P work identically in Google Sheets, so these formulas transfer with no change.