Variance tells you how spread out your numbers are. If sales bounce between $40K and $80K each month, you've got high variance. If they stay glued near $50K, variance is low. It's a single number that captures consistency, and Excel can compute it for you in one keystroke. The math behind it has been around since the 19th century, but you'll never need to do that math by hand once you know which function to call.
This guide walks through the two main functions you'll use, VAR.S for samples and VAR.P for entire populations. You'll also meet the older VAR, the rarely-needed VARA, and the budget-variance formulas that finance teams actually run every month.
You'll see how variance connects to standard deviation, why one is more useful in reports, and how to dodge the classic mistakes that tank an analysis. Whether you work in finance, ops, marketing, or product, the patterns repeat. The half-hour you spend learning this once pays back forever.
Before opening Excel, it helps to nail down what variance actually measures. Variance is the average of the squared distances between each value and the mean. Squaring keeps every difference positive โ otherwise deviations above and below the average would cancel out. Then you average them.
The downside? Squaring inflates units. If you measure dollars, variance is in dollars-squared, which nobody intuitively understands. That's why most reports show standard deviation instead. Variance is still the foundation of ANOVA, regression, and F-tests, so analysts can't ignore it. Get the basics right and you'll handle both the math and the messy spreadsheet realities. For more foundational formula skills, brush up on Excel formula basics before diving deeper.
Quick answer: use =VAR.S(A1:A100) when your data is a sample (most cases). Use =VAR.P(A1:A100) when your data covers the entire population. Both return a squared number; take the square root with STDEV.S or STDEV.P for an interpretable result in original units.
Use when: your data is a sample drawn from a larger population. This is the right choice 95% of the time in business analysis.
Syntax: =VAR.S(value1, [value2], ...) โ accepts up to 255 arguments, individual cells, or ranges.
Why it divides by n-1: samples slightly underestimate true population spread. Dividing by n-1 (Bessel's correction) corrects the bias. The result is a more honest estimate when you're inferring something about a bigger group.
Example: =VAR.S(A1:A6) returns about 46.97 for monthly sales of $45K, $52K, $48K, $61K, $43K, $55K.
Use when: your data IS the entire population โ every customer, every employee, every transaction. No sampling involved.
Syntax: =VAR.P(value1, [value2], ...) โ same arguments as VAR.S.
Why it divides by n: when you have everyone, no correction is needed. Pure descriptive statistic.
Example: =VAR.P(A1:A6) on the same sales data returns about 39.14 โ slightly smaller because the divisor is 6 instead of 5.
Confusing them won't break your spreadsheet, but it will skew any inference you draw.
Variance and standard deviation describe the same spread, just packaged differently. Standard deviation is the square root of variance.
Variance: squared units, additive across independent groups, used internally for ANOVA and regression.
Standard deviation: original units, easier to read, used in confidence intervals and reports.
For stakeholder reports: present mean ยฑ SD. For F-tests and statistical models: feed in the variance. To go deeper on the related calculation, study standard deviation in Excel.
Use when: almost never. These functions include text and logical values in the calculation. Text counts as 0, TRUE counts as 1, FALSE counts as 0.
Syntax: =VARA(value1, [value2], ...) and =VARPA(value1, [value2], ...)
Most analysts skip them because mixing data types into a numeric calculation usually signals a cleanup problem, not a real need. Filter your data first, then use VAR.S or VAR.P.
Let's run a real example. Open a blank sheet and type six numbers in column A: 45, 52, 48, 61, 43, 55. These represent monthly sales in thousands. In cell B1 type =AVERAGE(A1:A6) โ you'll get 50.6667. In B2 type =VAR.S(A1:A6) โ about 46.97. In B3 type =STDEV.S(A1:A6) โ about 6.85.
What does that tell you? Most months land within $6.85K of the $50.67K average. One outlier (the $61K month) is pulling spread upward. If you ran the same calculation on a year of data and saw variance climb to 200, you'd know consistency is slipping. A single number summarizes how predictable your process is.
Try changing one value to $90K and watch variance triple. The function rewards extreme values quadratically because every deviation gets squared. Outliers carry far more weight than they would in a simple average.
This sensitivity is both a feature and a bug. It's a feature when you want a metric that screams the moment your process drifts. It's a bug when one bad data point or typo distorts your entire analysis. Always eyeball your raw data for obvious errors before computing variance, and consider robust alternatives like AVEDEV (mean absolute deviation) when you suspect dirty inputs.
A practical workflow: compute both the mean and the variance side by side in two adjacent cells. Then add a sparkline showing the raw data. Your eye will catch outliers in seconds, and the numeric variance gives you the precise figure for any report or dashboard you build on top. Pin those cells to a summary tab so every refresh keeps the snapshot consistent across stakeholders and weeks.
If you want to see how Excel arrives at the result, calculating variance manually is a good five-minute exercise. Walk through the steps once and the formula stops feeling like a black box. You'll also catch errors faster when something looks off in your data. The five-step pattern below is the same one VAR.S runs internally, just with a calculator instead of a CPU.
Add all values and divide by the count. For 45, 52, 48, 61, 43, 55: total is 304, divided by 6 is 50.67.
From each value, subtract the mean. You'll get deviations like -5.67, 1.33, -2.67, 10.33, -7.67, 4.33.
Squaring removes negatives and emphasizes outliers. Results: 32.15, 1.77, 7.13, 106.71, 58.83, 18.75.
Add them all up. Total: 225.34. This is the sum of squares (SS), the building block of variance.
For sample variance, divide by 5 (n-1): 225.34 / 5 = 45.07. For population, divide by 6: 37.56. (Slight rounding differs from VAR.S output.)
One question trips up almost every newcomer: when do I use VAR.S versus VAR.P? The honest answer is that VAR.S fits the vast majority of real-world cases. You're almost always working with a sample, even if it doesn't feel that way. A year of monthly sales is a sample of your business's possible outcomes. Last quarter's customer survey responses are a sample of customer opinion. Test scores from one classroom are a sample of student ability.
True populations are rare. Every employee in your company on payroll day? Sure, that's a population. Every transaction in March? Yes. But the moment you want to predict next month or generalize, you're back to sample territory. When in doubt, default to VAR.S. The Bessel correction nudges your estimate toward truth.
The numerical difference between the two formulas shrinks as your sample grows. For datasets above a few hundred rows the choice barely matters. For small samples โ under 30 rows โ the difference is real, and using the wrong function can throw off your inference noticeably.
Errors happen. You'll see #DIV/0! when there's only one value (or every value is identical) and Excel can't divide by n-1 = 0. Fix it by adding more data or switching to VAR.P. #VALUE! shows up when text sneaks into a numeric range โ usually a stray header row or an apostrophe-prefixed number. #NUM! is rare but appears with extreme magnitudes that overflow Excel's number storage.
The trickiest error doesn't look like an error at all: using VAR.P on a sample. Excel returns a clean number, you paste it into a report, and your inference is biased. There's no warning. The only defense is discipline about which function fits your data. If you need a refresher on writing safe formulas, our Excel formulas cheat sheet covers the syntax patterns that prevent half these problems. Build a habit of naming your ranges, too: =VAR.S(MonthlySales) reads better than =VAR.S(A2:A37) and survives row insertions.
For shared workbooks, drop a brief comment next to each variance cell explaining whether it represents a sample or the entire population calculation. Future-you (or your replacement) will thank you. Comments live with the formula and survive copy-paste, which a verbal hand-off across weeks never reliably does.
Now for the part that confuses non-statisticians: budget variance is not statistical variance. They share a name and live in the same spreadsheet, but they measure entirely different things. Statistical variance is always a non-negative number describing spread. Budget variance is a signed difference: actual minus budget. It can be positive (over budget) or negative (under budget), and there's no squaring involved.
Finance teams use budget variance constantly. Marketing spent $48K against a $50K budget? Variance is -$2K, or -4%. Sales hit $130K against a $120K target? Variance is +$10K, or +8.3%. The arithmetic is trivial; the meaning is everything.
Boards and CFOs care about the percentage as much as the dollar amount. A $5K miss against a $10K budget is catastrophic. A $5K miss against a $1M budget is rounding error. Always show both columns side by side.
Put your budget in cell A1 and actual in B1. In C1 type =B1-A1. Negative means under budget, positive means over. That's the absolute variance in dollars (or whatever unit you're tracking).
For a whole sheet, drag the formula down. Sum the column to see overall variance for the period.
In D1 type =(B1-A1)/A1*100. Or, format the cell as percentage and use =(B1-A1)/A1. This expresses the variance relative to the budget.
A $5K variance on a $10K budget (50%) is alarming. The same $5K on a $1M budget (0.5%) is rounding error. Always pair absolute variance with percentage for context.
Highlight your variance column, go to Home โ Conditional Formatting โ Color Scales. Pick the red-yellow-green palette. Now under-budget items glow green and overruns turn red at a glance.
Or use rules: format cells less than 0 as red, greater than 0 as yellow. Your monthly review meeting just got 80% faster.
For percentage thresholds, add a second rule that flags any cell exceeding ยฑ10% in bold. Material variances jump out instantly without anyone having to scan numbers.
Beyond the two main flavors of variance, Excel offers a constellation of related functions. Knowing what each one does saves you from reinventing wheels. The most useful for everyday analysis are STDEV.S (the workhorse for reports), AVERAGE (always pair it with variance), and STANDARDIZE (turns raw values into z-scores so you can compare across scales). Z-scores are particularly handy when you need to flag outliers programmatically: anything beyond ยฑ2 standard deviations is unusual; beyond ยฑ3 is rare.
For more advanced statistical work, F.TEST compares two variances directly and tells you whether they're significantly different. CONFIDENCE.NORM builds a confidence interval around your mean using SD and sample size.
The Data Analysis Toolpak (an Excel add-in, free with every Excel license) includes a one-click ANOVA that uses variance internally. Activate it under File โ Options โ Add-ins โ Manage Excel Add-ins โ Analysis ToolPak. Most analysts forget the Toolpak exists, then waste hours building things by hand that take it three clicks.
One concept worth adding to your toolkit: the coefficient of variation, or CV. It's the standard deviation divided by the mean, often multiplied by 100 for a percentage. Why bother? Because raw variance can mislead when you compare groups with different scales. A factory producing $1 widgets and a factory producing $1,000 turbines could both have a variance of 25 โ but for the widget factory that's catastrophic, while for the turbine factory it's invisible.
CV normalizes the comparison. In Excel: =STDEV.S(A1:A10)/AVERAGE(A1:A10). A CV of 0.05 (5%) means tight consistency. A CV of 0.50 (50%) means the data swings wildly.
Investors use CV constantly to compare risk-adjusted return across asset classes. Quality teams use it to compare process consistency across product lines. Marketers use it for campaign-to-campaign variance in conversion rates. Whenever your audience asks "is this normal?" โ CV gives a fair answer that doesn't get fooled by scale.
Where do you actually use variance day-to-day? Quality control teams track it on production lines: when variance creeps up, the process is drifting and needs investigation. Investment portfolios use variance as a direct measure of risk; modern portfolio theory is built on it, with Markowitz's foundational work treating variance as the very definition of risk. Sales teams compare forecast accuracy by computing variance between predicted and actual revenue across quarters.
HR departments use it to flag inconsistent performance reviews โ high variance across reviewers for the same employee suggests bias or unclear criteria. Operations teams measure cycle-time variance to find bottleneck-prone steps. Customer support measures resolution-time variance to spot processes that work for some tickets but not others.
Once you've internalized the concept, you'll see opportunities to apply it everywhere. The biggest mindset shift: low variance is usually a competitive advantage. Predictable processes, predictable revenue, predictable quality โ those compound into customer trust faster than headline numbers do.
Charts make variance tangible. Excel's built-in error bars on column or line charts can be set to standard deviation directly: select the chart, click the plus icon, choose Error Bars โ More Options โ Standard Deviation. The bars stretch one SD above and below each point, giving a quick visual cue for spread. Audiences who glaze over at numbers will react instantly to wide error bars on a forecast.
For richer views, the box-and-whisker plot (built into Excel 2016 and later) shows quartiles, median, and outliers in one shot. Histograms reveal whether your distribution is symmetric, skewed, or multimodal โ which matters because variance alone can hide structural patterns.
Two datasets with identical mean and variance can look completely different on a histogram. A scatter plot with a trendline shows variance as vertical scatter around the regression line. The tighter the cloud, the lower the residual variance.
A note on platforms: Excel for Mac handles VAR.S, VAR.P, VARA, and VARPA identically to Windows. The function names, syntax, and output match exactly. Excel for the Web supports VAR.S and VAR.P fully, though some advanced add-ins (like the Data Analysis Toolpak) aren't available in the browser version.
Google Sheets uses the same names for compatibility, so formulas port over with no rewrite. If you collaborate across platforms, this matters โ hand a workbook to a Mac user, a Windows user, or a browser-only stakeholder and trust the variance calc behaves the same.
One legacy quirk worth knowing: the older VAR function (no period) still works in modern Excel for backward compatibility. It returns the same result as VAR.S. Microsoft renamed it in Excel 2010 to make the sample-vs-population distinction explicit.
Use VAR.S in new spreadsheets; you'll only see plain VAR in older workbooks. The same applies to VARP, the legacy version of VAR.P. To level up your overall fluency, the same study path that covers how to do standard deviation in Excel teaches you the modernized function names. Pin them to memory and you'll skip the constant mental translation.
If you're moving from descriptive variance into inferential statistics, the next stop is the F-test. F.TEST(array1, array2) returns a p-value telling you whether two samples have significantly different variances. This matters before running a t-test โ some t-test variants assume equal variances and others don't. Picking the wrong variant is a classic mistake. The F-test is a two-second sanity check that prevents it.
Beyond F-tests, ANOVA decomposes total variance into between-group and within-group components โ useful when comparing multiple categories at once. Excel's Data Analysis Toolpak has a one-click ANOVA that wraps all the heavy lifting.
Linear regression's Rยฒ is also a variance ratio: it's the share of variance in the dependent variable explained by the model. When you see Rยฒ = 0.85, that means 85% of the spread in your outcome is captured by your inputs. Variance is the connective tissue of statistics, even when you don't see it explicitly in the formula.
Every Excel user runs into variance eventually, even if they don't realize it. Forecast accuracy, budget reviews, quality dashboards, investment analysis โ all rely on quantifying spread. The functions take five seconds; the interpretation takes practice.
If you internalize three things from this guide, make them: VAR.S is your default, statistical variance is unrelated to budget variance, and standard deviation is what most audiences actually want to see. From here, build comfort with the related Excel standard deviation functions, then move on to confidence intervals, F-tests, and regression. Each one builds on the variance foundation you just installed. You don't need to memorize every formula. You need to know which one fits the question you're asking.