F.TEST function
F.TEST returns the two-tailed p-value for the hypothesis that two samples have equal variances. A small result suggests their spread really differs, and each sample needs at least two numbers.
Example
Read it as a sentence: compare how spread out the numbers in A1:A8 are with the numbers in F1:F5 and give the probability that their variances are not really different.
Excel shows 0.584454485
A
F
1
2
1
2
4
2
3
4
3
4
4
4
5
5
5
6
5
7
7
8
9
Data
Syntax
F.TEST(array1, array2)
-
array1(required) - First data set.
-
array2(required) - Second data set.
Returns: The two-tailed p-value for the hypothesis that the two variances are equal.
What Excel actually returns
Each formula below was run in desktop Excel. The result is exactly what the cell showed, errors included.
| Formula | Excel shows | Case |
|---|---|---|
=F.TEST({2,4,7,9,12},{3,4,5,6,7}) | 0.10284366 | Array constants |
=F.TEST(Data!A1:A8,Data!F1:F5) | 0.584454485 | Ranges |
=F.TEST(Data!B1:B8,Data!F1:F5) | 0.000880239 | Text ignored in range |
=F.TEST({1},{2,3}) | #DIV/0! | Single value array |
=F.TEST(Data!J1:J5,Data!F1:F5) | #DIV/0! | Zero variance |
=F.TEST(Data!C1:C5,Data!F1:F5) | #N/A | #N/A in range |
The Data sheet these formulas read
A cell that starts with = holds that formula.
A
B
C
F
J
1
2
10
1
1
3
2
4
20
2
2
3
3
4
TRUE
=NA()
3
3
4
4
4
4
3
5
5
abc
5
5
3
6
5
30
7
7
FALSE
8
9
40
Data
Watch out for
- Each array needs at least two numbers.
- Sensitive to non-normal data.
Where it works
- Excel
- F.TEST arrived in Excel 2010. Older versions do not have it.
- 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 .