MACD has 2 lines. The first, often called the MACD or Main line, is the difference between 2 moving averages - 12 ema and 26 ema in a classic MACD. the second line is a moving average of the MACD line ("smoothed").
What you are calculating with your speadsheet is the MACD line.