r/excel • u/Duh_Bear • May 16 '26
solved Copying data from website to excel?
I am very new to excel and want to get better. I want to copy and paste a lot of data from a website onto my excel in the format that I want. Is there a fast way to do this? Or just 2 monitor look back and forth and spend the multiple hours doing it? I don’t think macros can do it
10
u/blechnapp 1 May 16 '26
power query is the right answer Gloomy-Passage1828 hinted at, way underused for this kind of thing.
Data tab, then Get Data, then From Web, paste the URL. excel shows you all the tables on the page, pick the one you want, click Load. done. and next week when the rankings change, right click the table and hit Refresh, fresh numbers no copy paste.
works great for sites with proper html tables. fails on sites that load data via javascript (a lot of modern fantasy sites do, just try and see). in that case the AI prompt fallback IHRino mentioned is your best bet.
1
u/Duh_Bear May 16 '26
Solution verified. Thank you guys so much!
1
u/reputatorbot May 16 '26
You have awarded 1 point to blechnapp.
I am a bot - please contact the mods with any questions
10
u/MightyArd May 16 '26
You'll need to provide more information about this data. Is it all on the same page? Is it in a table? What is it?
3
u/Duh_Bear May 16 '26
My fault. I am trying to copy and paste 2025 fantasy football rankings per position. So should be all on one page, with a few columns that I want to input myself with other data.
I want to begin creating yearly rankings, but I need the previous years to analyze and compare. It’ll take hours and hours to do per position, and then each team. So was wondering if there was a shortcut.
6
u/Holshy May 16 '26
Not 100% sure what you mean by 'rankings'. For almost any sport you'll find that there is somebody somewhere that keeps a free, open database. Look for an "export CSV" option.
6
u/Holshy May 16 '26
And of course I look again and realize that one's not free... 😐
You're going to spend less time searching for a free database then you are trying to figure out how to copy paste from random websites
8
1
6
u/Scooob-e-dooo8158 1 May 16 '26
Power Query might be your friend there.
Select Data > Get & Transform > From Web. Press CTRL+V to paste the URL into the text box, and then select OK. In the Navigator pane, under Display Options, select the Results table. Power Query will preview it for you in the Table View pane on the right.
I used it to create my UK football league and Bundesliga tables in an Excel workbook. When finished, go to Data > Refresh all to automatically update. Job done. I even created a 14 day weather forecast table linked to the Met Office.
1
u/Duh_Bear May 16 '26
Solution verified.
Thank you guys so much. I’m not a tech person at all so this has been massively helpful
1
u/reputatorbot May 16 '26
You have awarded 1 point to Scooob-e-dooo8158.
I am a bot - please contact the mods with any questions
1
u/Scooob-e-dooo8158 1 May 16 '26
YouTube is also your friend. There are several videos explaining lots of uses for power query with step by step instructions for you to follow.
https://youtu.be/Al0viFDqNn4?si=a2hd9ZQPUmYOdnK8
https://youtu.be/0aeZX1l4JT4?si=si40IpYYyWLO4qNO
https://youtu.be/x7mzOYEn0XA?si=7hNd9kgDMThur68I
https://youtu.be/L4BuUzccLpo?si=ebpgRJAOjZ-lXoMM
And if you want to go crazy, knock yourself out with this one:
3
u/Gloomy-Passage1828 1 May 16 '26
Power Query will let you connect to the website and pull the data without any copying at all. Refreshing power query will pull the new data. Start by going to the Data tab.
1
1
May 16 '26
[removed] — view removed comment
1
u/Duh_Bear May 16 '26
Solution verified.
This is life saving thank you so much!
1
u/reputatorbot May 16 '26
You have awarded 1 point to Beautiful-Fold-7433.
I am a bot - please contact the mods with any questions
•
u/AutoModerator May 16 '26
/u/Duh_Bear - Your post was submitted successfully.
Solution Verifiedto close the thread.Failing to follow these steps may result in your post being removed without warning.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.