Instant Runoff Voting script for drop-in use in Goog Forms response sheets.
-
Make a Google Form vote grid like above.
-
Set it to require a response in each row, and
-
Limit to one response per column.
-
Get your peeps to vote by rating their choices!
-
Once they do, open the responses spreadsheet and go to
Tools > Script Editor.
-
Paste the contents of
instantRunoff.gs
into your local script, save and close the Script Editor. -
Somewhere on the right side of the responses spreadsheet, paste into a cell:
=instantRunoff(cellRange,inPercent)
cellRange
is something like $H$2:K
inPercent
is a bool; if false
returns result in total vote count, otherwise percent. False by default.
...and presto! It will give you a breakdown of instant runoff results lookin something like this:
- It can process any number of choices
- It doesn't handle ties any kind of inteligent way. It just picks one that sorted unluckily.