Football predictions v Actual score

Axdby

New Member
Joined
Jun 13, 2024
Messages
11
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
  3. Mobile
G7 contain home team goal prediction. H7 contains Away Team goal prediction
iI7 contains actual home team goals. J7 contains actual away team goals.

I need a formula to return a value of 5 or “-“ in N7 only iF a score has been entered in H7;& J7 and:

A) the correct outcome of a game matches the predicted score
B) the correct outcome of a game is predicted, even if the score is different

However, all formulas I have tried return a value of 5 if no figure is entered in I7 & J7, and the predicted figure in G7 & H7 is for a draw (0-0, 1-1, 2-2 etc) I don’t want this to happen
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
@Axdby Sadly, for me at least, your logic / requirement is not clearly defined.
So all I can offer is the below in the hope that it might be of value.
If not perfect it may help you progress?
Column O is returning 5 for a correct score or 3 for correct result.
Column N is returning 5 for both???
Maybe you can adapt to give the returns you need?
If I am way off the mark then please try and illustrate exactly what you are wanting.
Book1
GHIJKLMNO
5PredictionActual
6HomeAwayHomeAway???????
7312153
831  
9  
10262655
1126  
123227--
13313155
14110053
Sheet1
Cell Formulas
RangeFormula
N7:N14N7=IF(COUNTA(I7:J7)<2,"",IF(OR(AND(G7=H7,I7=J7),AND(G7>H7,I7>J7),AND(G7<H7,I7<J7)),5,"-"))
O7:O14O7=IF(COUNTA(I7:J7)<2,"",IF(AND(G7=I7,H7=J7),5,IF(OR(AND(G7=H7,I7=J7),AND(G7>H7,I7>J7),AND(G7<H7,I7<J7)),3,"-")))
 
Upvote 0
Solution
G7 contain home team goal prediction. H7 contains Away Team goal prediction
iI7 contains actual home team goals. J7 contains actual away team goals.

I need a formula to return a value of 5 or “-“ in N7 only iF a score has been entered in H7;& J7 and:

A) the correct outcome of a game matches the predicted score
B) the correct outcome of a game is predicted, even if the score is different

However, all formulas I have tried return a value of 5 if no figure is entered in I7 & J7, and the predicted figure in G7 & H7 is for a draw (0-0, 1-1, 2-2 etc) I don’t want this to happen

@Axdby Sadly, for me at least, your logic / requirement is not clearly defined.
So all I can offer is the below in the hope that it might be of value.
If not perfect it may help you progress?
Column O is returning 5 for a correct score or 3 for correct result.
Column N is returning 5 for both???
Maybe you can adapt to give the returns you need?
If I am way off the mark then please try and illustrate exactly what you are wanting.
Book1
GHIJKLMNO
5PredictionActual
6HomeAwayHomeAway???????
7312153
831  
9  
10262655
1126  
123227--
13313155
14110053
Sheet1
Cell Formulas
RangeFormula
N7:N14N7=IF(COUNTA(I7:J7)<2,"",IF(OR(AND(G7=H7,I7=J7),AND(G7>H7,I7>J7),AND(G7<H7,I7<J7)),5,"-"))
O7:O14O7=IF(COUNTA(I7:J7)<2,"",IF(AND(G7=I7,H7=J7),5,IF(OR(AND(G7=H7,I7=J7),AND(G7>H7,I7>J7),AND(G7<H7,I7<J7)),3,"-")))
Thank you for your help. The first of your two formulas produced the correct return value
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,151
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top