Okay; I made another thread yesterday which turned out to have a simple answer, but I'm certain this is much more complicated, so thank you so much to anyone who can help with this. It's a toughie I think. I'll explain first what I have in my spreadsheet.
So my spreadsheet data is UK Soccer results. This data is essentially all of the results from the English Premier League so far. These are listed in my sheet entitled 'E0'. The column headings in this table of results are:
Date
Home Team
Away Team
Full Time Home Goals
Full Time Away Goals (this and the above column therefore give the full time score!)
Full Time Result (This is expressed as either H, D or A. H = Home Win, D = Draw, A = Away Win)
In a separate sheet, entitled 'Fixtures', I have the next fixtures for the Premier League, listed as two separate columns for the Home Team and Away Team. Next to these fixtures, I have three more columns entitled 'Home Win', 'Draw' and 'Away Win'. What I want to do is use the formula I have created personally to calculate the percentage probability of the result of the next fixture being either a Home Win, Away Win or Draw (so of course, these percentages will be listed in the three columns next to the fixtures and will add up to 100%).
------------------------------------
------------------------------------
To give you an idea of what I want to automate, my 'formula' for calculating the percentage chance of a Home Win is as followed
(Home Team Overall Win % + Home Team Home Win % + Home Team Win % In Last 5 Games + Away Team Overall Loss % + Away Team Away Loss % + Away Team Loss % In Last 5 Games)
^ all divided by 6 to give an average percentage figure!
To give an explanation for each part of that formula in case that isn't very clear:
Home Team Overall Win % = Percentage of games that Home Team has won in the league that season (so 3 wins out of 10 games = 30%)
Home Team Home Win % = Percentage of games that Home Team has won when playing at home (so 2 wins out of 4 home games = 50%)
Home Team Win % In Last 5 Games = Fairly self-explanatory (so 3 wins out of last 5 games = 60%)
Away Team Overall Loss % = Percentage of games that Away Team has lost in the league that season (so 4 losses in 10 games) = 40%
Away Team Away Loss % = Percentage of games that Away Team has lost when playing away (so 2 losses in 3 away games = 66.6%)
Away Team Loss % In Last 5 Games = Fairly self-explanatory (so 1 loss in last 5 games = 20%)
And then the above are divided by 6 to give an average figure. In this case, the average figure is 44.43%. This means that the % chance of a Home Win in the upcoming game is 44.43%!
------------------------------------
------------------------------------
Now that I've explained the above formula, what I want to achieve in Excel is to automate the above process if possible! While I can do it manually for each fixture, it would save me a lot of time if I could use the data I have to automate the process in Excel.
So for example, on my 'Fixtures' sheet, once I've inserted 'Man Utd' in the Home Team column and 'Burnley' in the Away Team column, it would be great if the 'Home Win %' column would automatically fill using my above formula by somehow creating an Excel Formula that automatically looks up Man Utd and Burnley's results so far in the 'Results' sheet.
I don't mind if it's a complicated process to get this done, I'm willing to learn how to do it/put the effort in to get the formulae set up.
Is this possible in Excel? And if so, how is it done?
Thank you very, very much to anyone who can help me do this if it's possible, I really appreciate any help I get!![]()
Bookmarks