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

Specifying Print Quantity in a Cell

When you print a worksheet, you can specify in the Print dialog box how many copies you want printed. If you want the ...

Discover More

Turning Off Automatic Numbered Lists

Type what Word thinks is a numbered list, and it will helpfully format the text to match what it thinks your numbered ...

Discover More

Turning Off Aero

Windows implements a lot of visual effects that can make your screen and desktop look gorgeous. These good looks come at ...

Discover More

Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!

More ExcelTips (ribbon)

Disappearing Status Bar

Ever had your Excel status bar disappear unexpectedly? Here's some ideas on why this may be happening.

Discover More

Understanding Relative and Absolute Addressing

In Excel you can reference a cell in a formula by entering the coordinates for the cell you want to reference. This can ...

Discover More

Weird Mouse Shortcut

If you like to use the mouse in your worksheet navigation efforts, you'll want to pay attention to this tip. Here 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}] 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.