Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-22-2024, 02:30 PM
VKiprijan VKiprijan is offline Formula to count % of goals in a total number of games Windows 10 Formula to count % of goals in a total number of games Office 2016
Novice
Formula to count % of goals in a total number of games
 
Join Date: May 2023
Posts: 15
VKiprijan is on a distinguished road
Default Formula to count % of goals in a total number of games

Hello to All,



I have a spreadsheet of soccer matches in which I would like to build a table to be as a top list of soccer teams with the highest percentage of goals that those teams had yielded over the number of games they played so far.
The number of games should be automatically calculated after each round is played.

Any idea of which formulas I should use in order to get this done?


Thanks everyone in advance.

Vlad
Attached Files
File Type: xlsx Soccer League v2.xlsx (138.4 KB, 10 views)
Reply With Quote
  #2  
Old 10-23-2024, 03:00 AM
p45cal's Avatar
p45cal p45cal is offline Formula to count % of goals in a total number of games Windows 10 Formula to count % of goals in a total number of games Office 2021
Expert
 
Join Date: Apr 2014
Posts: 956
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

Quote:
Originally Posted by VKiprijan View Post
percentage of goals that those teams had yielded over the number of games they played so far.
Show how you would calculate the percentage for say, just Eintracht Frankfurt.
Reply With Quote
  #3  
Old 10-23-2024, 04:58 AM
VKiprijan VKiprijan is offline Formula to count % of goals in a total number of games Windows 10 Formula to count % of goals in a total number of games Office 2016
Novice
Formula to count % of goals in a total number of games
 
Join Date: May 2023
Posts: 15
VKiprijan is on a distinguished road
Default

Hi,

Yes, we can take Eintracht Frankfurt, for example, which plays home and away games and sometimes in those games there are at least 3 or more goals (3+) scored by both teams.
If there are 10 games played so far, I would like to calculate how many times there were "3+" goals in those games which Eintracht Frankfurt played. So, if for example Eintracht Frankurt played 5 games with 3+ goals out of 10 games that percentage will obviously be 50%.

So, how do we create a formula that will show the list of the teams (cells AP29-AP39) that score the most 3+ goals (percentage in the cells AR29-AR39)?


Thanks.
Reply With Quote
  #4  
Old 10-23-2024, 07:10 AM
NoSparks NoSparks is offline Formula to count % of goals in a total number of games Windows 10 Formula to count % of goals in a total number of games Office 2010
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 842
NoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of light
Default

cross posted at MrExcel
Reply With Quote
  #5  
Old 10-23-2024, 09:36 AM
p45cal's Avatar
p45cal p45cal is offline Formula to count % of goals in a total number of games Windows 10 Formula to count % of goals in a total number of games Office 2021
Expert
 
Join Date: Apr 2014
Posts: 956
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

At MrExcel you said:
Quote:
In one season, which consists of 34 games, Dortmund played in 21 games where there were "3+" which is a 61.7%.
Here's a screenshot of all Dortmund's games.
It looks like they played 31 games, not 34 as there's no score and no date for 3 of them.
Quote:
…21 games where there were 3+ !!
I count only 15 (marked in column I with an x). This about 48% (15/31).
(And only 2 games where both teams had 3+ goals)

Can you confirm that I should only be looking at columns F & G because they are the full time scores?

2024-10-23_172940.jpg

Please add any other links to wherever else you've posted this question to.
Formula to count % of goals in a total number of games | MrExcel Message Board


2024-10-24_173155.jpg

Last edited by p45cal; 10-24-2024 at 09:33 AM.
Reply With Quote
  #6  
Old 10-24-2024, 11:52 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Formula to count % of goals in a total number of games Windows 10 Formula to count % of goals in a total number of games Office 2021
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,943
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Link to Xpost Formula to count % of goals in a total number of games | MrExcel Message Board
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #7  
Old 10-25-2024, 02:08 AM
VKiprijan VKiprijan is offline Formula to count % of goals in a total number of games Windows 10 Formula to count % of goals in a total number of games Office 2016
Novice
Formula to count % of goals in a total number of games
 
Join Date: May 2023
Posts: 15
VKiprijan is on a distinguished road
Default

Actually, it is the cell W in which these "3+" goals should be considered.

Thank you.
Reply With Quote
  #8  
Old 10-25-2024, 02:43 AM
p45cal's Avatar
p45cal p45cal is offline Formula to count % of goals in a total number of games Windows 10 Formula to count % of goals in a total number of games Office 2021
Expert
 
Join Date: Apr 2014
Posts: 956
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

Could you check a few of these and tell me if they are correct?:


2024-10-25_104114.jpg
Reply With Quote
  #9  
Old 10-25-2024, 01:45 PM
VKiprijan VKiprijan is offline Formula to count % of goals in a total number of games Windows 10 Formula to count % of goals in a total number of games Office 2016
Novice
Formula to count % of goals in a total number of games
 
