A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
In general, the average of averages is not the same as the average of the whole.
The exception is when each average has the same divisor; that is, the same number in column B.
The correct formula in D9 is the weighted average:
=SUMPRODUCT(D2:D8, B2:B8) / SUM(B2:B8)
Of course, you can also use a formula similar to the operation in E9:
=SUM(C2:C8) / SUM(B2:B8)
The latter is better, when you have all of the data -- C2:C8 and B2:B8.
Note that SUMPRODUCT(D2:D8, B2:B8) is algebraically the same as SUM(C2:C8). For example, since D2 = C2/B2, D2*B2 = B2*C2/B2 = C2.