📊 Learn Excel inside Excel. Try Ninja Excel free for 15 days, no credit card required. Start free trial

ANOVA Table in Excel: How to Create and Interpret It

Magnifying glass over the word analysis, cover image for the ANOVA table in Excel guide

Quick answer

An ANOVA table (Analysis of Variance) compares the averages of two or more groups of data to see if they are statistically different. Excel builds it with the Data Analysis ToolPak: install it once from File > Options > Add-ins, then go to Data > Data Analysis and choose Anova: Single Factor, Anova: Two-Factor Without Replication or Anova: Two-Factor With Replication. The table reports SS, df, MS, F, P-value and F crit; if the F value is greater than F crit, at least one group average is different.

Summarize this content in your favorite AI

Opens a new conversation with this article ready to analyze.

An ANOVA table (Analysis of Variance) lets you compare the averages of several groups of data at once, instead of running separate tests between every pair. Excel builds it automatically once you install the Data Analysis ToolPak, and in this article you will learn how to set it up and how to read every number it returns.

We will cover the three ANOVA tools Excel offers: Anova: Single Factor, for a single grouping factor; Anova: Two-Factor Without Replication, for two factors with a single observation per combination; and Anova: Two-Factor With Replication, for two factors with several observations per combination.

What you’ll learn in this article

  • How to install the Data Analysis ToolPak
    the add-in Excel needs before it can build any ANOVA table, and where it shows up once it’s active.
  • What SS, df, MS, F, P-value and F crit mean
    every column of the ANOVA table explained with a worked example.
  • Anova: Single Factor, step by step
    comparing grades across three subjects, with equal and unequal sample sizes.
  • Anova: Two-Factor Without Replication
    testing two factors at once when you only have one observation per combination.
  • Anova: Two-Factor With Replication
    adding several observations per combination to also test the interaction between both factors.

By the end of this article: you will be able to install the Analysis ToolPak, choose the right ANOVA tool for your data and read the F value against the F crit value to decide whether group averages are statistically different.

Reading time: 12 minutes | Level: intermediate | For: analysts and anyone comparing averages across groups in Excel

Key information

To compare the averages of several groups of data, we use an ANOVA table (Analysis of Variance). This table holds the elements that measure how much the data varies, and it tells us whether two or more groups are statistically different from one another or not.

The basics of ANOVA

Purpose: The goal of an ANOVA table is to test whether two or more groups are statistically equal or different from each other.

Null hypothesis: The starting assumption about the groups. In an ANOVA, the null hypothesis states that the averages of all the groups are equal.

F-test: The test the ANOVA table runs to check whether the null hypothesis holds, that is, whether the group averages are equal or not. If the F value is greater than the critical value (F crit), we reject the null hypothesis, meaning at least one group average is statistically different.

Install the Data Analysis ToolPak

Before you can build any ANOVA table, you need to install the Data Analysis ToolPak.

Step 1: Click the File tab, then Options (at the bottom left).

Excel File menu with Options highlighted to install the Data Analysis ToolPak

Step 2: In the new Options window, select Add-ins. In the Manage section, choose Excel Add-ins and click Go.

Excel Options dialog, Add-ins pane, with Analysis ToolPak selected

Step 3: A new window appears. Check Analysis ToolPak and click OK.Add-ins dialog with the Analysis ToolPak checkbox checked

Go to the Data tab on the ribbon and you will see a new group called Analysis, with the Data Analysis button.

Analysis group on the Data tab showing the Data Analysis button

Ninja Tip: To install this add-in on a Mac, open the Tools menu and click Excel Add-ins. In the window that appears, check Analysis ToolPak and click OK. With this add-in you can also run linear regressions, get correlation coefficients, run t-tests and use many other data analysis tools.

Anova: Single Factor

To understand a single-factor ANOVA table, let’s look at an applied example. Say we have a student’s grades in three different subjects: Math, History and Science.

Goal of a single-factor ANOVA table: comparing Math, History and Science averages in Excel

Our goal is to know whether this student’s average in each subject is statistically equal to the averages in the other subjects, that is, whether the Math average equals the History average and the Science average.

To do this, we need to:

  1. Go to the Data tab and click Data Analysis.Data tab and Data Analysis button used to build a single-factor ANOVA table in Excel
  2. In the window that opens, select Anova: Single Factor.Data Analysis tool list with Anova: Single Factor selected in Excel
  3. In Input Range, select the table with our data. In this case it is $B$2:$D$6, and since we included the headers, we also check Labels in First Row.Input range selected with Labels in First Row checked in the Anova: Single Factor dialog
  4. In Grouped By, choose how each group is arranged: since each group is a different column, we select Columns. This is because we want to compare one column against another.Grouped By columns selected for a single-factor ANOVA in Excel
  5. For the Alpha value, the default is 0.05, which corresponds to a 95% confidence level. If we want to be stricter, we can choose a smaller value, such as 0.01 (for 99% confidence).Alpha value selected in the Anova: Single Factor dialog in Excel
  6. In Output Range, choose the cell where the ANOVA result will start, that is, its top-left corner. In this case we select $A$8. Finally, click OK.Output range selected for the Anova: Single Factor table in Excel

This gives us a SUMMARY table with the count, sum, average and variance of each group, followed by the ANOVA table itself.

Anova: Single Factor result with summary table and ANOVA table in Excel

Ninja Tip: As you can see, the result is written directly onto the sheet and will overwrite anything already there. Make sure you have enough empty space before you run the tool, so you don’t lose any data.

Now, to read the ANOVA table, our goal is to check whether the null hypothesis holds: if the F value is greater than the F critical value, we reject the hypothesis that the group averages are equal. In other words, if F is greater than F crit, at least one of the group averages is statistically different.

Looking at the ANOVA table, in the Between Groups row we see that the F value is 6.07, while the F critical value is 4.26. Since F is greater than F crit, this means the averages in Math, History and Science are not all equal, that is, at least one average is different.

Single-factor ANOVA table in Excel: F value greater than the critical value

Ninja Tip: The F critical value gets smaller as you add more data per group. This means that with more data, even smaller differences between averages can show up as statistically significant.

However, an ANOVA test by itself does not tell us which group (or groups) is the different one, or whether it is higher or lower than the rest. For that, you would run a t-test to compare each pair of groups.

Ninja Tip: You don’t need the same number of observations in every group to compare averages with an ANOVA table. For example, here we select $B$2:$D$9, leaving blank the cells that have no data.

ANOVA table with a different number of observations per group in Excel
Input range selected for a different number of observations in the ANOVA table

Getting the following result:

Anova: Single Factor output for groups with a different number of observations

Anova: Two-Factor Without Replication

A two-factor ANOVA table means we have two types of groups, and we want to study whether there are differences between groups for both types. This is easier to understand with an example: imagine a class that has several students, and that has taken several tests.

Here we want to see whether the students’ averages are statistically equal to one another, and whether the tests’ averages are also statistically equal to one another. That’s why it’s a two-factor ANOVA: we want to study the averages for students and for tests at the same time.

The steps are similar to a single-factor ANOVA:

  1. Go to the Data tab and click Data Analysis.
  2. In the window that opens, select Anova: Two-Factor Without Replication.Data Analysis tool list with Anova: Two-Factor Without Replication selected
  3. In Input Range, select the table with our data. In this case it is $B$2:$D$7, and since we included the headers, we also check Labels.Anova: Two-Factor Without Replication dialog with Labels checked in Excel
  4. For the Alpha value, the default is 0.05, which corresponds to a 95% confidence level.
  5. In Output Range, choose the cell where the ANOVA result will start, that is, its top-left corner. In this case we select $A$9. Finally, click OK.Output range selected for Anova: Two-Factor Without Replication in Excel

This gives us a SUMMARY table with the count, sum, average and variance of each group of each type, that is, for every test and for every student.

Anova: Two-Factor Without Replication result with summary and ANOVA table in Excel

Now, when reading a two-factor ANOVA table, there are two things we want to study: the difference in averages between tests and between students. The Rows line tests between rows, that is, whether the tests have the same averages or not. Since the F value (1.12) is less than the F critical value (6.39), we fail to reject the null hypothesis: statistically, the test averages are the same.

Rows F value compared to the critical value in a Two-Factor Without Replication ANOVA

Then, the Columns line compares between columns, that is, the averages of Alex and Jordan. In the ANOVA table, the F value is 60.80, which is much greater than the F critical value of 7.71. This means we reject the hypothesis that they share the same average, statistically speaking.

Columns F value compared to the critical value in a Two-Factor Without Replication ANOVA

Anova: Two-Factor With Replication

A two-factor ANOVA table with replication, just like the previous case, means we have two types of groups and we want to study whether there are differences between groups for both types. The difference is that here we have several data points per group. Let’s look at an example: imagine two schools and two subjects, where each subject at each school has several grades.

Two factors with several observations per group: School A and School B data in Excel

Here we want to see whether each school’s averages are statistically equal to one another, and whether the subjects’ averages are also statistically equal to one another. That’s why it’s a two-factor ANOVA: we want to study the averages for each school and for each subject. And since we have several observations per group, we can also study whether the “school-subject” interactions are equal to one another.

The steps are similar to a single-factor ANOVA in Excel:

  1. Go to the Data tab and click Data Analysis.
  2. In the window that opens, select Anova: Two-Factor With Replication.Data Analysis tool list with Anova: Two-Factor With Replication selected
  3. In Input Range, select the table with our data. In this case it is $B$2:$D$12, including the table headers.Anova: Two-Factor With Replication dialog before entering the rows per sample
  4. In Rows per sample, enter how many observations you have per group. Here we have 5 grades for each school, for a given subject.Rows per sample set to 5 for Anova: Two-Factor With Replication in Excel
  5. For the Alpha value, the default is 0.05, which corresponds to a 95% confidence level.
  6. In Output Range, choose the cell where the ANOVA result will start, that is, its top-left corner. In this case we select the start of a new worksheet. Finally, click OK.

We get the following result:

Anova: Two-Factor With Replication result with summary tables and ANOVA table

This gives us a summary table for School A, for School B and for both together, broken down by subject.

Summary tables for School A, School B and both schools combined in Excel

Then, in the ANOVA table, the Sample row compares the schools (the row groups), and the Columns row compares Math versus History. For Sample, F is less than F crit (0.20 < 4.49), so we fail to reject the null hypothesis: School A and School B have statistically equal averages. For Columns, F is greater than F crit (7.73 > 4.49), so the Math and History averages are statistically different.

Columns F value compared to the critical value in a Two-Factor With Replication ANOVA

Finally, we look at the Interaction row: are School A in Math, School A in History, School B in Math and School B in History all equal? Since F is greater than F crit (9.70 > 4.49), at least one school-subject combination is different.

Interaction F value compared to the critical value in a Two-Factor With Replication ANOVA

Ninja Summary

  • An ANOVA table compares the averages of several groups at once, using the F value against the F critical value.
  • Excel needs the Data Analysis ToolPak active (File > Options > Add-ins) before it can build any ANOVA table.
  • Use Single Factor for one grouping variable, Two-Factor Without Replication for two factors with one observation each, and Two-Factor With Replication for two factors with several observations, which also tests the interaction between them.

Want to get faster with Excel’s analysis tools?

Tools like Data Analysis stick once you practice them inside Excel itself. In Ninja Excel’s online courses you solve exercises directly in the spreadsheet, with live classes, and if your company funds the training your manager can see the progress reports.

See Excel Courses Online

You start with a skill assessment, so you never repeat what you already know.

FAQ

What is an ANOVA table?

An ANOVA table (Analysis of Variance) compares the averages of several groups of data to see whether they are statistically different. It reports the SS, df, MS, F, P-value and F crit values Excel needs to make that comparison.

What is ANOVA used for?

ANOVA is used to test whether two or more groups of data share the same average or not, without having to run a separate test for every possible pair of groups.

How do I enable the Data Analysis ToolPak in Excel?

Go to File, then Options, then Add-ins. In the Manage box choose Excel Add-ins and click Go. Check Analysis ToolPak and click OK. The Data Analysis button then appears on the Data tab, inside the Analysis group.

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

Anova: Single Factor compares groups along a single variable, such as three subjects. Anova: Two-Factor Without Replication compares two variables at once with one observation per combination, and Anova: Two-Factor With Replication does the same with several observations per combination, which also lets you test the interaction between both factors.

How do I know if the ANOVA result is significant?

Compare the F value against the F crit value in the same row. If F is greater than F crit, you reject the null hypothesis and conclude that at least one group average is statistically different.

Does ANOVA tell me which group is different?

No. ANOVA only tells you whether at least one group is different from the rest. To find out which group, and whether it is higher or lower, you need to run a t-test between each pair of groups.

Table of contents