An example of how to an analysis of covariance. This demonstration uses the macOS version of SPSS, but the procedure is the same on SPSS for Windows.
Use ANCOVA when you have a covariate. This is a variable that is likely to affect the dependent variable but that you are not explicitly interested in examining; it is a variable that you want to control for.