The Student Room Group

Excel formula

I am currently creating a Premier League predictor competition through a project at University, where I am asking people to send me their final league table predictions. I am running this in excel, and have set the terms that for every position that they have a team out they lose -1 points, so if they predict a team to finish 1st and they finish 5th they are 4 positions out, so they would have -4 points. If they get a team right then they get 10 points.

Has anyone got a formula (I am guessing it would be an IF statement saying IF "Team A" = "Team B" then.....) that can automatically show me the scores to save me updating every teams scores?

I have the current league table displayed, and then every persons predictions along side that (which will hopefully make it easier). All of the teams are written in the same format as well.
Reply 1
I would just put the teams in alphabetical order in row a, then the prediction numbers "1-20" in row b and then the final numbers in row c. Then do ROW B - ROW C. Of course, as you want all the differences to be negative you then do an if statement along the lines of IF difference column is > 0 *-1. And IF difference column equals 0, assign that cell a score of 10.

Been a long time sinces I've used excell properly but I hope that helps.
Reply 2
Thank you. I managed to have a play with it and ended up doing a ridiculously long IF statement which consisted of:

=IF(C3=$A$3,"10",IF(C3=$A$4,"-1",IF(C3=$A$5,"-2",IF(C3=$A$6,"-3",IF(C3=$A$7,"-4",IF(C3=$A$8,"-5",IF(C3=$A$9,"-6",IF(C3=$A$10,"-7",IF(C3=$A$11,"-8",IF(C3=$A$12,"-9",IF(C3=$A$13,"-10",IF(C3=$A$14,"-11",IF(C3=$A$15,"-12",IF(C3=$A$16,"-13",IF(C3=$A$17,"-14",IF(C3=$A$18,"-15",IF(C3=$A$19,"-16",IF(C3=$A$20,"-17",IF(C3=$A$21,"-18",IF(C3=$A$22,"-19",))))))))))))))))))))

Which seems to do exactly what I want
Reply 3
Original post by foster187
Thank you. I managed to have a play with it and ended up doing a ridiculously long IF statement which consisted of:

=IF(C3=$A$3,"10",IF(C3=$A$4,"-1",IF(C3=$A$5,"-2",IF(C3=$A$6,"-3",IF(C3=$A$7,"-4",IF(C3=$A$8,"-5",IF(C3=$A$9,"-6",IF(C3=$A$10,"-7",IF(C3=$A$11,"-8",IF(C3=$A$12,"-9",IF(C3=$A$13,"-10",IF(C3=$A$14,"-11",IF(C3=$A$15,"-12",IF(C3=$A$16,"-13",IF(C3=$A$17,"-14",IF(C3=$A$18,"-15",IF(C3=$A$19,"-16",IF(C3=$A$20,"-17",IF(C3=$A$21,"-18",IF(C3=$A$22,"-19",))))))))))))))))))))

Which seems to do exactly what I want


Well... It's not elegant, but it works!! :smile:
Can we see a screen grab of the data?

Curious as to how much you've overcomplicated it.
(edited 6 years ago)
Reply 5
Original post by S27
Well... It's not elegant, but it works!! :smile:


I know! If anyone has a way a tidying that up then that would be great!
Original post by foster187
I know! If anyone has a way a tidying that up then that would be great!


Simple. Have three tables. One with columns for teams and rows for people with the predicted placing.

One with just the teams and the actual placing and one for scores with a formula of 10-ABS(predicted - actual) (when you meant lose points you meant if one place out get 9 rather than 10 right?)

Quick Reply

Latest

Trending

Trending