Search code examples
csvexcel-formulaweighted-average

Replicating the weighted averages from polljunkie poll


How can I replicate the Result of the poll from the CSV of the polljunkie poll?

example poll: Result

example CSV: CSV

I've split the individual results from the single cell and numbered A-E as 1-5. Then I multiplied every position with its weight (also 1-5) & devided that by its sum, but this does not result in the same "ranking" as the poll result.

Can you give me a formula to replicate the polljunkie result?


Solution

  • Use SUMPRODUCT to get the sum of the position and then divide by the number of responses.

    =SUMPRODUCT((FIND(E2,SUBSTITUTE($B$2:$B$5,",",""))))/4
    

    enter image description here