VARPA Function
Population variance that also counts text and logicals as numbers.
Syntax
Parameters
| Parameter | Description | Required |
|---|---|---|
| value1 | The first value, range, or reference in the population. | Required |
| value2 | Additional values, ranges, or references (optional). | Optional |
Basic Example
Population variance of numeric values only
=VARPA(10,20,30,40,50)With only numbers present, VARPA returns the same result as VARP.
Advanced Examples
Example 1: Text and TRUE are counted
A range that mixes numbers, text, and a logicalText becomes 0 and TRUE becomes 1 before the calculation
=VARPA(10,20,30,TRUE,"apple")Example 2: Contrast with VARP on a reference
Ignoring non-numeric cellsVARP ignores text and logicals inside a range
=VARP(A1:A5) where A1:A5 = 10,20,30,TRUE,"apple"How VARPA Works
VARPA coerces every argument to a number (text to 0, TRUE to 1, FALSE to 0), then computes the population variance using the n denominator. Because it divides by n rather than n-1, it assumes the supplied values constitute the whole population.
Important Notes & Limitations
Counting text as 0 can distort the result if text cells are labels rather than true zeros.
Dividing by n assumes a full population; for a sample use VARA.
Requires at least one effective value, otherwise returns #DIV/0!.
Common Errors & Fixes
#DIV/0!No effective numeric values after coercion.Fix: Provide at least one value that evaluates to a number.
Larger variance than expectedText labels were coerced to 0, pulling the mean down.Fix: Use VARP when text cells should be ignored.
Download Practice File
VARPA
varpaPractice VARPA with Real Data
Download a sample CSV file with pre-populated data and practice exercises for the VARPA function. Works in both Excel and Google Sheets.
File format: CSV (comma-separated values) - opens in Excel, Google Sheets, and all spreadsheet apps