ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Math
  3. How to Run a One-Way ANOVA in Excel

How to Run a One-Way ANOVA in Excel

By ExcelReady Team·Updated November 3, 2026·6 min read

The short answer

To run a one-way ANOVA in Excel, turn on the Analysis ToolPak, then go to Data > Data Analysis > Anova: Single Factor. Select your groups (one column each, with labels), set Alpha to 0.05 and choose an output cell. If the P-value in the result is below 0.05, at least one group mean is likely different from the others.

Key takeaways

  • A one-way ANOVA tests whether three or more group means differ by more than random variation would explain.
  • In desktop Excel, use Data > Data Analysis > Anova: Single Factor after turning on the Analysis ToolPak.
  • By formula, F = (between-groups SS ÷ (k − 1)) ÷ (within-groups SS ÷ (N − k)), and =F.DIST.RT(F, df1, df2) gives the p-value.
  • A small p-value says at least one mean differs, not which one. You need a follow-up test for that.
  • ToolPak results are fixed values; run the tool again when the data changes.
On this page+
  1. What a one-way ANOVA tells you
  2. Step 1: Turn on the Analysis ToolPak
  3. Step 2: Run Anova: Single Factor
  4. Step 3: Read the ANOVA output
  5. How to calculate ANOVA with formulas
  6. How to interpret the result honestly
  7. Check the assumptions before you trust it
  8. Practise it

A one-way ANOVA (analysis of variance) in Excel tells you whether three or more groups have different averages, or whether the differences could just be random. The quickest way is the Analysis ToolPak's Anova: Single Factor tool, which gives an F value and a p-value in one table. You can also build it with AVERAGE, COUNT and a few formulas. This guide shows both on the same data, for students, analysts and anyone comparing groups.

What a one-way ANOVA tells you#

ANOVA compares two kinds of variation:

  • Between groups: how far each group's average is from the overall average.
  • Within groups: how much the values vary inside each group.

If the between-groups variation is large compared with the within-groups variation, the group averages probably aren't all equal. The ratio of the two is the F statistic, and the p-value says how likely an F at least that large would be if all the true means were the same.

The example uses test scores from 15 learners, trained with three methods:

ABC
1Method AMethod BMethod C
2728074
3758576
4788379
5707873
6808478

The averages are 75, 82 and 76. Method B looks better, but with only five scores per group, is the gap bigger than chance? That's the question ANOVA answers. Comparing averages by group is the first step; ANOVA adds the test.

Step 1: Turn on the Analysis ToolPak#

The ToolPak is an add-in that comes with desktop Excel but is off by default.

  • Windows: go to File > Options > Add-ins. At the bottom, choose Excel Add-ins in the Manage box and click Go. Tick Analysis ToolPak and click OK.
  • Mac: go to Tools > Excel Add-ins, tick Analysis ToolPak and click OK.

A Data Analysis button now appears at the right end of the Data tab.

Step 2: Run Anova: Single Factor#

  1. Go to Data > Data Analysis, choose Anova: Single Factor and click OK.
  2. Input Range: select A1:C6, including the labels.
  3. Grouped By: choose Columns, since each group is a column.
  4. Tick Labels in first row.
  5. Alpha: leave it at 0.05 unless you chose another cut-off in advance.
  6. Output options: choose New Worksheet Ply to put the result on its own sheet, or pick an empty Output Range well away from the data.
  7. Click OK.

The output values are fixed numbers, not formulas. If your data changes, run the tool again.

Step 3: Read the ANOVA output#

Excel produces two tables. The SUMMARY table describes each group:

GroupsCountSumAverageVariance
Method A53757517
Method B5410828.5
Method C5380766.5

The ANOVA table holds the test:

Source of VariationSSdfMSFP-valueF crit
Between Groups143.33271.676.720.0113.89
Within Groups1281210.67
Total271.3314

What each column means:

  • SS (sum of squares): the total squared variation from each source.
  • df (degrees of freedom): groups − 1 = 2 for between; values − groups = 15 − 3 = 12 for within.
  • MS (mean square): SS ÷ df.
  • F: MS between ÷ MS within = 71.67 ÷ 10.67 = 6.72.
  • P-value: about 0.011.
  • F crit: the F value you'd need to pass the 0.05 cut-off, 3.89 here.

Since the p-value (0.011) is below 0.05, and F (6.72) is above F crit (3.89), the result is significant at the 5% level: the three methods are unlikely to share the same true average.

How to calculate ANOVA with formulas#

Building ANOVA from formulas shows how it works and updates when the data changes.

StepFormulaResult
Grand mean=AVERAGE(A2:C6)77.67
Between-groups SS=COUNT(A2:A6)*((AVERAGE(A2:A6)-E1)^2+(AVERAGE(B2:B6)-E1)^2+(AVERAGE(C2:C6)-E1)^2)143.33
Within-groups SS=DEVSQ(A2:A6)+DEVSQ(B2:B6)+DEVSQ(C2:C6)128
df between=3-12
df within=COUNT(A2:C6)-312
F=(143.33/2)/(128/12)6.72
p-value=F.DIST.RT(6.72,2,12)0.011
F crit=F.INV.RT(0.05,2,12)3.89

The grand mean is in E1 in this layout, as in the exercise on this page. In a real sheet, point the F, p-value and F crit formulas at the cells that hold SS and df instead of typing the numbers.

The between-groups formula multiplies by COUNT(A2:A6) because every group has 5 values. If your groups are different sizes, multiply each squared gap by that group's own count. DEVSQ returns the sum of squared differences from the group's mean, which is the within-groups variation for that group. The AVERAGE function guide and the COUNT function guide cover the building blocks.

How to interpret the result honestly#

