Install free

Guides

How to do a one-way ANOVA in Google Sheets

A one-way ANOVA tests whether three or more group means are equal. Example: test scores from three teaching methods, ten students each.

ABC
1Method AMethod BMethod C
2787164
3857972
4696558
5918470
6747066
7887661
8827369
9776963
10807567
11867860

Steps

  1. Open Extensions, StatPak, Data Analysis and choose Anova: Single Factor.
  2. Input range: A1:C11 with Grouped by: Columns.
  3. Tick Labels in first row or column. Leave Alpha at 0.05.
  4. Click Run.
Anova: Single Factor
SUMMARY
GroupsCountSumAverageVariance
Method A108108145.55556
Method B107407430.88889
Method C106506521.11111
ANOVA
Source of VariationSSdfMSFP-valueF crit
Between Groups1286.6672643.333319.78365.1215E-63.354131
Within Groups8782732.51852
Total2164.66729

Reading the result

Look at the Between Groups row. F is 19.7836 and the P-value is 5.1215E-6. Because the p-value is below 0.05 (equivalently, F is larger than F crit, 3.354131), at least one method has a different mean score.

ANOVA does not say which groups differ. Follow up with t-tests between pairs, adjusting alpha for the number of comparisons (for three pairs, 0.05 / 3 is about 0.017).

Without an add-on

Google Sheets has no ANOVA function. You can rebuild the table: SS between is the sum over groups of COUNT(g) * (AVERAGE(g) - grand mean)^2, SS within is the sum of DEVSQ(g), then F is (SSB / (k - 1)) / (SSW / (N - k)) and the p-value is =F.DIST.RT(F, k - 1, N - k).

Two-factor ANOVA

For two factors (for example method and school), use Anova: Two-Factor Without Replication when each combination has one value, or With Replication when each combination has several rows. The input needs a label row and a label column.

Related guides