Getting Stock Information into Excel

by Allen Wyatt
(last updated January 13, 2018)


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:

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:

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. ...


Understanding Document Variables

When working with macros, you may want to create a variable that will remain constant from one instance of the macro to ...

Discover More

Resetting a Function Key

Function keys are often used, in Word, for common operations. You can, if desired, change the way in which a function key ...

Discover More

Numbering Comments

When editing a document written by others, it is not uncommon to add comments throughout the text. To reference these ...

Discover More

Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!

More ExcelTips (ribbon)

Reference Shortcut

Need to modify how a cell reference, in a formula, is constructed? The shortcut described in this tip will help you step ...

Discover More

Maintaining the Active Cell

Move from one worksheet to another, and Excel selects whatever cell was last used in the worksheet you are selecting. If ...

Discover More

Making AutoComplete Work for an Entire Column

AutoComplete is a great feature for quickly adding data to a worksheet. If you are confused by why some things are picked ...

Discover More

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

View most recent newsletter.


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 six more than 8?

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:

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

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.