VAR.P function

VAR.P returns the population variance of a dataset, showing spread from the mean; use it when your data represents the entire population, not a sample.

=VAR.P(number1, ...)

Generate a VAR.P formula

Describe what you need. The generator will reach for VAR.P where VAR.P is the right tool, and tell you when it is not.

How to get a better answer
  • Name your columns by letter and by header: "column F (Net Value)" beats "the amount column".
  • State every condition, including the negatives — "not cancelled" changes the formula's shape.
  • Say where the data starts if it is not row 1, and whether it will grow.
  • Check the settings above match your spreadsheet: the wrong argument separator is a syntax error on your machine.

Arguments

How VAR.P reads its arguments
number1requiredVAR.P
ArgumentRequiredDescription
number1RequiredRequired. A number, range, or cell reference to include in the variance calculation.
...RepeatingOptional. Additional numbers, ranges, or cell references; you can provide up to 254 arguments total.

Returns

Returns a number representing the population variance (spread from the mean, in squared units).

Availability

Excel: All · Google Sheets: Supported

Worked examples

1. Calculate variance in campaign spending across all channels

CampaignChannelSpendClicksConversions
Q4 SaleEmail500200050
Q4 SaleSocial800300075
Q4 SaleSearch12004500100
New YearEmail600250060
New YearSocial900350085
New YearSearch14005000120
=VAR.P(C2:C7)

Result: 100000

Spending ranges from $500 to $1,400 across six campaigns. The mean spend is $900. VAR.P calculates how far each spend deviates from the mean, squares those deviations, and averages them. The result (100,000) is in squared dollars, reflecting substantial variation in budget allocation across channels and campaigns.

2. Measure variance in click volume across all channels

CampaignChannelSpendClicksConversions
Q4 SaleEmail500200050
Q4 SaleSocial800300075
Q4 SaleSearch12004500100
New YearEmail600250060
New YearSocial900350085
New YearSearch14005000120
=VAR.P(D2:D7)

Result: 1222222.22

Clicks range from 2,000 to 5,000, with an average of 3,416.67. VAR.P computes the variance as 1,222,222.22 (in squared clicks), showing clicks vary more than spending does. This high variance indicates that some channels drive significantly more traffic than others, useful for identifying high-performing marketing channels.

3. Analyze consistency of Q4 Sale campaign conversions by channel

CampaignChannelConversions
Q4 SaleEmail50
Q4 SaleSocial75
Q4 SaleSearch100
=VAR.P(50,75,100)

Result: 416.67

The three Q4 channels delivered 50, 75, and 100 conversions respectively, with a mean of 75. VAR.P returns 416.67 (in squared conversions), indicating moderate inconsistency across channels. Search significantly outperforms the other two, making this campaign unbalanced; use this metric to evaluate whether budget reallocation could improve overall consistency.

Common errors

Which VAR.P error are you seeing?
VAR.P returned an error#VALUE!
Ensure your range contains only numeric data. Reference a numeric column (Spend, Clicks, or Conversions) instead of the Channel or Campaign name column.
#REF!
Update the formula to point to valid, existing cells, or use IFERROR to gracefully handle missing references.
#N/A
Debug your lookup formula to return a valid number, or wrap it with IFNA/IFERROR to replace the error with a default numeric value before VAR.P processes it.
ErrorWhy it happensHow to fix it
#VALUE!The range includes text values like 'Email' or 'Social' that cannot be interpreted as numbers.Ensure your range contains only numeric data. Reference a numeric column (Spend, Clicks, or Conversions) instead of the Channel or Campaign name column.
#REF!A cell reference in the range has been deleted, renamed, or moved to a different sheet, breaking the link.Update the formula to point to valid, existing cells, or use IFERROR to gracefully handle missing references.
#N/AOne of the cells in the range contains #N/A (typically from a failed VLOOKUP, XLOOKUP, or similar lookup function).Debug your lookup formula to return a valid number, or wrap it with IFNA/IFERROR to replace the error with a default numeric value before VAR.P processes it.

Tips and when to use something else

  • VAR.P ignores empty cells completely; they do not count as zero. Be sure your range contains no accidental blanks, or use COUNTA to verify the count of values before calculating variance.
  • Use VAR.P only for population data. If your values are a sample from a larger group, you need a different function that corrects for sample bias.
  • Variance is in squared units (squared dollars, squared clicks, etc.), making it hard to interpret. Convert to standard deviation by taking SQRT(VAR.P(...)) to get a value in the original units.
  • If your data includes outliers or extreme values, variance will be very high. Identify outliers with MAX and MIN, then decide whether to exclude them before recalculating VAR.P.

Frequently asked questions

How does VAR.P differ from the function used for sample data?
VAR.P assumes your entire dataset is the population of interest and divides by n (count). For sample data, use a different function that divides by n-1 to correct for sampling bias and provide an unbiased variance estimate.
Can I calculate VAR.P across multiple non-adjacent ranges?
Yes. You can pass multiple ranges or individual cell references separated by commas, e.g., =VAR.P(A2:A5, C2:C5, D10). VAR.P treats all supplied values as one dataset and calculates variance across all of them together.
Why is the variance number so large and hard to compare to my original data?
Variance is always in squared units, which inflates the magnitude. Take the square root (=SQRT(VAR.P(...))) to get standard deviation, a measure of spread in the same units as your original data and much easier to interpret.
What should I conclude if VAR.P returns zero?
A variance of zero means all values in your dataset are identical. For instance, if every channel drove exactly 2,000 clicks, VAR.P would return 0 because there is no variation around the mean.

Need a different formula?

The full generator is not scoped to one function — describe any spreadsheet problem and it will pick.

Open the formula generator

Reviewed 2026-09-17