Practice free

VARA function

VARA returns the sample variance while counting text and logicals, with TRUE as 1 and FALSE or text in ranges as 0. Use VAR.S for ordinary numeric data.

Example

Read it as a sentence: estimate the variance of the sample in A1:A8, counting any text and logical values too, which gives 4.571428571.

Practice this in the app

Syntax

VARA(value1, [value2], ...)

Arguments in [square brackets] are optional.

value1 (required)
First value or range.
value2 (optional)
More values or ranges.

Returns: The sample variance counting text and logicals.

What Excel actually returns

Each formula below was run in desktop Excel. The result is exactly what the cell showed, errors included.

FormulaExcel showsCase
=VARA({2,4,4,4,5,5,7,9}) 4.571428571 Array constant
=VARA(10,"20",TRUE) 90.33333333 Direct args: number, text-number, TRUE
=VARA({1,"2",TRUE,3}) 2 Array with text and boolean
=VARA(Data!A1:A8) 4.571428571 Range of numbers
=VARA(Data!B1:B8) 277.2857143 Mixed range: num, text-number, TRUE, blank, text, FALSE
=VARA(Data!E1:E5) 0 All-text range
=VARA(10,"abc") #VALUE! Direct arg: non-numeric text
=VARA(5) #DIV/0! Single number

The Data sheet these formulas read

A cell that starts with = holds that formula.

Watch out for

  • Text in ranges counts as 0.
  • Use VAR.S for ordinary numeric data.

Where it works

Excel
VARA is in every version of Excel from 2007 on.
Google Sheets
Same name, same behaviour for everyday use.

Part of Statistical functions. Every result on this page was measured in desktop Excel, build 16.0.20527. Last updated .