Calculate total percentage

jm saf 166 Reputation points
2020-12-28T18:46:21.333+00:00

Hi group!!!

How could I get the result of the query column, knowing that for each code I multiply the days by the percentage, add them and divide them by the total days
this is my sample data

51782-imagen.png

Thanks in advance
Regards

Microsoft 365 and Office | Excel | For business | Windows
{count} votes

Accepted answer
  1. HansV 966 Reputation points MVP
    2020-12-28T19:29:27.957+00:00

    Assuming that your data are in A2:C19, with headers in row 1, enter the following formula in D2:

    =SUMPRODUCT(($A$2:$A$19=A2)$B$2:$B$19$C$2:$C$19)/SUMPRODUCT(($A$2:$A$19=A2)*$B$2:$B$19)

    Then fill or copy down.


1 additional answer

Sort by: Most helpful
  1. jm saf 166 Reputation points
    2020-12-29T07:57:00.837+00:00

    Hi Hans!!

    your reply has solved my problem.

    Thanks for sharing your knowledge and for your time.

    Regards

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.