How to Import Stock Prices into Excel from Google Finance (3 Methods)

We’ll use the data from NASDAQ for the Microsoft Corporation (MSFT) to demonstrate how to import stock prices. Here’s how our final table will look like after importing it to Excel.

how to import stock prices into excel from google finance (Copy Paste)


How to Import Stock Prices into Excel from Google Finance: 3 Methods

Method 1 – Import Stock Prices from Google Finance on Web

We need to import Stock Prices data from Google Finance to Google Sheets using the GOOGLEFINANCE function. Then, we’ll import that into Excel using Power Query.

Step 1 – Import Stock Prices from Google Finance to Google Sheets

  • Go to Google Sheets and open a new file.
  • Type the following formula in cell A1:
=GOOGLEFINANCE("MSFT","all","5/8/2022","5/17/2022","Daily")

Formula Breakdown

  • MSFT stands for Microsoft Corp.
  • We’ve put ALL in the second argument. This will return the following information for the specified date range –
    • Opening Prices.
    • Closing Prices.
    • High Prices.
    • Low Prices.
    • Share Volumes.
  • We’ve specified the date range from 8-May-2022 to 17-May-2022.
  • We’ve defined the frequency as Daily.

Google Sheets: how to import stock prices into excel from google finance

  • Press Enter.
  • We’ll get the stock price in Google Sheets.

Step 2 – Publishing the Google Finance Stock Prices Data

  • Go to File, select Share and choose Publish to web.

Publishing: how to import stock prices into excel from google finance

  • A dialog box will appear. Click on the Publish button.

  • Press Ctrl + C to copy the link.

Link Sharing: how to import stock prices into excel from google finance

Step 3 – Importing Stock Prices into Excel

  • Open an Excel file, go to the Data tab, and select From Web.

  • A dialog box will appear. Paste the link address inside the URL box and press OK.

Import Data from Web: how to import stock prices into excel from google finance

  • Select Table 0 and press Transform Data.

how to import stock prices into excel from google finance

Step 4 – Modifying the Stock Prices Inside Power Query

  • Select the first two columns and pick Remove Columns.

Power Query: how to import stock prices into excel from google finance

  • Select Use First Row as Headers to get rid of the first row.

  • The Stock Price information should look much cleaner now.

how to import stock prices into excel from google finance Power Query

  • Import this to Excel by pressing Close & Load from the Home tab.

  • This is what the final result should look like.

Imported how to import stock prices into excel from google finance

Step 5 – Updating the Stock Prices

  • Go back to the Google Sheets file.
  • Change the formula in cell A1 as follows.
=GOOGLEFINANCE("MSFT","all","5/8/2022","5/20/2022","Daily")
  • We’ve added 3 new rows to the dataset.

  • Select anywhere in the “Table0” in Excel.
  • From the Query tab, select Refresh.

Data Refreshed how to import stock prices into excel from google finance

  • This will update our dataset from the Google Sheets file.

Read More: How Do You Automatically Update Stock Prices in Excel


Method 2 – Using the Copy and Paste Feature to Import Stock Prices into Excel from Google Finance

Steps:

  • Follow the steps of Method 1 to import Stock Prices from Google Finance to Google Sheets.
  • Select the cell range A1:F10 in the Google Sheets file.
  • Press Ctrl + C to copy the dataset.

how to import stock prices into excel from google finance Google Sheets

  • Go to an Excel file and make a table with the same number of columns and rows.
  • Right-click on cell B4 to bring up the Context Menu.
  • Select Match Destination Formatting from Paste Options.

  • This will import Stock Prices into Excel.

how to import stock prices into excel from google finance (Copy Paste)


Method 3 – Using the Download Option to Import Stock Prices from Google Finance

Steps:

  • Follow the Steps of Method 1 to import Stock Prices from Google Finance to Google Sheets
  • In Google Sheets, go to File, select Download, and choose Microsoft Excel (.xlsx).

  • Open the file via Excel.

how to import stock prices into excel from google finance (Dowloaded as xlsx)

  • Copy and paste the information into the desired Excel file.

Read More: How to Get Live Stock Prices in Excel


Download the Practice Workbook


Related Article


<< Go Back to Stocks In Excel| Excel for Finance | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Rafiul Haq
Rafiul Haq

Rafiul Haq worked as an Excel and VBA Content Developer in Exceldemy for over two years and published almost 200 articles for the website. He is passionate about exploring new aspects of Excel and VBA. He received his Bachelor of Science in Mechanical and Production Engineering (MPE) from the Islamic University of Technology. Rafiul furthered his education by obtaining an MBA in Finance from the Institute of Business Administration (IBA) at the University of Dhaka. Apart from creating... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo