Home » excel » Calculate weighted mean in excel

Calculate weighted mean in excel

Posted by: admin April 23, 2020 Leave a comment


I’d like some help writing this excel formula.

I’m trying to calculate the weighted mean of term payments accordingly to their percentage of use but I’m failing on the last part of the logic expression.


%[B]    days[C]    weighted mean[D=BxC]
30        1           30
70       30          2100
0        60           0
0        90           0
total                 68.70967742

What I’d like to do is sum all lines in [D], if the percentage of [B] is >=1. Then I want to divide this by the sum of the days in [C] if their corresponding cell in [B] is >=1

So in this example the answer would be 68.70967742 — [(30×1)+(70×30)]/(1+30).
What I came up with returns 11.7679558.


How to&Answers:

When calculating weighted averages, you’ll find SUMPRODUCT is very useful!


This returned 68.7096774 as required.