FTEST function
Returns the two-tailed p-value of an F-test: the probability that two samples' variances are not significantly different. Replaced by F.TEST.
Available in All versions of Excel, including Microsoft 365 and Excel for the web (kept for compatibility)
In every Excel versionWorks in Google Sheets
Syntax
FTEST(array1, array2)| Argument | What it means | |
|---|---|---|
array1 | Required | The first data range. |
array2 | Required | The second data range. Sizes may differ. |
Returns: A two-tailed probability between 0 and 1.
How FTEST works
FTEST checks whether two groups have similar spread. It divides one sample variance by the other and returns the two-tailed p-value. A small value (below 0.05) suggests the variances really differ; a large value means you cannot tell them apart. People often run it before a t-test to decide between the equal-variance and unequal-variance versions.
Each range needs at least two numbers and a non-zero variance. Text, logical values and empty cells are ignored. The p-value is two-tailed, so it does not matter which range you put first.
Compatibility note: FTEST is one of the older statistical functions that Excel 2010 moved to the Compatibility group. It still works in every version, but for new workbooks Microsoft recommends F.TEST. The arguments are identical; rename to F.TEST(array1, array2).
Examples
1Compare the spread of two samples
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Sample 1 | Sample 2 | ||
| 2 | 6 | 20 | 0.648318 | |
| 3 | 7 | 28 | ||
| 4 | 9 | 31 | ||
| 5 | 15 | 38 | ||
| 6 | 21 | 40 |
Result: 0.648318
The two sample variances are 39.8 and 64.8. With only five values each, that difference is not significant: the p-value is 0.648318 (formatted to 6 decimals).
2Which supplier is more consistent?
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Supplier A (g) | Supplier B (g) | ||
| 2 | 41 | 35 | 0.0055 | |
| 3 | 44 | 52 | ||
| 4 | 39 | 47 | ||
| 5 | 45 | 30 | ||
| 6 | 40 | 49 | ||
| 7 | 43 | 38 | ||
| 8 | 42 | 44 |
Result: 0.0055
Supplier A's weights vary much less than supplier B's. The p-value of 0.0055 (formatted to 4 decimals) is below 0.05, so the difference in consistency is significant.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#DIV/0! | A range has fewer than 2 numbers, or its variance is 0. | Provide at least two different values in each range. |
Tips
- The F-test is sensitive to non-normal data; with skewed data treat the result with caution.
- The p-value is two-tailed. For a one-sided question (is B more variable than A?) use FDIST on the variance ratio.
Questions
Should I still use FTEST?
Only if the workbook must open in Excel 2007 or earlier. Otherwise use F.TEST, which gives the same result and makes the intent clearer to the next person who reads the formula.
Will FTEST stop working?
There is no announced removal date. Microsoft keeps compatibility functions so old workbooks keep calculating, but they get no new features.
Google Sheets
FTEST also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
FTEST 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.
| Language | Function name |
|---|---|
| Dutch | F.TOETS |
| Finnish | FTESTI |
| French | TEST.F |
| Hungarian | F.PRÓBA |
| Italian | TEST.F |
| Polish | TEST.F |
| Portuguese (Brazil) | TESTEF |
| Portuguese (Portugal) | TESTEF |
| Russian | ФТЕСТ |
| Spanish | PRUEBA.F |