Excel Variance Calculator & Range Audit
Paste a single worksheet column, then choose a contiguous row range. See which entries are treated as numbers, text, logicals or blanks. Review sample and population variance together with each row’s contribution and its exact leave-one-out variance.
Audit the variance of a spreadsheet range
See which cells count, compare VAR.S and VAR.P, and check how each numeric row changes the result.
Column and range
Paste one cell per line. Put an apostrophe before numbers or logical values stored as text. Blank lines keep their row positions.
4 numeric cells included. 4 nonnumeric cells ignored.
Variance by denominator
- Selected range
- A1:A8
- Mean of numeric cells
- 11.5
- Exact 23/2
- Sample variance (VAR.S)
- 25.66666667
- Exact 77/3
- Population variance (VAR.P)
- 19.25
- Exact 77/4
Sample divides by the numeric count minus one. Population divides by the numeric count.
Which rows drive the variance?
Each bar shows a row’s share of all squared deviations from the current mean.
- Row 7 contributes 73.05% of the squared deviations.
- Row 1 contributes 15.91% of the squared deviations.
- Row 2 contributes 8.117% of the squared deviations.
- Row 6 contributes 2.922% of the squared deviations.
- Entered value
- 19
- Squared deviation
- 56.25
- Share of total
- 73.05%
- VAR.S without row 7
- 1
Removing the row recalculates the mean, squared deviations and denominator.
Row-by-row audit
Check the detected type before comparing results with the spreadsheet.
| Row | Entered cell | Type | Range treatment |
|---|---|---|---|
| 1 | 8 | Number | Included |
| 2 | 9 | Number | Included |
| 3 | '10 | Text | Ignored |
| 4 | TRUE | Logical | Ignored |
| 5 | — | Blank | Ignored |
| 6 | 10 | Number | Included |
| 7 | 19 | Number | Included |
| 8 | Pending | Text | Ignored |
Export the variance audit
The CSV includes exact fractions and each row’s treatment. Import exact fields as text when opening in a spreadsheet.
View CSV text
How to use this calculator
- Paste one column with one cell per line. Prefix text that looks like a number or logical value with an apostrophe.
- Set the first row and optional last row. Read the detected cell types and resolve any flagged cells inside the selected range.
- Compare VAR.S and VAR.P. Select a numeric row to compare its squared deviation and what the chosen variance would be with that row removed.
- Download the audit to preserve exact values and row contributions.
The Formula
The mathematical logic powering this calculation is:
For the selected range, use only cells classified as numbers. Let n be their count, T their sum and U their sum of squares. The mean is T/n and the centered sum of squares is S = U−T²/n. VAR.P = S/n when n ≥ 1. VAR.S = S/(n−1) when n ≥ 2.
A numeric row x contributes (x−T/n)² to S. Divide by S to find its share when S is positive. To test removing that row, recalculate using n−1, T−x and U−x². This updates both the mean and the variance denominator. A large contribution is a way to inspect the arithmetic, not a rule for discarding a value.
The worksheet models numeric-only spreadsheet range arguments. Logical values and text within a range are skipped, including text that looks numeric. Plain paste cannot preserve original spreadsheet cell types, so use a leading apostrophe to mark text explicitly. If an active row contains a recognized spreadsheet error, a formula, an unsupported numeric magnitude or tabs, the audit flags the row and holds the variance until it is corrected or the range changes. Use decimal values for formatted dates or percentages if they are intended to count as numbers.
Paste up to 64 lines and 6,000 characters. The last row can be left blank to use the extent of the paste. One terminal line separator is trimmed, and interior blank rows are retained. Numeric inputs accept magnitudes up to 1 trillion, up to 12 fractional digits in the mantissa, and powers of ten from −12 to 12. Results in the CSV preserve exact fractions for the entered decimals. Spreadsheet functions may round to their own representation. Exported source cell text is labeled so potentially formula-like data stays plain text.Worked Example
If you input:
- Numeric cells: 8, 9, 10, 19
- Other cells: 10 stored as text, TRUE, blank, Pending
Result:
Four numeric cells have mean 11.5 and centered sum of squares 77. VAR.S is 77/3 and VAR.P is 77/4. Removing 19 leaves a sample variance of 1.
Frequently Asked Questions
Which variance function should I use in Excel?
For numeric range arguments, VAR.S applies the sample denominator n−1. VAR.P applies the population denominator n. Choose the one that corresponds to the observations you are analyzing.
Why was my number counted as text?
An apostrophe explicitly marks text. In the source spreadsheet, an apparent number can also be stored as text. Use the row audit to check classifications and match the types in the source.
Do zero and blank have the same effect?
No. Numeric zero contributes to the count and may change the mean and variance. A blank has no numeric value and is excluded.
What does the leave-one-out variance tell me?
It is the variance of the remaining numeric values with a new mean and count. It helps trace sensitivity to a row as part of an audit.
Similar Calculators
Standard Deviation Calculator
Calculate sample or population standard deviation, variance, mean and extrema from complete decimal data. Preserve small differences and identify invalid entries.
One-Way ANOVA & F Statistic Calculator
Calculate a one-way ANOVA F statistic and p-value from observations or sample summaries. Compare group variation, review the ANOVA table and export CSV.
Mean, Median & Mode Calculator with a What-If Test
Find the mean, median and modes of raw values or exact counts. See what one replacement or addition changes and solve for a target mean.
