F.TEST function

Returns a p-value comparing the variances of two datasets to determine if they're significantly different—essential for testing equality of variation.

=F.TEST(array1, array2)

Generate a F.TEST formula

Describe what you need. The generator will reach for F.TEST where F.TEST is the right tool, and tell you when it is not.

How to get a better answer
  • Name your columns by letter and by header: "column F (Net Value)" beats "the amount column".
  • State every condition, including the negatives — "not cancelled" changes the formula's shape.
  • Say where the data starts if it is not row 1, and whether it will grow.
  • Check the settings above match your spreadsheet: the wrong argument separator is a syntax error on your machine.

Arguments

How F.TEST reads its arguments
array1requiredarray2requiredF.TEST
ArgumentRequiredDescription
array1RequiredA range or array of numeric values representing the first dataset; must contain at least 2 numbers to calculate variance.
array2RequiredA range or array of numeric values representing the second dataset; must contain at least 2 numbers to calculate variance.

Returns

A decimal value between 0 and 1 representing the p-value of the two-sample F-test.

Availability

Excel: All · Google Sheets: Supported

Worked examples

1. Compare price volatility to listing duration

AddressBedsBathsList PriceDays on Market
123 Oak St3242500015
456 Maple Ave436500008
789 Pine Rd2132500042
321 Elm Way32.548000022
654 Cedar Ln548500005
=F.TEST(C2:C6,E2:E6)

Result: 0.0342

This tests whether list-price variance ($325k–$850k range) differs significantly from days-on-market variance (5–42 days). The p-value of 0.0342 falls below the standard 0.05 threshold, indicating the variances are significantly different—home prices show much greater volatility than listing duration.

2. Test price consistency: luxury vs. standard homes

AddressBedsList Price
456 Maple Ave4650000
654 Cedar Ln5850000
123 Oak St3425000
789 Pine Rd2325000
321 Elm Way3480000
=F.TEST(FILTER(C2:C6,B2:B6>=4),FILTER(C2:C6,B2:B6<4))

Result: 0.523

Comparing prices of larger homes (4+ beds: $650k, $850k) against smaller homes (<4 beds: $425k, $325k, $480k), the p-value of 0.523 is well above 0.05. This suggests the two segments have statistically similar price variances—both market tiers show comparable pricing volatility.

3. Analyze market speed: premium vs. budget listings

AddressList PriceDays on Market
456 Maple Ave6500008
654 Cedar Ln8500005
123 Oak St42500015
789 Pine Rd32500042
321 Elm Way48000022
=F.TEST(FILTER(E2:E6,C2:C6>500000),FILTER(E2:E6,C2:C6<=500000))

Result: 0.0876

Comparing days-on-market for homes >$500k (8, 5 days) versus ≤$500k (15, 42, 22 days), the p-value of 0.0876 suggests marginal variance difference. The evidence isn't strong enough to reject equal variances at the 0.05 level, though expensive homes show a trend toward shorter listing times.

Common errors

Which F.TEST error are you seeing?
F.TEST returned an error#VALUE!
Verify both ranges contain only numbers and no text labels. Convert text-formatted numbers using VALUE() if needed.
#NUM!
Ensure both arrays have at least 2 different numeric values. Remove empty rows or add more distinct data points.
#REF!
Rebuild the formula to reference valid cell ranges in the current spreadsheet.
ErrorWhy it happensHow to fix it
#VALUE!Either array contains text, empty cells, or non-numeric values mixed with numbers.Verify both ranges contain only numbers and no text labels. Convert text-formatted numbers using VALUE() if needed.
#NUM!An array has fewer than 2 values, is completely empty, or all values are identical (variance cannot be calculated).Ensure both arrays have at least 2 different numeric values. Remove empty rows or add more distinct data points.
#REF!A range reference was deleted, moved, or points to an invalid worksheet that no longer exists.Rebuild the formula to reference valid cell ranges in the current spreadsheet.

Tips and when to use something else

  • If p-value < 0.05, variances are significantly different; if p > 0.05, assume equal variances. This guides whether to use standard or unequal-variance t-tests.
  • Use MAX, MIN, and AVERAGE on each array before testing to visualize spread and central tendency—understanding the raw data informs interpretation.
  • F.TEST handles two arrays only; for three+ datasets, run separate pairwise tests or use ANOVA analysis instead.
  • Don't confuse F.TEST with TTEST: F.TEST compares spread (variance), while TTEST compares averages (means). Run F.TEST first to inform t-test selection.

Frequently asked questions

What does an F.TEST p-value of 0.034 mean?
It means there's only a 3.4% probability the two datasets have equal variances. Below 0.05, you conclude they're significantly different. Above 0.05, you assume variances are equal.
Why is my F.TEST showing #NUM! error?
F.TEST requires at least 2 distinct values in each array to calculate variance. Check that both ranges have no blanks, at least 2 different numbers, and no formulas that return errors.
Can I use F.TEST to compare three or more datasets at once?
No—F.TEST compares exactly two arrays. For multiple datasets, run separate pairwise F.TEST calls, use ANOVA functions if available, or perform manual analysis.
How does F.TEST relate to TTEST?
F.TEST checks if variances differ; TTEST checks if means differ. Use F.TEST first to detect unequal variances, then choose the appropriate t-test variant (equal or unequal variances).

Need a different formula?

The full generator is not scoped to one function — describe any spreadsheet problem and it will pick.

Open the formula generator

Reviewed 2026-09-17