Getting Stock Information into Excel

Written by Allen Wyatt (last updated July 19, 2022)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365


3

For years Jack has used the Yahoo! Finance API to import stock information into his worksheets. Now that service has gone away. Jack figures he can't be alone in needing to get stock information into his Excel worksheets, so he is wondering if there other services that folks with similar needs can suggest.

There are a few ways that the loss of the Yahoo! Finance data could be approached. If you need just current prices, one approach is to rely on Google Sheets where you can use the GoogleFinance function to get a number of financial statistics. Once they are in a Sheets worksheet, you can then copy and paste them into your Excel worksheet.

There are also other sites that provide data and include an API. You might need to write your own code to access the data through the API, but it is available. Here are two sites to check out:

https://www.alphavantage.co/
https://www.quandl.com/

If you poke around on the sites, you may find that some data is offered in Excel format, as well.

One subscriber suggested the following site as a possibility:

http://investexcel.net/multiple-stock-quote-downloader-for-excel/

You may want to poke around in the comments on the page, as some seem to indicate some trouble in getting the financial information they desired.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (5223) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Recovering Corrupt Document Files with StarOffice

A possibility to try if you have a corrupt document.

Discover More

Finding Where Templates Are Stored

The first step in modifying templates is to find out where they are stored on your system. Here's the easiest way to ...

Discover More

Automatic Blank Pages at the End of a Section

If you want to have a blank page at the end of a document section, you can insert one manually or you can use the ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More ExcelTips (ribbon)

Not Enough System Resources

When you are using Excel, it can be frustrating to receive a cryptic error message that indicates the program cannot ...

Discover More

Fixing a Numeric Keypad Key

We all expect the keyboard keys to operate as normal, and when they don't, it can be bothersome. Geraldine had such a ...

Discover More

Saving Movement on Enter with a Workbook

Press Enter when working in a workbook and Excel moves to a cell adjacent to the one in which you were working. If you ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 8 - 4?

2022-07-20 08:18:29

Mike Martin

Another source for quotes is https://rapidapi.com


2022-07-19 13:38:56

Paul

You could try using the Stocks data type (on the Data tab of the Ribbon) to get basic stock information


2018-01-13 09:02:12

Greg B

Actually the Yahoo!Finance API is not dead ... it is just changed and Yahoo will not acknowledge it or support any attempt to resurrect the old methodology.

Take a look at: http://www.signalsolver.com/download-historical-stock-price-data-excel/

I have modified his code for my purposes but it does work, not as seamlessly as before, ie, I have found that simply entering 1/1/1950 as the starting date may not get you all dates of a particular stock so you might have to look on Yahoo!Finance to see what is available.


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.