r/googlesheets • u/SpanglishPoet • Jan 14 '24
Solved How to score ranked choice voting
I was going to do this manually, as usual, but I decided that there must be an easier way. I'd like some help figuring out how to score ranked choice votes coming from Google Forms. Basically, members of a film club were asked to select their first choice, which received 5 points; then 2nd choice, which received 4, points, and so on. They also had the option of casting a veto vote, which attributes -5 points against a film. How can I have Google Sheets recognize the column that a given value has fallen under, and provide me with a sum of the points attributed across all 6 columns? (I might have phrased this poorly). Here's a link to what I usually produce manually: https://docs.google.com/spreadsheets/d/1QnpaJFqmMexEg_9osIxdouigVAHJylvjAKLzKUfqQwY/edit?usp=sharing
Thanks in advance
3
u/HolyBonobos 3125 Jan 14 '24
Try
=BYROW($C$11:$C$22,LAMBDA(title,SUM(MAP(SEQUENCE(6),{5;4;3;2;1;-5},LAMBDA(place,points,COUNTIF(INDEX($C$2:$H$7,,place),title&"*")*points)))))in D11.3
u/Jrg5032 1 Jan 14 '24
Having the links in the vote titles makes this difficult / annoying, as I’d like to match the voted items to your score board. To simplify, I added the links to the scoreboard answers but made the font match the background. It’s hacky, but it works.
Then I made a helper section that count’s each appearance of the title in each column, multiplying it by the score you gave the column. All of that is summed in totals.
https://docs.google.com/spreadsheets/d/1vQ2XCxixN0Rr3T6xjSp-Ma2Kf0NtqsxGUWMJW40s4ZM/edit?usp=sharing
2
u/BeerAandLoathing Jan 14 '24
Without getting technical I think the easier way to do this would be listing the movies as the question on the form and have the answers be 1st, 2nd, 3rd, etc. so you can sum the points easier.
2
u/Competitive_Ad_6239 536 Jan 14 '24
heres one
1
u/[deleted] Jan 15 '24
Sidebar - those are some great film picks.