Football result outcome.

Davebro

Board Regular
Joined
Feb 22, 2018
Messages
135
Office Version
  1. 365
  2. 2021
  3. 2016
Platform
  1. Windows
Hi, I am looking to find a formula to find the expected result comparing previous second half scores with the first half score
Which is the most likely result. e.g.

HT FT
0-0 0-0
0-0 3-1
0-0 0-0
0-0 0-0
0-0 2-2
0-0 2-0
0-0 0-1
0-0 1-0
0-0 1-1
0-0 0-0
0-0 4-0
0-0 0-2
0-0 2-2
0-0 2-1
0-0 2-1
0-0 2-1
0-0 1-0
0-0 1-1
0-0 0-2
0-0 0-0
0-0 1-0
0-0 2-1
0-0 1-0
0-0 0-0
0-0 0-2
0-0 1-0
0-0 1-3
0-0 2-1
0-0 0-0
0-0 0-0
0-0 0-1
0-0 0-1
0-0 0-1
0-0 0-2
0-0 0-1
0-0 0-0
0-0 2-2
0-0 0-0
0-0 2-0
0-0 1-0
0-0 1-1
0-0 1-1
0-0 1-3
0-0 2-3
0-0 0-0
0-0 4-0
0-0 1-1
0-0 3-2
0-0 2-1
0-0 4-2
0-0 3-2
0-0 1-1
0-0 1-1
0-0 2-1
0-0 1-0
0-0 4-0
0-0 0-1
0-0 2-1
0-0 2-1
0-0 0-0
0-0 0-1
 
oops...

Array formula in E2 copied down
=IFERROR(INDEX(B$2:B$62,MODE(IF(A$2:A$62=D$2,IF(ISNA(MATCH(B$2:B$62,E$1:E1,0)),MATCH(B$2:B$62,B$2:B$62,0)+{0,0})))),"")
confirmed with Ctrl+Shift+Enter, not just Enter

M.
 
Upvote 0

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
oops...

Array formula in E2 copied down
=IFERROR(INDEX(B$2:B$62,MODE(IF(A$2:A$62=D$2,IF(ISNA(MATCH(B$2:B$62,E$1:E1,0)),MATCH(B$2:B$62,B$2:B$62,0)+{0,0})))),"")
confirmed with Ctrl+Shift+Enter, not just Enter

M.
This is just what I was after, this has a knock on effect to my other data, thanks so much for your expertise.
 
Upvote 0
This is just what I was after, this has a knock on effect to my other data, thanks so much for your expertise.

Small adjustment
Formula in F2 should be
=IF(E2="","",COUNTIFS(A$2:A$62,D$2,B$2:B$62,E2))
copied down

M.
 
Upvote 0
Just a small problem with duplicates
0-0 12
2-1 9
0-1 7
1-0 7
1-1 7

when ranking top 5 it shows
0-0 12
2-1 9
0-1 7
0-1 7
0-1 7

I wonder if there is a fix for duplicates?
 
Upvote 0
Try

FOOTBALL OUTCOME.xlsx
ABCDEFGHI
1HTFTCriteria (HT)ResultsOccurrences5th LargestTop 5
20-00-00-00-01270-0
30-03-12-192-1
40-00-00-170-1
50-00-01-071-0
60-02-21-171-1
70-02-00-24 
80-00-12-23
90-01-04-03
100-01-12-02
110-00-01-32
120-04-03-22
130-00-23-11
140-02-22-31
150-02-14-21
160-02-1  
170-02-1
180-01-0
190-01-1
200-00-2
210-00-0
220-01-0
230-02-1
240-01-0
250-00-0
260-00-2
270-01-0
280-01-3
290-02-1
300-00-0
310-00-0
320-00-1
330-00-1
340-00-1
350-00-2
360-00-1
370-00-0
380-02-2
390-00-0
400-02-0
410-01-0
420-01-1
430-01-1
440-01-3
450-02-3
460-00-0
470-04-0
480-01-1
490-03-2
500-02-1
510-04-2
520-03-2
530-01-1
540-01-1
550-02-1
560-01-0
570-04-0
580-00-1
590-02-1
600-02-1
610-00-0
620-00-1
Plan2
Cell Formulas
RangeFormula
E2:E16E2=IFERROR(INDEX(B$2:B$62,MODE(IF(A$2:A$62=D$2,IF(ISNA(MATCH(B$2:B$62,E$1:E1,0)),MATCH(B$2:B$62,B$2:B$62,0)+{0,0})))),"")
F2:F16F2=IF(E2="","",COUNTIFS(A$2:A$62,D$2,B$2:B$62,E2))
H2H2=LARGE(F2:F15,5)
I2:I7I2=IF(F2>=H$2,INDEX(E$2:E$15,AGGREGATE(15,6,(ROW(E$2:E$15)-ROW(E$2)+1)/(F$2:F$15=F2),COUNTIF(F$2:F2,F2))),"")
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.


M.
 
Upvote 0
Whoa, that's fantastic, I have added all my result rows and changed the criteria to a drop down list so I am fully up and running, many thanks again for your help.
 
Upvote 0

Forum statistics

Threads
1,224,885
Messages
6,181,577
Members
453,055
Latest member
cope7895

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