Would it not be
Formula: copy to clipboard
=SUMPRODUCT(E6:E23,F6:F23)/E24
instead of =SUMPRODUCT(F6:F23,G6:G23)/G24