Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Google Sheets F.TEST Function: How to Use It

· 4 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The F.TEST function in Google Sheets calculates whether two data sets have significantly different variances. It returns a probability (the F-test p-value): a small result means the two samples likely come from populations with different spreads. It's commonly used to decide which version of a t-test is appropriate, or to compare variability between two groups. All you need is two columns or rows of numeric data and a blank cell for the formula.

What You'll Need

  • A Google Sheets spreadsheet open in a browser (sheets.google.com) or the mobile app
  • Two ranges of numeric sample data (they don't have to be the same size)
  • A basic understanding of p-values, or just a threshold in mind such as 0.05

Step-by-Step

  1. Open your spreadsheet and make sure your two data sets sit in separate ranges, for example sample one in cells A2:A11 and sample two in cells B2:B13. F.TEST ignores text and empty cells, but the ranges should contain only numbers to keep results clean.
  2. Click the cell where you want the result to appear, for example D2.
  3. Type the formula: =F.TEST(A2:A11, B2:B13) — the two arguments are range1 and range2, separated by a comma. On some regional locale settings Sheets expects a semicolon instead of a comma, so use =F.TEST(A2:A11;B2:B13) if you get a parse error.
  4. Press Enter (or Return). The cell displays a number between 0 and 1. This is the two-tailed probability that the variances of the two samples are not actually different.
  5. Interpret the result. If the value is below your significance level (typically 0.05), the difference in variances is statistically significant, so the two data sets have genuinely different variability. If it's above 0.05, you can treat the variances as equal.
  6. Optionally, use the result to choose a t-test: run TTEST(range1, range2, tails, 2) (unequal variance / Welch) when F.TEST returns a small value, or type 3 (equal variance) when it returns a large one.
  7. To compare more than two data sets, repeat the formula in other cells with different range pairs — F.TEST only compares two ranges at a time.

Common Mistakes

  • Confusing the F.TEST result with an F-statistic. F.TEST in Sheets returns a p-value, not the F ratio itself. If you need the actual F statistic, use =VAR.S(range1)/VAR.S(range2).
  • Using non-numeric data in the ranges. Text and blanks are ignored, which can silently shrink your sample and skew the result.
  • Reversing the interpretation: a HIGH number from F.TEST means the variances are NOT significantly different. Many people read it backwards.
  • Applying it to very small samples. With fewer than about 5 values per set, the result is unreliable and swings wildly.
  • Comparing ranges of different meanings, like a column of temperatures with a column of dates. F.TEST will happily compute a number for nonsense pairs.

Tips

  • Label your ranges with headers so the formula stays readable when you or others revisit the sheet.
  • Use named ranges (Data > Named ranges) for data you test often, so the formula becomes =F.TEST(SampleA, SampleB).
  • Combine F.TEST with an IF statement to get a plain-language verdict: =IF(F.TEST(A2:A11,B2:B13)<0.05, "Variances differ", "Variances similar").
  • F.TEST assumes roughly normally distributed data. For heavily skewed data, treat the result with caution.
  • Remember F.TEST always runs a two-tailed test; there is no one-tailed option in the function.

Troubleshooting

  • #N/A or #DIV/0! error: one of your ranges contains fewer than two numeric values. Check for typos in the range references and make sure each range has at least two numbers.
  • #VALUE! error: your locale may use semicolons as argument separators — swap the comma for a semicolon. Also confirm both arguments are ranges, not single numbers.
  • #NAME? error: the function is usually misspelled. It is F.TEST with a period, not FTEST, although Sheets accepts FTEST too. Check for stray spaces like F. TEST.
  • Result looks like 0 or exactly 1: the cell may be formatting with too few decimals. Select the cell, then use Format > Number > Number to show more decimal places.
  • The number changes unexpectedly: confirm your ranges don't accidentally include a total row or header text that shifts when data is added.

Frequently Asked Questions

What does the F.TEST result actually mean?

It's a p-value between 0 and 1 for the two-tailed hypothesis test that the two populations have equal variances. Below your threshold (often 0.05), the variances are significantly different; above it, they are considered equal.

Can F.TEST compare more than two data sets at once?

No. It accepts exactly two ranges. To compare several groups, run pairwise F.TEST formulas or consider an analysis of variance approach instead.

Do the two ranges need to be the same size?

No. F.TEST works with unequal sample sizes, as long as each range contains at least two numeric values.

Is F.TEST the same as the F-Test Tool in Excel's Analysis ToolPak?

It covers the same core idea (comparing two variances), but Sheets' F.TEST returns only the p-value, not the full table of F statistic and critical values the Excel tool produces.

Why would I run F.TEST before a t-test?

Standard t-tests assume equal variances. Running F.TEST first tells you whether to use the equal-variance (type 3) or unequal-variance (type 2) option in TTEST.

Does F.TEST work in the Google Sheets mobile app?

Yes. The formula behaves the same on mobile — tap a cell, tap the formula bar, and type it in. On small screens, using named ranges makes typing references easier.