Compatibility function

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

Older function. FTEST still works, but for new workbooks use F.TEST.

Syntax

FTEST(array1, array2)
ArgumentWhat it means
array1RequiredThe first data range.
array2RequiredThe 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

D2fx=FTEST(A2:A6, B2:B6)
ABCD
1Sample 1Sample 2
26200.648318
3728
4931
51538
62140

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?

D2fx=FTEST(A2:A8, B2:B8)
ABCD
1Supplier A (g)Supplier B (g)
241350.0055
34452
43947
54530
64049
74338
84244

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.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 14 KB

Common errors and how to fix them

ErrorWhy it happensFix
#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.

LanguageFunction name
DutchF.TOETS
FinnishFTESTI
FrenchTEST.F
HungarianF.PRÓBA
ItalianTEST.F
PolishTEST.F
Portuguese (Brazil)TESTEF
Portuguese (Portugal)TESTEF
RussianФТЕСТ
SpanishPRUEBA.F