Power Query - PGA Tournament Results

Post Reply
User avatar
paspuggie48
Posts: 737
Joined: Thu Jun 20, 2013 9:22 am

This is a very simple Power Query solution to get the results of PGA tournaments and combine them all into one Table.

PGA Tournament Results.xlsx

PGA Result.png

It works by using the URL on the Tournaments worksheet to get a list of all the Golfers who played in the event and then a function is applied to get their scores.

PGA URLs.png

I have included the classics and some other events but one can add as many as they want from the website.
You do not have the required permissions to view the files attached to this post.
Last edited by paspuggie48 on Wed Apr 17, 2024 12:51 pm, edited 1 time in total.
User avatar
paspuggie48
Posts: 737
Joined: Thu Jun 20, 2013 9:22 am

If one wants to add more events, then from the website select a Year and Tournament from the drop down menus.

Copy the URL from the address bar and paste it into the Table in the Tournaments worksheet.

PGA Tournaments.png

It is self-explanatory but also include the other information to complete the Table. The Column called "Course" is just for information but can be copied from the webpage if required.

PGA URLs.png

After you've added more Tournaments go to the 'TournamentsResults' worksheet, select a cell on the Table and right-click "Refresh". After a couple of minutes it will update.

Note: it takes a few minutes to update so even if your Excel says "not responding" just leave it alone and it will work fine.
You do not have the required permissions to view the files attached to this post.
User avatar
MemphisFlash
Posts: 2335
Joined: Fri May 16, 2014 10:12 pm

nice work, the force is strong with you!!!
User avatar
paspuggie48
Posts: 737
Joined: Thu Jun 20, 2013 9:22 am

MemphisFlash wrote:
Wed Apr 17, 2024 4:54 pm
nice work, the force is strong with you!!!
Capture.PNG
You do not have the required permissions to view the files attached to this post.
Morrid4
Posts: 19
Joined: Wed Sep 25, 2019 8:05 pm

Brilliant work again Paspuggie.

Only problem i have is i get the error below every time I try to refresh. Do i have to login to the website or something?

[Permission Error] Credentials are required to connect to the Web source. You'll need to refresh and provide credentials to continue. (Source at Https://espn.co.uk.....etc.)
User avatar
paspuggie48
Posts: 737
Joined: Thu Jun 20, 2013 9:22 am

Morrid4 wrote:
Wed Jul 17, 2024 10:11 am
Brilliant work again Paspuggie.

Only problem i have is i get the error below every time I try to refresh. Do i have to login to the website or something?

[Permission Error] Credentials are required to connect to the Web source. You'll need to refresh and provide credentials to continue. (Source at Https://espn.co.uk.....etc.)
Try the errors thread bud

viewtopic.php?t=29223
Morrid4
Posts: 19
Joined: Wed Sep 25, 2019 8:05 pm

Thanks Bud
Post Reply

Return to “Excel Power Query”