Statistical function

VARA function

Estimates variance from a sample, counting text as 0 and TRUE as 1 rather than ignoring them.

Available in All versions of Excel, including Microsoft 365 and Excel for the web

In every Excel versionWorks in Google Sheets

Syntax

VARA(value1, [value2], ...)
ArgumentWhat it means
value1RequiredA value, reference or range.
value2, ...OptionalUp to 254 more values.

Returns: The sample variance (divides by n − 1) including text and logical values.

How VARA works

VARA is VAR.S with a different treatment of non-numbers. In referenced cells, TRUE counts as 1 and FALSE and any text count as 0; only empty cells are skipped. This is helpful when text such as "none" really means zero, or when a column of TRUE/FALSE results should be analysed as 1s and 0s.

If text is just a note or a "missing" marker, VARA will distort the variance by inserting false zeros. In that case use VAR.S, which ignores text. For the population version with the same rules, use VARPA.

Examples

1Complaints with "none" as zero

D2fx=VARA(B2:B6)
ABCD
1WeekComplaints
21511.50
328
43none
546
65TRUE

Result: 11.50

"none" counts as 0 and TRUE as 1, giving values 5, 8, 0, 6, 1 and a variance of 11.500000 (shown to 2 decimals). (Recording TRUE in a count column is usually a data-entry mistake; this shows how VARA reads it.) VAR.S would use only 5, 8 and 6: 2.3333.

2Variance of yes/no outcomes

D2fx=VARA(B2:B5)
ABCD
1LeadConverted
2L1TRUE0.3333
3L2FALSE
4L3FALSE
5L4TRUE

Result: 0.3333

1, 0, 0, 1 have a sample variance of 1/3 = 0.333333… (shown to 4 decimals). VAR.S on the same cells would find no numbers and return #DIV/0!.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 14 KB

Common errors and how to fix them

ErrorWhy it happensFix
#DIV/0!Fewer than two non-empty values.Provide at least two values.
#VALUE!A typed argument is text that cannot be read as a number.Use references.

Tips

  • If VARA and VAR.S give different answers, text or logical cells are part of the range.
  • For samples where text means missing, stick with VAR.S.

Google Sheets

VARA also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

VARA in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
DanishVARIANSV
GermanVARIANZA
ItalianVAR.VALORI
Norwegian (Bokmål)VARIANSA
PolishWARIANCJA.A
RussianДИСПА