A significant ANOVA tells you something, but not everything:

  • It doesn't say which group differs. Method B has the highest average, but ANOVA alone doesn't prove B beats both A and C. Pairwise comparisons need a follow-up (post-hoc) test, such as Tukey's HSD, which Excel doesn't include as a built-in tool.
  • Significant doesn't mean large. Report the averages and the gap in points, not only the p-value.
  • A p-value above 0.05 isn't proof that the means are equal. With small groups, real differences can go undetected.
  • Five values per group is a small sample. Treat the example as a demonstration of the method.

Check the assumptions before you trust it#

One-way ANOVA relies on three assumptions:

  1. Independent observations. Each score comes from a different learner, and no one appears in two groups.
  2. Roughly normal data within each group. With small groups, look for extreme outliers; a median compared with the average is a quick check for skew.
  3. Similar spread across groups. A common rule of thumb is that the largest standard deviation shouldn't be more than about twice the smallest. Here they are about 4.1, 2.9 and 2.5, so that's fine. The guide to standard deviation in Excel shows how to calculate them, and STDEV.S vs STDEV.P explains which to use.

Other common mistakes: running several two-group t-tests instead of one ANOVA (which raises the chance of a false positive), selecting labels without ticking Labels in first row, and leaving blank or text cells inside the input range.

Practise it#

ANOVA rests on two everyday skills: averaging groups and counting values correctly. Practise AVERAGE, MIN and MAX in a live spreadsheet, then practise COUNT, COUNTA and COUNTBLANK so you always know how many values each group really has. Try the exercise on this page to calculate the between-groups sum of squares yourself.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

Group means are in row 7 and the grand mean is in E1. Click E2 and calculate the between-groups sum of squares: the group size (use COUNT on A2:A6) times the sum of each squared gap between a group mean and the grand mean. Press Enter.

fx
ABCDEF
1
Method A
Method B
Method C
Grand mean
77.66666667
2
72
80
74
Between SS
3
75
85
76
4
78
83
79
5
70
78
73
6
80
84
78
7
75
82
76
8
9
10

Tip: Each group has the same size, so multiply COUNT(A2:A6) by (A7-E1)^2 + (B7-E1)^2 + (C7-E1)^2.

Practise this in a lesson

LessonAVERAGE, MIN and MAXSummarize a list with its average, smallest and largest values.LessonCOUNT, COUNTA and COUNTBLANKCount numbers, filled cells and empty cells, a quick way to audit data.Function guideAVERAGECalculate the mean in Excel with AVERAGE. See how it treats blanks and zeros, avoid common errors, and practice in a live sheet.Function guideCOUNTCount cells that hold numbers or dates with Excel's COUNT. See what it skips, how it differs from COUNTA, then try a live exercise.

Frequently asked questions

How do I do ANOVA in Excel?

+

Turn on the Analysis ToolPak, put each group in its own column with a label, then go to Data > Data Analysis > Anova: Single Factor. Select the data, tick Labels in first row, set Alpha and choose where the output goes.

How do I interpret ANOVA results in Excel?

+

Look at the Between Groups row. If the P-value is below your Alpha, usually 0.05, or F is larger than F crit, the group means are unlikely to all be equal. Then compare the averages in the SUMMARY table to see which groups stand out.

Where is Data Analysis in Excel?

+

It appears at the right end of the Data tab once the Analysis ToolPak is on. On Windows, turn it on in File > Options > Add-ins > Excel Add-ins > Go. On a Mac, use Tools > Excel Add-ins.

Does ANOVA tell you which group is different?

+

No. A one-way ANOVA only tells you whether at least one mean differs. To find which pairs differ, you need a follow-up (post-hoc) test, which Excel doesn't include as a built-in tool.

What is the difference between single factor and two factor ANOVA?

+

Single factor ANOVA compares groups defined by one thing, such as training method. Two factor ANOVA looks at two things at once, such as method and shift, and the ToolPak offers it with or without replication.

Sources

  • AVERAGE function - Microsoft Support
  • COUNT function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 3, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. What a one-way ANOVA tells you
  2. Step 1: Turn on the Analysis ToolPak
  3. Step 2: Run Anova: Single Factor
  4. Step 3: Read the ANOVA output
  5. How to calculate ANOVA with formulas
  6. How to interpret the result honestly
  7. Check the assumptions before you trust it
  8. Practise it

Keep reading

Math· 7 min read

How to Calculate Standard Deviation in Excel

To calculate standard deviation in Excel, use =STDEV.S(B2:B7) when your data is a sample, or =STDEV.P(B2:B7) when it covers the whole group you care about. Standard deviation measures how far values typically sit from the average. A small result means the values are close together; a large one means they are spread out.

Conditional math· 6 min read

How to Calculate an Average by Group in Excel

To calculate an average by group in Excel, list each group once, then use AVERAGEIF next to it: =AVERAGEIF($B$2:$B$9,F2,$D$2:$D$9) averages the scores in column D for the group named in F2. Fill it down for every group. Use AVERAGEIFS when each row must match two conditions, such as team and site, and IFERROR for groups with no rows.

Comparisons· 7 min read

AVERAGE vs MEDIAN: Which Tells the Truth?

Use MEDIAN to describe a typical value when a few very large or very small numbers could skew the result, such as salaries, house prices or order values. Use AVERAGE when the values are fairly even, or when you need a number that multiplies back to the total, as in budgets. When the two differ a lot, report both.

More on math

  • AutoSum in Excel: The Alt+= Shortcut Explained
  • AVERAGE, MIN and MAX in Excel With Examples
  • How to Average Percentages in Excel Correctly
  • How to Average Without Zeros or Blanks in Excel
  • Binomial Distribution in Excel: BINOM.DIST With Examples
  • CAGR Formula in Excel: Compound Annual Growth Rate
All math articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free