counting occurrences

dubs15

New Member
Joined
Jan 21, 2016
Messages
4
Hi Everyone.

this might be a very simple question to answer, but for some reason i cant figure it out :) so i am reaching out to anyone that knows more then me (that would be a lot of people lol)
lets say in the football matches played,
Spain has one match with one goal, and it did not end 0-0 or 1-1, so i want a 0 returned,
Australia have 2 matches, one with more then 3 goals and one that ended 1-1, so i want a return of 2
England has 6 matches, 2 that ended 1-1 and no matches had over 3 goals, so here i want a return of 2.

i have tried vlookup, sumproduct and match, but i am just not clever enough to figure this one out, can anyone point me in the correct direction
please and thanks

leaguehomeawayTotal goals
0​
1​
2​
3​
4​
5​
6​
France
0​
0​
0​
France
Germany
3​
1​
4​
Germany
Italy
1​
0​
1​
Italy
Spain
1​
0​
1​
Spain
Australia
4​
0​
4​
Australia
Australia
1​
1​
2​
England
England
1​
2​
3​
England
1​
1​
2​
England
0​
3​
3​
0-0 + 1-1 + 3 or more goals
England
1​
0​
1​
France
England
1​
1​
2​
Germany
England
1​
0​
1​
Italy
France
1​
2​
3​
Spain0
France
2​
1​
3​
Australia
Germany
5​
1​
6​
England
Germany
3​
2​
5​
Germany
3​
1​
4​
Germany
2​
0​
2​
Germany
0​
1​
1​
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
You are going to have to add a Column that includes the final score since you need that information to complete you calculations.
 
Upvote 0
You are going to have to add a Column that includes the final score since you need that information to complete you calculations.
Hi Skybot,

i tried that with total goals, but i do get your point, i'll go back and try again :)
 
Upvote 0
Hi Again Skybot.
you pointed me in the right direction, i kinda got it sorted the way i wanted it too, so thanks again for your help
 
Upvote 0
Good to hear you got a solution.
If you would like to post the solution then it is perfectly fine to mark your post as the solution to help future readers. Otherwise, please do not mark a post that doesn't contain a solution. I have removed the solution mark from post #4.
 
Upvote 0
Hi Peter.

sure that makes sense :)

so first i counted all the goals a team had got =COUNTIFS($H$4:$H$1003,"0",$E$4:$E$1003,$N4) in this case 0 and N4 is pointed at england, then i did the same with 1 2 and all the other goals england could have made, i then did the same for all the other teams,
as for 0-0, 1-1 2-2 i did this =COUNTIFS($F$4:$F$1003,"0",$G$4:$G$1003,"0",$E$4:$E$1003,"England") just changed the 0 to 1 and 2 and so on for other draws.
ones i had all the results, its just adding them up, and dividing with games,
now i still have a bit of work to do, but on the right track :) thanks again everyone

numbers of goals in a given match table
0​
1​
2​
3​
4​
5​
6​
7​
8​
England
0​
2​
7​
4​
1​
2​
0​
0​
0​
Spain
1​
5​
5​
3​
0​
0​
1​
0​
0​
Germany
1​
3​
3​
1​
4​
2​
1​
0​
0​
Italy
1​
3​
4​
4​
1​
1​
0​
0​
0​
France
2​
2​
1​
5​
1​
0​
1​
0​
0​
Europa Cup
1​
4​
11​
14​
9​
5​
2​
1​
1​
Australia
0​
1​
3​
3​
2​
0​
0​
1​
0​
International
0​
0​
0​
0​
0​
0​
0​
0​
0​
draw + 3> table0,01,14 or more2,23,34,4for 2,2> draw4 or more - draw 2,2>4 or more - draw % win
England033100
1​
2​
12.50​
Spain141000
0​
1​
6.67​
Germany127100
1​
6​
40.00​
Italy142000
0​
2​
14.29​
France202000
0​
2​
16.67​
Europa Cup1418000
0​
18​
37.50​
Australia013100
1​
2​
20.00​
International000000
0​
0​
#DIV/0!​
draw + 3> table total occurrencestotal draw + 3>total matches played% win draw + 3>4 or more - draw 2,2>4 or more - draw % win
England
6​
16​
37.50​
2​
12.50​
Spain
6​
15​
40.00​
1​
6.67​
Germany
10​
15​
66.67​
6​
40.00​
Italy
7​
14​
50.00​
2​
14.29​
France
4​
12​
33.33​
2​
16.67​
Europa Cup
23​
48​
47.92​
18​
37.50​
Australia
4​
10​
40.00​
2​
20.00​
International
0​
0​
#DIV/0!​
0​
#DIV/0!​
total
60​
130​
46.15​
33​
25.38​
 
Upvote 0
Solution

Forum statistics

Threads
1,215,174
Messages
6,123,454
Members
449,100
Latest member
sktz

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