Join Date: May 2023
Posts: 15
VKiprijan is on a distinguished road
Default

Hi,

Yes, I can confirm that all those percentages are correct. That's exactly how these statistics should look alike, not only one team but also other teams that have the highest percentage.

This is great job, congratulations
Reply With Quote
  #10  
Old 10-25-2024, 01:59 PM
VKiprijan VKiprijan is offline Formula to count % of goals in a total number of games Windows 10 Formula to count % of goals in a total number of games Office 2016
Novice
Formula to count % of goals in a total number of games
 
Join Date: May 2023
Posts: 15
VKiprijan is on a distinguished road
Default

Hi P45Cal

So, which formulas did you use to show this statistics?


Thanks a lot in advance.
Vlad
Reply With Quote
  #11  
Old 10-26-2024, 09:01 AM
p45cal's Avatar
p45cal p45cal is offline Formula to count % of goals in a total number of games Windows 10 Formula to count % of goals in a total number of games Office 2021
Expert
 
Join Date: Apr 2014
Posts: 956
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

Quote:
Originally Posted by VKiprijan View Post
So, which formulas did you use to show this statistics?
Well, that picture wasn't the result of a formula, instead I used Power Query.
In the attached, on sheet Bundes League (2), at cell L4, there's a result table which you can update by right-clicking in it and choosing Refresh. It's based on two proper Excel tables: (a) one called Table1 at B4:H346 and (b) the other called Table4 at J4:J15, both on that same sheet.

Since then, I developed a deceptively simple named lambda function TeamsWithMostPercentGames.

You can see it in action at cell AS28 of the Bundes League sheet. It needs to be copied down.

2024-10-26_162447.jpg

You can see that it uses only the raw data.
If you want to copy the lambda function to another workbook, copy that single sheet to your workbook, then immediately delete it from yor workbook. The function should remain. You can see it in Name Manager.

The rest below is just for information and the relevant formulae can be deleted/ignored:
In cell AW28 is the development version of TeamsWithMostPercentGames, and the formula in cell BC28 is the forerunner to that.


Now I'll just wait for the questions…
Attached Files
File Type: xlsx msofficeforums52938Soccer League v2-1.xlsx (175.0 KB, 5 views)
Reply With Quote
  #12  
Old 10-26-2024, 02:28 PM
VKiprijan VKiprijan is offline Formula to count % of goals in a total number of games Windows 10 Formula to count % of goals in a total number of games Office 2016
Novice
Formula to count % of goals in a total number of games
 
Join Date: May 2023
Posts: 15
VKiprijan is on a distinguished road
Default

Well, this approach is great and your expertise in this topic is quite impressive but also very complicated for me as I don't have experience with PowerQuery.
Is there any embedded formula with INDEX, MATCH, VLOOKUP and COUNT that I could use to get the same result as you did?

Thank you so much.
Vlad
Reply With Quote
  #13  
Old 10-26-2024, 03:00 PM
p45cal's Avatar
p45cal p45cal is offline Formula to count % of goals in a total number of games Windows 10 Formula to count % of goals in a total number of games Office 2021
Expert
 
Join Date: Apr 2014
Posts: 956
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

What version of Excel are you using?
Reply With Quote
  #14  
Old 10-27-2024, 01:59 AM
VKiprijan VKiprijan is offline Formula to count % of goals in a total number of games Windows 10 Formula to count % of goals in a total number of games Office 2016
Novice
Formula to count % of goals in a total number of games
 
Join Date: May 2023
Posts: 15
VKiprijan is on a distinguished road
Default

I use Excel 2016 so basically I cannot use XLOOKUP function but only INDEX, MATCH and VLOOKUP function...
Reply With Quote
  #15  
Old 10-27-2024, 06:49 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Formula to count % of goals in a total number of games Windows 10 Formula to count % of goals in a total number of games Office 2021
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,943
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Also cross posted at Formula to identify which teams and their percentage with the highest % of goals scored | Excelguru Forums
and
Formula to identify which teams and their percentage with the highest % of goals scored
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
count formula to count based on multiple criteria and return unique rows Sphinxakop Excel 0 02-01-2023 12:18 PM
Formula to count % of goals in a total number of games How can I count per year and per week the total number of times a code occurs Stefan_Deckers Excel 3 09-19-2020 02:36 PM
Formula to count % of goals in a total number of games Why does the total row of my pivot table not tie to the real count using distinct count wheddingsjr Excel 4 09-01-2020 09:52 PM
Formula to count % of goals in a total number of games Formula for calculating total when number and letter in one cell Oleg Excel 5 02-22-2017 03:05 AM
Formula to count % of goals in a total number of games Word: count total page of each section salmonrose Word 1 10-15-2011 05:10 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:07 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft