Anova in Excel (One and Two-Way)

In this Excel tutorial, we provide a comprehensive look at ANOVA in Excel. We will demonstrate how to enable the Data Analysis feature and use it to perform One-way as well as Two-way ANOVA. We will also discuss how to interpret ANOVA results.

Note: We used Microsoft 365 to prepare this article, but the operations apply to all versions.

1- an overview image of Anova in Excel


Download Practice Workbook


What Is ANOVA?

ANOVA is the acronym for Analysis of Variance. It is a statistical test that separates variance into different components so that they can be used in further tests. It helps to assess whether the means of different groups are significantly different or if the observed differences are due to random chance. There are several types of ANOVA. In this article, we will discuss 2 types:

  • One-Way ANOVA
  • Two-Way ANOVA

What Are One-Way and Two-Way ANOVA in Excel?

  • One-Way ANOVA: The one-way ANOVA determines whether there is a significant difference between the mean of three or more groups. It is called one-way because it involves only one factor. A one-way ANOVA cannot tell you which specific groups are statistically different from each other, but it can tell you which two groups are.
  • Two-Way ANOVA: Two-way ANOVA is a statistical technique used to analyze the effects of two categorically independent variables on a continuous dependent variable. The basic difference between one-way ANOVA and two-way ANOVA is the number of independent variables.

How to Enable Data Analysis ToolPak in Excel?

To perform ANOVA, we need the Data Analysis tool pack, which is not enabled by default in Excel.

To add the Data Analysis ToolPak manually:

  • Press the keyboard shortcut ALT + F + T to open the Excel Options dialog box.
  • Go to Add-ins >> click on Go.

2- opening Excel Options dialogue box to add data analysis toolpak

  • Check the Analysis ToolPak checkbox and click OK.

3- checking data analysis toolpak from add-ins dialogue box

  • To check, go to the Data tab.

The Data Analysis option should appear at the top right side of the Ribbon.

4- successfully enabled data analysis toolpak


How to Perform One-Way ANOVA Test in Excel?

In the following dataset, we have the bowling Speed of 3 Bowlers and their Average Speed. There is only one variable that influences bowling speed, namely the bowler.

4.5- dataset for performing one-way anova test in Excel

Let’s perform a One-Way ANOVA test in Excel on this dataset.

Steps:

  • Go to the Data tab >> click on Data Analysis.
  • Choose Anova: Single Factor from the Data Analysis dialog box that opens.
  • Click OK.

5- selecting Anova Single Factor from the Data Analysis dialogue box

  • Click on the Input Range box to input cells C4:E11.
  • Check the Labels in first row box.
  • Click on the Output Range box and select cell B14 to display the output.
  • Click OK.

6- editing anova single factor dialogue box to perform one-way anova test in Excel

The outputs of the ANOVA test are generated, like in the following picture.

7- final output result of one-way anova test in Excel


How to Do a Two-Way ANOVA Test in Excel?

Now let’s perform a two-way ANOVA test. In the following dataset, we compare the amount of dirt removed by two different brands of detergent at three different temperatures. Dirt removal is dependent on two factors: the detergent brand and the water temperature.

8- dataset for performing two-way anova test in Excel

Steps:

  • Go to the Data tab >> click on Data Analysis.
  • Choose Anova: Two-Factor With Replication from the Data Analysis dialog box that opens.
  • Click OK.

9- selecting Anova Two-Factor With Replication from the Data Analysis dialogue box

  • Click on the Input Range box to input cells B4:E12.
  • Input 4 in the Rows per sample text box.
  • Click on the Output Range box and select cell B14 to display the output.
  • Click OK.

10- editing anova two factor with replication dialogue box to perform two-way anova test in Excel

The outputs of the ANOVA test are generated like in the following picture.

11- final output result of two-way anova test in Excel part 1

And here is the ANOVA part after performing a two-way ANOVA test:

11.5- final output result of two-way anova test in Excel part 2


How to Interpret ANOVA Results in Excel?

We can use multiple components of an ANOVA Analysis to interpret the results.

Example 1 – Interpreting One-Way ANOVA Test Result

Executing ANOVA: Single Factor Analysis helps determine if there is a statistically significant difference between the means of 3 or more independent samples (or groups). We received results like the picture below after performing a one-way ANOVA test.

12- interpreting one-way anova test result in Excel

  • Parameters: Anova Analysis determines the Null Hypothesis’s applicability in the data. Different result values from the Anova Analysis outcome can pinpoint the Null Analysis status.
  • Average and Variance: From the Summary, we can see both the highest average (i.e., 88.333) and highest variance (30.222) are for Sam.

13- interpreting average and variance after got anova test result in Excel

  • Test Statistic (F) vs. Critical Value (FCrit): Anova results showcase Statistic (F= 6.00) > Critical Statistic (FCrit=3.55). Therefore, the data model rejects the Null Hypothesis.

14- interpreting Test Statistics vs. Critical Value after got anova test result in Excel

  • P-Value vs. Significance Level (a): Again, from the ANOVA outcomes, P-Value (0.010058) < Significance Level (a = 0.05). So, we can say that the means are different and reject the Null Hypothesis.

15- interpreting P-Value vs. Significance Level after got anova test result in Excel


Example 2 – Interpreting Two-Way ANOVA Test Result

As we know, ANOVA: Two-Factor with Replication evaluates the difference between the means of more than two groups. We got results like the screenshot below after performing a two-way ANOVA test. This is the summary part of the two-way ANOVA test result:

16- summary part of the two-way anova test result in Excel

And here is the ANOVA part of the two-way ANOVA test result:

17- anova part of the two-way anova test result in Excel

  • Parameters: P Value only acts as the parameter for the rejection or acceptance of the Null Hypothesis.
  • Variable 1 Significant Status: Variable 1 (i.e., Sample) has a P-Value (i.e., 0.017679) which is not greater than the Significance Level (i.e., 0.05). Thus, Variable 1 rejects the Null Hypothesis.

18- variable 1 significant status after performing two-way anova test

  • Variable 2 Significant Status: Variable 2 (i.e., Columns) has a P-Value (i.e.1.1542) which is greater than 0.05. In this case, Variable 2 falls under the Null Hypothesis.

19- variable 2 significant status after performing two-way anova test

  • Interaction Status: Variables 1 and 2 don’t have any interaction as P Value (i.e., 0.934) is more than the Significance Level (i.e., 0.05).

20- interaction status after performing two-way anova test

  • Mean Interaction: Among the means for Persil and Gain, Gain has the highest mean. But these mean values don’t tell whether this comparison is significant or not. In this case, we can look at the mean values for Cold, Warm, and Hot waters.

21- analyzing mean interaction after performing two-way anova test

The mean values of Cold, Warm, and Hot waters have greater values for Hot.

22- analyzing mean values after performing two-way anova test

Also, there are no significant interaction effects as the entries seem to be random and repetitive within a range.


Things You Need to Remember

  • ANOVA is suitable when you have three or more groups or levels to compare.
  • ANOVA can be used with both balanced (equal sample sizes between groups) and unbalanced (unequal sample sizes) designs. Unbalanced designs may reduce test power. Interpret results carefully.
  • To get the exact F Value, make sure that the first variance value is less than the second variance value.

Frequently Asked Questions

1. What is the difference between ANOVA and t-test?

ANOVA is used when there are more than two groups or levels to compare whereas the t-test is used when there are only two groups to compare.

2. What is a P-value in ANOVA?

In ANOVA, the p-value indicates the probability that the observed differences across groups or levels are due to random chance. It enables researchers to determine whether the differences are statistically significant enough to reject the null hypothesis.

3. What is an F-value in ANOVA?

The F-value in ANOVA reflects the ratio of between-group variability to within-group variability. It is used to assess the overall significance of variations between the means of different groups or levels that are being compared.


ANOVA in Excel: Knowledge Hub


<< Go Back to Excel for Statistics | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Nujat Tasnim
Nujat Tasnim

Nujat Tasnim, BSc in Computer Science and Engineering from American International University-Bangladesh, has a year-long tenure with ExcelDemy. Initially a Content Developer at SOFTEKO, she transitioned to the Software Team as Junior Software Quality Assurance Engineer. Currently serving as a Junior SQA Engineer at SOFTEKO, she excels in SDLC, STLC, and requirement analysis and possesses profound insights into OOP-related software development processes. Nujat is also proficient in design software like Photoshop and Illustrator, contributing diverse skills to her... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo