Hi everyone,
New to this forum, hopefully I post in the right place. Here's what I am trying to do - set up a fantasy football type formula in Excel for predicting soccer scores.
If someone predicts 2-1, and the correct score in the match is 2-1, they will receive 5 points for CORRECT SCORE. If someone predicts 3-1 but the correct score is 2-1, they get 2 points for predicting CORRECT RESULT. If they get neither the score correct or the result correct - nil points I'm afraid.
Anyway, I am trying to combine the IF function and the AND function, to try and score this. Take 2-1 as the predicted score, and 2-1 as the correct score for now:
2 is in one predicted cell (A1), and 1 is in the other (B1) - the correct score 2 (C1) and the correct score 1 (D1) are in a further 2 cells. What I need to be able to do is say:
If A1=C1 and B1=D1, give the score as 5 points. It was my belief that this was done by: =IF(AND((A1=C1;B1=D1),5,0)), however I can't seem to get this working.
It may be just the fact I am doing this completely wrong, or there is a comma in somewhere, but any help on this matter would be appreciated muchly.
Cheers guys,
John-Boy
Bookmarks