# Excel formulaWatch

#1
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.
0
2 years ago
#2
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.
0
#3
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
2
2 years ago
#4
(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!!
1
2 years ago
#5
Can we see a screen grab of the data?

Curious as to how much you've overcomplicated it.
0
#6
(Original post by S27)
Well... It's not elegant, but it works!!
I know! If anyone has a way a tidying that up then that would be great!
0
2 years ago
#7
(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?)
0
X

new posts
Back
to top
Latest
My Feed

### Oops, nobody has postedin the last few hours.

Why not re-start the conversation?

see more

### See more of what you like onThe Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

### Poll

Join the discussion

Yes (91)
50%
No (91)
50%