- TIPS & TRICKS/
- How to Calculate Variance in Excel (VAR.S, VAR.P and % Variance)/

- TIPS & TRICKS/
- How to Calculate Variance in Excel (VAR.S, VAR.P and % Variance)/
How to Calculate Variance in Excel (VAR.S, VAR.P and % Variance)

Variance tells you how spread out a set of numbers is. Two teams can both average 114 calls a day, but if one team swings between 87 and 140 while the other stays between 110 and 118, the first team is far harder to plan around. Variance puts a number on that difference.
Excel has two functions for it, VAR.S and VAR.P, and choosing the right one matters. This guide builds both in a real workbook, shows you how to turn variance into the more readable standard deviation, and then covers the other thing people mean by "variance" in Excel: the difference between a budget and an actual, as a number and as a percentage.
Every screenshot below was taken in Excel for Microsoft 365 in November 2026, using made-up figures you can type in yourself.
Which variance function should you use?
VAR.S calculates the variance of a sample: a subset of a bigger group, such as ten days picked from a year of call data. VAR.P calculates the variance of a population: every value in the group, such as all ten people in a team.
The only difference in the maths is the last step. Both functions add up the squared distance of each value from the mean. VAR.P divides that total by the number of values (n). VAR.S divides by one fewer (n - 1), which corrects for the fact that a sample usually underestimates how spread out the full group is.
If you are not sure which you have, use VAR.S. Most business data is a sample of something larger: some days, some orders, some survey responses. VAR.P is right only when the range really does hold every value you care about.
- =VAR.S(range): sample variance, divides by n - 1.
- =VAR.P(range): population variance, divides by n.
- VAR and VARP are the older versions of these two. They still work, but Microsoft keeps them only for compatibility, so use the newer names in new workbooks.
Download our Excel Formulas Cheat Sheet
Download nowCalculate sample variance with VAR.S
The example below holds calls answered by a support desk on ten working days, in B2:B11. Treat those ten days as a sample of the desk's normal workload.
In an empty cell, type =VAR.S(B2:B11) and press Enter. You can type the range or click and drag down the column to select it.
Excel returns 310.18. To check it by hand: the mean is 114.2, the squared distances from the mean add up to 2,791.6, and 2,791.6 divided by 9 (ten values minus one) is 310.18.
VAR.S ignores empty cells and text inside a range, so a blank day does not drag the result down. If you want text counted as zero and TRUE counted as one, Excel has VARA for that, but most of the time you want blanks left out.
Calculate population variance with VAR.P
If those ten days are the whole period you are reporting on, and you are not trying to say anything about other days, use =VAR.P(B2:B11) instead.
This time Excel returns 279.16: the same 2,791.6 total, divided by 10 rather than 9. VAR.P always gives the smaller answer of the two, and the gap narrows as the number of values grows. With a few hundred rows the difference is tiny. With ten rows it is about 10%, which is enough to change a conclusion.
Turn variance into standard deviation
Variance has one awkward property: its unit is squared. A variance of 310.18 means "310.18 calls squared", which nobody can picture. The standard deviation is the square root of the variance, which brings the answer back into calls.
Excel gives you two ways to get it. =STDEV.S(B2:B11) calculates it in one step and matches VAR.S. For a population, use STDEV.P, which matches VAR.P.
Or, if you already have the variance, take its square root with =SQRT(E3). Both return 17.61, which is a useful check that you have paired the right functions.
Now the number means something. The desk averages 114.2 calls with a standard deviation of about 17.6, so a typical day falls somewhere between roughly 97 and 132 calls. Four of the ten days sit outside that band: Day 4 (140) and Day 6 (133) above it, and Day 5 (87) and Day 10 (96) below it. Those are the days worth a closer look when you plan staffing.
Calculate the variance between two numbers
Plenty of people searching for "variance in Excel" do not want statistics at all. They want the gap between a budget and an actual, or between this month and last month. In finance reports that gap is also called a variance, and it is a simple subtraction.
In the budget sheet below, column B holds the budget and column C the actual spend. In D2, type =C2-B2 and copy it down.
Software came in £350 over budget and travel £460 under. Put actual first in the formula, as here, and a positive number always means "more than planned". Keep that order the same across the whole report so readers never have to work out the sign.
Calculate percentage variance in Excel
A £350 overspend means something different on a £4,800 line than on a £500 one, so the next column shows the variance as a percentage of the budget. In E2, type =IFERROR((C2-B2)/B2,"n/a"), copy it down, and format the column as a percentage.
Software is 7.3% over budget and travel 14.4% under. The core of the formula is (actual - budget) / budget. =C2/B2-1 gives the same answer if you prefer it shorter.
The IFERROR wrapper is there for lines with no budget. Dividing by zero returns a #DIV/0! error, so the Events line, which had no budget but £650 of spend, would otherwise break the column. IFERROR swaps the error for "n/a", which is more honest than showing 0% or 100%.
One more case to watch: if the baseline can be negative, such as profit or cash flow, divide by ABS(B2) instead of B2. Otherwise an improvement from -£1,000 to -£500 comes out as a negative percentage, which reads as the opposite of what happened.
Download our White Paper: The Impact of Skills Underinvestment on UK SMBs
Download nowChecks before you share the numbers
- Sample or population? Say which one you used, especially if someone else might recalculate it. VAR.S and VAR.P on the same ten rows differ by about 10%.
- Report standard deviation alongside variance. Most readers can act on "about 17.6 calls either side of the average". Few can act on "310 calls squared".
- Look for blanks and text in the range. VAR.S skips them, which is usually right, but a column of numbers stored as text will be skipped too and quietly shrink your sample.
- Keep the sign convention fixed. Actual minus budget everywhere, so a positive variance always means over plan.
- Use percentages for comparison, amounts for decisions. A 15% overspend on equipment is £375. A 7.3% overspend on software is £350. They are close in cash terms even though the percentages look very different.
Build these skills properly
Variance and percentage variance are the sort of measures that turn a list of figures into a report someone can act on. Our Data Analysis Fundamentals for Business course covers that practical side: key measures such as averages, medians and percentages, comparing periods and groups, and summarising with PivotTables, without heavy theory.
If you are earlier on, Excel Introduction covers the formula basics this guide relies on, including AVERAGE, absolute references and percentage formatting. Excel Intermediate moves on to IF, SUMIF and conditional formatting, which is how you flag the lines that are over budget automatically. All our courses are instructor-led and can be run for a whole team.
Next available dates
Excel Intermediate
Live, instructor-led training with a real trainer. Book a seat on a scheduled date below, or get a quote for your team to run it privately.
13 Jan 2027
Wednesday · Virtual · 1 day
£325per person + VAT
2 Feb 2027
Tuesday · Virtual · 1 day
£325per person + VAT
2 Mar 2027
Tuesday · Virtual · 1 day
£325per person + VAT
Ready to train your team?
Tell us what you need and we'll come back to you with a detailed quote.
- Tailored contentBuilt around your team's work and skill levels.
- Flexible schedulingDates and times that suit your team, not ours.
- Your place or onlineDelivered at your office or virtually.
- Better value per headOne trainer, one day, your whole team.
- A dedicated trainerYour team gets all of the trainer's attention.
- Realistic examplesSample data built around the kind of work your team does.
We reply with available dates and a price for your team. No obligation.
Frequently Asked Questions (FAQ)
Prompting, verification, workflow design, automation, and responsible AI use.
No. These skills apply across functions, from admin and marketing to finance and operations.
Clear examples of how you used AI to save time, improve quality, or support better decisions.
Begin with your current tasks, test AI on repeat work, and track the results.
Related Articles
Tips & TricksHow to Use Excel Lookup with Multiple Criteria
This blog explains how Excel’s LOOKUP functions—particularly XLOOKUP and VLOOKUP—can retrieve data based on multiple criteria. It walks through a step-by-step example of finding an employee’s sales in a specific region, showing both an XLOOKUP formula and a VLOOKUP alternative that uses a helper column.
Tips & TricksHow to Calculate Age in Excel: DATEDIF Formula and Examples
Use a copy-and-paste DATEDIF formula to calculate age from a date of birth in Excel. This guide also covers fixed reporting dates, YEARFRAC and the input checks that prevent bad results.
Tips & TricksHow to Calculate Compound Interest in Excel
Build a simple Excel calculator to forecast investment growth with compound interest.
Insights for modern teams
Stay ahead with our latest learning trends, tools, and success stories. Enter your email address below to receive updates from us.

