VAR.S
Supported, behaves as documentedCategory: Statistical · Last tested 2026-07-04
Support matrix
| Engine | Documented | Live-tested | Verdict |
|---|---|---|---|
| Excel | Yes | Not yet | n/a |
| Google Sheets | Yes | Not yet | n/a |
| LibreOffice Calc | Yes | Yes (24.2.7.2, 2026-07-04) | Supported, behaves as documented |
Executed test cases
LibreOffice Calc 24.2.7.2 (tested 2026-07-04)
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =VAR.S(A1:A2) | Sample variance of two hand-verifiable values | 50 | 50 Mean=15; sample variance=((10-15)^2+(20-15)^2)/(2-1)=50 |
Matched |
| =VAR.S(A1:A8) | Sample variance on the classic {2,4,4,4,5,5,7,9} dataset; this is the square of STDEV.S_matches_STDEV_same_data's result (2.138089935299395^2) | 4.57142857142857 | 4.571428571428571 32/7=4.571428571428571 |
Matched |
| =VAR.S(A1:A3) | Sample variance over negative numbers | 4 | 4 Mean=-4; sample variance=((-2+4)^2+(-4+4)^2+(-6+4)^2)/(3-1)=(4+0+4)/2=4 |
Matched |
| =VAR.S(A1:A1) | Sample variance needs n>=2 (divides by n-1); one value -> #DIV/0! | #DIV/0! | #DIV/0! | Matched |
Docs & syntax
- Excel: official documentation
- Google Sheets: official documentation
- LibreOffice Calc: official documentation