Discrepancy in Weighted Value Result

A formula for a weighted average using cols K and AN is giving me a result of 23.30% but the answer should be 7.44%, right, according to the long hand version I've written out below?


Am I using the correct formula to weight the col K, IV values with Vega in col AN?


Cheers,


K4 (12.05%) × AN4 (11.7642) = 0.1205 × 11.7642 = 1.4179

K6 (22.27%) × AN6 (-46.5696) = 0.2227 × (-46.5696) = -10.3703

K8 (12.45%) × AN8 (-51.8875) = 0.1245 × (-51.8875) = -6.4600

K10 (21.53%) × AN10 (47.5218) = 0.2153 × 47.5218 = 10.2367

K12 (7.60%) × AN12 (14.6174) = 0.0760 × 14.6174 = 1.1109

K14 (9.01%) × AN14 (-5.1448) = 0.0901 × (-5.1448) = -0.4635

K16 (9.65%) × AN16 (-3.1896) = 0.0965 × (-3.1896) = -0.3078

K18 (13.46%) × AN18 (42.2842) = 0.1346 × 42.2842 = 5.6917

K20 (19.13%) × AN20 (-39.0638) = 0.1913 × (-39.0638) = -7.4735

K22 (24.08%) × AN22 (-36.5901) = 0.2408 × (-36.5901) = -8.8118


Sum of Products = -4.93069361


Sum of AN values:


AN4 (11.7642) +

AN6 (-46.5696) +

AN8 (-51.8875) +

AN10 (47.5218) +

AN12 (14.6174) +

AN14 (-5.1448) +

AN16 (-3.1896) +

AN18 (42.2842) +

AN20 (-39.0638) +

AN22 (-36.5901) 


Sum of AN = -66.2577


= -4.9306 ÷ -66.258 = 0.0744 or 7.44%




[Edited by Moderator]



MacBook Pro 16″

Posted on Jul 31, 2025 2:56 PM

Reply
Question marked as Top-ranking reply

Posted on Jul 31, 2025 8:31 PM

I think you added wrong. Using the numbers you provided, I get a SUMPRODUCT of -15.4348, not -4.9307. The sum of the values in AN is -66.2577. -15.438/-66.2577 = 0.23295 or 23.295%. The result is a little different from in your spreadsheet because the actual values in AN and/or K have more decimal places than is shown.


You should look at the SUMPRODUCT function. Your formula comes down to this:

=SUMPRODUCT(K4:K22,AN4:AN22)/SUM(AN4:AN22)

Which is the same as your much longer formula and gives you a "weighted average" of the percentages in K using the weights in AN

2 replies
Question marked as Top-ranking reply

Jul 31, 2025 8:31 PM in response to Bardonicloud

I think you added wrong. Using the numbers you provided, I get a SUMPRODUCT of -15.4348, not -4.9307. The sum of the values in AN is -66.2577. -15.438/-66.2577 = 0.23295 or 23.295%. The result is a little different from in your spreadsheet because the actual values in AN and/or K have more decimal places than is shown.


You should look at the SUMPRODUCT function. Your formula comes down to this:

=SUMPRODUCT(K4:K22,AN4:AN22)/SUM(AN4:AN22)

Which is the same as your much longer formula and gives you a "weighted average" of the percentages in K using the weights in AN

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Discrepancy in Weighted Value Result

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.