Statistics Excel Formula

VAR.S Formula in Excel: Examples, Syntax, Tips

Learn the VAR.S formula in Excel with a beginner-friendly explanation, syntax, copy-paste examples, step-by-step instructions, and common mistakes.

Copy-paste examplesBeginner friendlyCommon mistakesStep-by-step

💡 Ideas for You

Helpful learning resources for VAR.S formula.

4 useful links
📚 Step-by-step booksBeginner-friendly learning resources from Create & Learn.📘 Statistics guidesResources for averages, counts, rankings, and analysis formulas.🧮 Formula cheat sheetsQuick references for common spreadsheet formulas.📊 Reporting guidesResources for turning formula results into useful reports.

Quick answer

The VAR.S formula estimates variance for a sample.

Starting formula
=VAR.S(B2:B100)

Syntax

Use this syntax as the pattern, then replace the sample arguments with your own cells, ranges, and criteria.

Syntax
=VAR.S(number1, [number2], ...)

When to use it

Statistics formulas help turn raw data into summary numbers. They are useful for dashboards, survey analysis, quality checks, sales reports, performance tracking, and operational reviews.

  • Count rows that match a rule
  • Find average performance
  • Rank top products or employees
  • Measure variation in results

Example worksheet layout

Test the formula in a small worksheet first. This makes it easier to confirm the result before copying the formula down hundreds of rows.

Column or rangeWhat it represents
AGroup, status, or dimension
BNumeric value
CSummary result

Copy-paste examples

These examples move from simple to more practical versions. Start with the beginner examples, confirm the result, then adapt the intermediate and advanced versions.

Beginner

Basic VAR.S example

Example formula
=VAR.S(B2:B100)

Start with a clean numeric range and verify the result manually on a few values.

Beginner

Ignore blank rows

Example formula
=VAR.S(B2:B100)

Most summary formulas ignore blank cells, but check whether zeros should be included.

Intermediate

Apply one condition

Example formula
=COUNTIF(A2:A100,"Open")

Use criteria to summarize only the rows you need.

Intermediate

Apply multiple conditions

Example formula
=COUNTIFS(A2:A100,"West",C2:C100,"Open")

Use multiple criteria for dashboard filters and operational reports.

Advanced

Use with FILTER

Example formula
=VAR.S(B2:B100)

Calculate the statistic after dynamically filtering the source data.

Advanced

Protect reports from empty filters

Example formula
=IFERROR(VAR.S(B2:B100),"")

Return blank when no rows qualify.

How to use it step by step

  1. Put your raw data in clear columns with headers such as Amount, Date, Status, Region, or Customer.
  2. Paste the starting formula into the first result cell, usually row 2.
  3. Replace sample references such as A2, B2, or $F$2:$F$100 with the cells in your own worksheet.
  4. Check the result on a few rows where you already know the expected answer.
  5. Copy the formula down only after the first row returns the right result.

Common mistakes and fixes

  • Blank cells and zeros are treated differently, so check which ones should be included.
  • Criteria text does not match because of extra spaces or spelling differences.
  • The summary range and criteria range are not the same size.
  • Test the formula on a few known rows before using it across a full report.

Beginner tips

  • Use a small sample first so you can see exactly how the VAR.S formula behaves.
  • Convert your source range into an Excel Table when the data will grow over time.
  • Add a short note near important formulas so future users know what each input represents.

Related formula examples