VARA Function
Sample variance that also counts text and logicals as numbers.
Syntax
Parameters
| Parameter | Description | Required |
|---|---|---|
| value1 | The first value, range, or reference in the sample. | Required |
| value2 | Additional values, ranges, or references (optional). | Optional |
Basic Example
Sample variance of numeric values only
=VARA(10,20,30,40,50)With only numbers present, VARA returns the same result as VAR.
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
=VARA(10,20,30,TRUE,"apple")Example 2: Contrast with VAR on a reference
Ignoring non-numeric cellsVAR ignores text and logicals inside a range
=VAR(A1:A5) where A1:A5 = 10,20,30,TRUE,"apple"How VARA Works
VARA first coerces every argument to a number (text to 0, TRUE to 1, FALSE to 0), then computes the sample variance with the n-1 denominator. Because non-numeric entries count toward both the sum and the mean, they change the variance materially.
Important Notes & Limitations
Counting text as 0 can distort the result when text cells are labels, not true zeros.
Still requires at least two effective values, otherwise returns #DIV/0!.
The n-1 denominator still assumes a sample, not a full population (use VARPA for population).
Common Errors & Fixes
#DIV/0!Fewer than two effective numeric values after coercion.Fix: Provide at least two values that evaluate to numbers.
Larger variance than expectedText labels were coerced to 0, pulling the mean down.Fix: Use VAR when text cells should be ignored.
Download Practice File
VARA
varaPractice VARA with Real Data
Download a sample CSV file with pre-populated data and practice exercises for the VARA function. Works in both Excel and Google Sheets.
File format: CSV (comma-separated values) - opens in Excel, Google Sheets, and all spreadsheet apps