How to Automate Copy and Paste from Website to Excel

We have the career statistics of a footballer available on Wikipedia. We’ll copy this table to Excel.

Dataset for automate copy and paste from website to excel


Method 1 – Use Copy and Paste to Copy and Paste from Website to Excel

Steps:

  • Copy the dataset from the website (click and drag over the table and press Ctrl + C).

  • Open a new Excel sheet
  • Select the entire sheet by clicking the icon at the top left.

copy and paste from website to excel

  • Press Ctrl + V to paste the dataset.
  • A message box will appear. Click OK.

  • Excel will paste the data from the website, but it might not keep the formatting.

copy and paste from website to excel


Method 2 – Apply Power Query to Copy and Paste from Website to Excel

Power Query is a very powerful tool in Microsoft Excel 2010 and later. It can clean up and automate data in Excel. It has two main functions:

  • Get Data &
  • Transform Data

Get Data: You can retrieve data from anywhere into Excel such as Databases, other Excel files, or web pages. This is a powerful feature to input raw data into the Excel sheet.

Transform Data: After importing data, you can use this tool to clean up your data by rearranging it. You can add more columns or merge columns and so much stuff like that.

Steps:

  • Open a new Excel file.
  • Go to the Data tab.
  • Select From Web.

  • A window will open. Paste the URL of the webpage.
  • Click OK.

PowerQuery feature to copy and paste from website to excel

  • Another box will appear. Click Connect from the box.

  • From the Navigator field, choose the dataset you want to transfer.
  • Click Load.

PowerQuery feature to copy and paste from website to excel

  • Excel will load the dataset in a new worksheet.

PowerQuery feature to copy and paste from website to excel


Related Articles


<< Go Back to Web Scraping in Excel | Importing Data in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Akib Bin Rashid
Akib Bin Rashid

AKIB BIN RASHID, a materials and metallurgical engineer, is passionate about delving into Excel and VBA programming. To him, programming is a valuable time-saving tool for managing data, files, and internet-related tasks. Proficient in MS Office, AutoCAD, Excel, and VBA, he goes beyond the fundamentals. Holding a B.Sc in Materials and Metallurgical Engineering from Bangladesh University of Engineering and Technology, MD AKIB has transitioned into a content development role. Specializing in creating technical content centred around Excel and... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo