How to Perform ANOVA: Two-Factor With Replication in Excel – Step-by-Step with Example

ANOVA (Analysis of Variance) is used to test if there are statistically significant differences between group means. The two-factor with replication version checks:

  1. The impact of two independent variables (factors)
  2. Whether there’s an interaction between them
  3. When each combination of factor levels has multiple observations (i.e., replication)

📚 Real-Life Scenario Example (Indian Context)

Imagine you’re testing the performance of two different teaching methods (Factor A) across 3 schools (Factor B), and each method was tested on 3 students per school.

Your data table would look like:

School ASchool BSchool C
Method 175, 78, 7480, 82, 8177, 76, 78
Method 270, 69, 6872, 74, 7371, 72, 70

Each cell contains replications (3 values) for that combination of method & school.


How to Perform ANOVA: Two-Factor With Replication in Excel

🔹 Step 1: Organize Your Data

Your data must be arranged like this:

School ASchool BSchool C
Rep1Rep2Rep3Rep1Rep2Rep3Rep1Rep2Rep3
Method 1757874808281777678
Method 2706968727473717270

🧠 Each row = one level of Factor A (e.g., teaching method)
Each group of columns = one level of Factor B (e.g., school)
Each cell = a replicated value (score)


🔹 Step 2: Load the Data Analysis Toolpak

If not yet enabled:

  • Go to FileOptionsAdd-ins
  • In Manage, select Excel Add-ins → Click Go
  • Check Analysis ToolPak → Click OK
  • Go to the Data tab → Click Data Analysis

🔹 Step 3: Run ANOVA: Two-Factor With Replication

  1. Click DataData Analysis → Choose ANOVA: Two-Factor With Replication
  2. Click OK
  3. Input Range: Select your full data including labels
  4. Rows per Sample: Enter the number of replications (e.g., 3)
  5. Choose Output Range or New Worksheet
  6. Click OK

📊 Understanding the Output

Excel gives a detailed ANOVA table with 3 key sections:

Source of VariationSSdfMSFP-valueF crit
Rows (Factor A)Differences due to methods
Columns (Factor B)Differences due to schools
InteractionCombined effect
WithinResidual error
TotalTotal variation

🧠 Key Columns:

  • F-value: The test statistic
  • P-value: If P < 0.05 → statistically significant
  • F crit: Threshold from F-distribution

✅ What the Output Tells You

  • If P-value for Rows < 0.05 → significant difference between teaching methods
  • If P-value for Columns < 0.05 → significant difference between schools
  • If P-value for Interaction < 0.05 → method effectiveness varies across schools


📣 Learn More in My Excel Course!

📊 Want to dive deeper into statistical analysis in Excel with Indian business examples?

👉 Join the Mastering Excel Course
Includes Toolpak demos, real-world case studies, and job-ready Excel skills.


Top rated products