Hi There,
I'm hoping that a more knowledgeable member can supply me with the solution to a formula syntax problem?
The Scenario:
Four cells are related to each other by football scores. Thus; cell D2 is the home team cell in which the amount of goals the home team actually score is entered. Cell E2 is the away team cell in which the amount of goals the away team actually score is entered.
In cells F2 and G2 is entered a predicted score prior to the match, F2 = home team, G2 =away team. If the predicted score matches the actual result exactly, then in cell H2 a '3' is given, if the prediction only gets the home or away result right, but not the exact score line, then in cell H2 a '1' is given instead.
What I am Looking to Achieve
I want everything automated apart from entering the actual score of the match, which will be entered manually into cells D2 and E2. Cell H2 will remain blank until the score line is manually entered in D2 and E2. If the predicted score in cells F2 (home team) and G2 (away team) exactly match the score manually entered into cells D2 and E2, then a 3 (as points) will automatically appear in cell H2. If the predicted score does not exactly match the actual score, but gives the right result for either a home or an away win or a draw, then a 1 (as points) will automatically appear in cell H2. If the predicted score does not match the score line, nor give the right result, then a 0 (as no points) will automatically appear in cell H2.
The Problem
I currently have the first half of the formula (entered into cell H2) almost up and running - =IF(AND(D2=F2,E2=G2),3,0) -, but this only gives me a 3 for exactly matching the score, and a 0 for everything else. Suppose the match was predicted a 2 -1 home win, but the actual score was 1 - 0? This should make 1 appear automatically in cell E2, but I can't get it to do this.
Can anyone help me out?
Kind regards to all
Bookmarks