The beauty of ANOVA procedures is that they can be easily extended to more complex designs. This section will discuss a basic factorial design with two factors, both of which are betweensubjects factors (See Chapter 12 of the textbook for details). The section closes with a brief introduction to even more complex designs, although covering such designs in detail is beyond the scope of this text.
In a basic twoway ANOVA, there are two independent variables and they are crossed to form several independent groups. A twoway ANOVA is just the simplest of a set of ANOVA procedures for factorial designs, called factorial ANOVAs.
We will have to use slightly more complex notation here to describe the situation, but the notation is a simple extension of notation that we have used previously. We will call the two factors A and B (using capital letters), and we will use lowercase versions of those letters (a and b, respectively) to indicate the number of levels of each independent variable. Therefore, the total number of cells will be the number of levels of factor A times the number of levels of factor B.
When both factors are betweensubjects factors (see Chapter 12 for details), we have three possible effects that we will evaluate in the ANOVA: (1) the main effect of factor A, (2) the main effect of factor B, and (3) the interaction of factors A and B.
The summary table below shows the formulas for everything except the sums of squares. The formulas for the sums of squares are shown in the unit that walks you through the manual computation of the twoway ANOVA. Click on the button below to view that unit.
It is technically possible to compute something as complex as a twoway ANOVA by hand. Thousands of graduate students from the 1940s through the 1970s routinely performed such computations on mechanical and crude electronic calculators. But with the ready availability of easy to use and inexpensive statistical analysis computer programs, such computations are quick and easy. If you want to see how to set up a twoway ANOVA using SPSS for Windows, click on the button below the summary table.
ANOVA Summary Table for a TwoWay ANOVA 

Source 
df  SS  MS  F  p 
Factor A  df_{A}=a1  SS_{A}  MS_{A}=SS_{A}/df_{A} 
F=MS_{A}/MS_{w} 

Factor B  df_{B}=b1  SS_{B}  MS_{B}=SS_{B}/df_{B}  F=MS_{B}/MS_{w}  
AB interaction  df_{AB}=df_{A}Xdf_{B}  SS_{AB}  MS_{AB}=SS_{AB}/df_{AB}  F=MS_{AB}/MS_{w}  
Within  df_{w}=Nab  SS_{w}  MS_{w}=SS_{w}/df_{w}  
Total  df_{T}=N1  SS_{T} 
Compute a TwoWay ANOVA by hand 
Compute a TwoWay ANOVA using SPSS 
USE THE BROWSER'S 
The real advantage of ANOVA is that it can be extended into almost any conceivable design, although the computation and the interpretation can become quite tedious as the complexity of the design increases.
For example, if we wanted to do a threeway ANOVA in which all of the factors were betweensubjects factors, that is a simple extension of the twoway ANOVA above. We would have more sources of variance (A, B, C, AB, AC, BC, ABC, within, and Total). You could probably create a summary table for the threeway ANOVA like the one above showing the formulas for a twoway ANOVA by just looking at the pattern above and recreating it.
There is even an algorithm that you can use to create the long and complex formulas for the various sums of squares, which could be extended indefinitely to a fiveway, or a tenway, or even a 20way ANOVAs, although in practice such complex ANOVAs would be unworkable and uninterruptible. For example, a tenway ANOVA, assuming that there are only two levels of each factor, would require a minimum of 2048 participants (two each for each of 1024 cells). It would have 10 main effects, 45 twoway interactions, 120 threeway interactions, 210 fourway interactions, and so on.
The ANOVA can also be extended to situations that are called mixed designs (see Chapter 12 of the textbook). In statistically mixed designs, some of the factors are withinsubjects factors and others are betweensubjects factors. The SPSS for Windows program that can be bundled with this textbook (the student version) cannot handle the analysis of such designs, the but the full SPSS program can, and there are at least a dozen other statistical analysis programs on the market that can handle such analyses. It is beyond the scope of this text to show you how to set up such analyses, but it is useful for you to at least know the terminology that describes such designs and analyses.
The statistical analysis of mixed designs is typically described by stating how many of the factors are of each type. For example, a "two between, one within" analysis is used when two of the factors are betweensubjects factors and one is a withinsubjects factor. If all factors are withinsubjects factors, the design is said to be a factorial repeated measures design. The formulas for such mixed designs are incredibly complex, but computers handle the analysis easily. However, the real problem is that few people alive have the capability of visualizing the kind of complex interactions that might be found in such analyses, which is the factor that provides the most severe limit on how far you can stretch factorial designs.