Getting Stock Information into Excel

by Allen Wyatt
(last updated January 13, 2018)

1

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. As discussed in this tip, 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, and 2016.

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

Determining Your Version of Excel

Want to find out exactly what version of Excel you are using? Here's how to get to the info.

Discover More

Merging Many Workbooks

If you need to combine the contents of a bunch of workbooks into a single workbook, the process can get tedious. Here's a ...

Discover More

Inserting an Image On a Specific Page

Macros are great for processing a document just the way you want. You can even use them to insert graphics, as described ...

Discover More

Excel Smarts for Beginners! Featuring the friendly and trusted For Dummies style, this popular guide shows beginners how to get up and running with Excel while also helping more experienced users get comfortable with the newest features. Check out Excel 2013 For Dummies today!

More ExcelTips (ribbon)

Selecting Multiple Cells by Mistake

Click on a cell and you expect the single cell to be selected. If you instead get a group of cells, it can be frustrating ...

Discover More

Removing Add-ins

Add-ins are used to extend Excel's capabilities in lots of different ways. If you want to get rid of an add-in ...

Discover More

Using a Single Instance of Excel with Two Monitors

Working on a computer system that has multiple monitors can help increase your productivity. If you want to work with ...

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}] 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 four more than 2?

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.