VAR Function (Gnumeric)
Learn the VAR function in Gnumeric: Calculates the variance based on a sample.
Verification status: Official documentation referenced; example outcomes independently reasoned or arithmetically checked where stated. Not executed in Gnumeric. How formula examples are checked
Quick answer
VAR calculates sample variance using n ā 1 in the denominator. The output is in squared units of the underlying observations.
Gnumeric syntax and parameters
=VAR(area1,area2,...)
area1 ā First range of numeric sample values.
area2, ... ā Additional sample ranges, where relevant.
Version and locale scope: The release-scoped function registry confirms VAR within the Gnumeric 1.12.62 standard public function set (September 2026). The Gnumeric manual documents the syntax shown here but is a continuously updated reference, not a frozen 1.12.62 manual. The function’s original introduction version has not been established. The formulas below use comma-separated English-locale syntax; installed regional settings or imported files may display other separators. Availability can depend on installed plugins and builds for Gnumeric functions in general.
Reproduce the example in your own worksheet
Create a worksheet and enter numeric data into the following eight cells. Keep these as real numbers, not quoted text.
| Cell | B: Observation |
|---|---|
| B2 | 2 |
| B3 | 4 |
| B4 | 4 |
| B5 | 4 |
| B6 | 5 |
| B7 | 5 |
| B8 | 7 |
| B9 | 9 |
All eight observations total 40 and average 5. Keep the reference B2:B9 consistent across the example.
- Enter the values in the indicated cells in Gnumeric.
- Select a separate blank result cell outside the input range.
- Enter this formula exactly as written for the sample input:
=VAR(B2:B9)
Expected result: approximately 4.5714285714. The eight observations average 5 and their squared deviations total 32. Sample variance is 32/(8ā1) = 32/7.
Input interpretation: All inputs are numeric, so the walkthrough does not resolve cross-application treatment of booleans or error cells.
Advanced application: add a useful check or calculation
After reproducing the basic result, enter:
=VAR(B2:B9)/VARP(B2:B9)
Expected result: approximately 1.1428571429. The sample-to-population variance ratio is (32/7) / 4 = 8/7, showing the nā1 correction for the same eight values.
This is a teaching example, not an assertion that the formula has been executed in this software version.
Third worked example: check the sample denominator with two observations
=VAR(2,4)
Independently calculated expected result: 2. The mean is 3 and the sum of squared deviations is 2. Sample variance divides by nā1, so 2/1=2. Treating these same two values as the whole population would give population variance 1.
Errors, edge cases and troubleshooting
- Variance is expressed in squared units. To return to the original measurement units, compare STDEV.
- If only one numeric row is present, a sample variance cannot be calculated using nā1; verify the data count.
- VAR should not be silently replaced by VARP without understanding sample versus population scope.
If the output differs, first confirm the exact cell contents and range boundaries; use an independent small dataset to isolate a formula issue from imported formats, hidden characters or missing values. Keep result cells outside the input ranges to avoid accidental circular references. Do not hide an error with IFERROR until you know which input is responsible.
Limits and cross-software compatibility
Gnumeric documents VAR as Excel compatible. In modern Excel the sample function name VAR.S is also available; inspect workbook imports for naming and sample semantics.
Gnumeric reference coverage is not a claim that every formula behaves identically in Microsoft Excel, LibreOffice Calc, Apple Numbers or other spreadsheet apps. Review the receiving application’s argument conventions, cell types and version-specific behavior before relying on workbook portability.
More related Gnumeric tutorials
Official sources and verification status
- Official Gnumeric Statistics function reference ā VAR (checked 2026-10-11).
- Gnumeric official function catalog (checked 2026-10-11; its headline/row totals are not treated as the canonical release count).
- Gnumeric 1.12.62 official release notes (release dated September 2026, checked 2026-10-11).
How this guide was checked
The syntax and behaviour are based on the Gnumeric references cited above. The sample calculations were independently checked; they are expected results, not outputs observed in Gnumeric. Test locale-sensitive text conversion and imported files in your own installation. View the example-check record.