Excel Financial Data Add-In

Friday, June 30th, 2006 | Research Tools, Stock Tools with 28 Comments

Ever since Microsoft (MSFT) added the ability to import external data using a web query to Excel, I have been interested in importing financial data into my spreadsheets. I am always looking for ways to leverage my technical skills to improve my investment research. When I recently came across a discussion on some Yahoo! Groups regarding an Excel add-in plugin being developed to add free financial data from websites directly into Excel formulas, I was very interested.

I discovered the free Stock Market Functions Add-In developed by Randy Harmelink and I downloaded it right away. I was amazed at how powerful and useful this plugin was right away. This add-in can retrieve over 4,000 data elements from various financial websites. These sites include MSN, Yahoo, BarCharts, Business Week, Zacks, Reuters, Google, and a few others. The excellent documentation with the Stock Market Functions add-in lists all the numerical codes needed to access an individual stock financial or technical data element. More details regarding this Excel add-in are available at the smf_addin Yahoo Group, home of the Stock Market Functions . Randy Harmelink is interested in gaining more feedback regarding the Excel Stock Market Functions Add-In so be sure to post any feature requests or bug reports to the smf_addin email list.

I plan on using the Stock Market Functions Add-In to build a spreadsheet that automatically calculates a rough intrinsic value of stocks that I’m researching. I hope to use the add-in to retrieve information from cash flow statements to build a simple discounted cash flows (DCF) model and then estimate whether or not there is a margin of safety associated with the current stock price. I’ll share my spreadsheet here when it gets further developed.

If you are interested in using Excel as a stock market tool, you might also be interested in all the work being done at the XLTraders Yahoo Group. The XLTraders list was the original home of the Stock Market Functions Add-In before it recently spun-off into the newly formed smf-addin group. The description of the XLTraders group states, “The purpose of this list is to exchange ideas and techniques for using Excel in trading. This includes VB/VBA code as well.” While much of the discussion on this list focuses on tools for active traders, much of the information is also useful for value investors.

If you use Excel for your investing research, I’m curious as to what other web resources, tools, or spreadsheet templates you use. Please share them below.


Comments

  • You might be interested in the Rule One Forum (www.ruleoneforum.com) spreadsheet as well, if you’ve not already seen it. It’s based on the principles in Phil Town’s “Rule #1″ book, pulls data from MSN MoneyCentral, and then tries to calculate an intrinsic value and a margin-of-safety price.

    andy June 30th, 2006 at 11:48 am
  • Hmm, I was just searching for something like this a few weeks ago, and couldn’t find anything, so thank you for posting about it. From just a rudimentary speadsheet i just put together, it will cut my “screening” time for good candidates in half.

    Max June 30th, 2006 at 4:04 pm
  • …I hope to use the add-in to retrieve information from cash flow statements to build a simple discounted cash flows (DCF) model…

    Hopefully, the ability should be available soon. I’ve got the AdvFN financial statement elements all mapped out, but have to test the mappings. I’m getting worried about limits though. If I add all of the information for 10 years of the AdvFN financial statements, that’s an additional 2810 data elements. And I was going to add 20 quarters of their quarterly statements, which would be another 5620 data elements.

    Randy Harmelink July 1st, 2006 at 12:30 pm
  • Andy, thanks for pointing out the Rule One Forum spreadsheet.

    Max, I’m glad I could help you.

    Randy, I think the 20 quarters of quarterly data is excessive. I feel that at most one would only need data on the past eight quarters. The annual data is sufficient for more historical information needs.

    I also noticed that there is both Reuters and Google data accessible by the add-in. Did you know that most of Google’s data comes from Reuters? If you want to cut down on the number of data elements, I recommend removing the redundant Google data, especially since Google Finance could still change a lot given that it is still in beta. There might be similar examples of the same data coming from the same parent source being reported on more than one site. I would focus on picking maybe only the original source or the most reliable provider and dropping the redundant data elements.

    I really look forward to being able to access the ADVFN data. Thank you and keep up the great work Randy.

    George July 1st, 2006 at 5:30 pm
  • All of the Google Finance items can be retrieved in two web requests, while the Reuter’s requires six. Also, I think the Google data has more detail (# of decimals), or at least did at one point. Plus, I think all of the Google items are mapped, but only a subset of the Reuters. Because of discrepancies in financial statement reporting, I was getting the data from a number of sources for comparison. I think there was also an issue on at least one company where the Google data was more current.

    One reason for so much quarterly financial data is so I can do some rolling years of MFI data analysis. Because AdvFN returns 5 quarters at a time, 20 quarters was the lowest common denominator of 5 and 4.

    The annual testing went well — only three data items had problems. But I do have a concern whether AdvFN will be consistent in format. I originally set up my parsing for particular strings, but ran into different strings later — two spaces in the middle of a description instead of the one I had seen previously. Looking at the quarterly, it appears to be back to a single space. Not sure how to handle that, especially since it could happen on almost any string I’m searching for.

    Quarterly comparison just finished recalculating — everything matched. I’ll be uploading the new release later today.

    Randy Harmelink July 1st, 2006 at 5:55 pm
  • I’ve noticed that financial statements of ADR’s at Google are presented in foreign currencies. This is in contrast to the same numbers at Yahoo, which are in US$.

    How do you plan to deal with these types of conversions?

    tweakie August 6th, 2006 at 8:45 pm
  • tweakie — No plans at this point. The add-in just collects what is provided. It’s one of the reasons I have the same data items collected from several sources — the same data item is not always the same data item.

    Randy Harmelink August 6th, 2006 at 8:54 pm
  • The Update on the Excel Stock Market Functions is fantastic you can see it too on at the smf_addin Yahoo Group

    IVA March 4th, 2008 at 7:57 am
  • you can also use Financial Link for Excel to load updating stock quotes, financial statements, estimates, price histories into Excel. Easy-to-use formulas to load the data and also wizards to help you creating the formulas.

    More detailed information here:

    http://www.xlconsulting.net/flink.php

    XLConsulting May 30th, 2009 at 11:16 am
  • You may want to try the free Excel Add-in from Edgeseeker. It is similar to Randy’s but allows data querying across multiple data sources. All data are stored locally in a SQLite database so subsequent searches do not require downloads other than to update when new data are available. Also, data may be pre-loaded to facilitate working offline.

    Enjoy!

    Edgeseeker

    Edgeseeker July 26th, 2010 at 10:57 am
  • After reading your post i too interested in using Excel as a stock market tool. I really impressed in the way you explained. Good keep it up.

    Tania December 16th, 2010 at 1:29 am
  • There’s an Excel spreadsheet at http://optimizeyourportfolio.b.....-from.html which automatically downloads financial data from Yahoo with VBA. You don’t need to install an add-in

    Lyra July 24th, 2011 at 10:20 pm
  • http://investexcel.net/222/aut.....nto-excel/ has a cool spreadsheet that imports historical forex data into Excel using some VBA. It’s pretty simple to use.

    There’s another spreadsheet at http://investexcel.net/218/imp.....nto-excel/ which imports historical stock quotes from Yahoo into Excel

    Sim Con August 15th, 2011 at 1:18 pm
  • You have not seen anything yet… I am building the a similar thing to Randy’s but include RTD and DDE quotes with up to 15 years of annual data and 30 quarters. Not as flexible of Randy’s but heak, i am building it for me…

    Sody December 6th, 2011 at 12:35 am
  • Take a look at the Tools at http://www.investingwithexcel.com They have tools that import Financial statements up to years without all the headache of the SMF addin. Also if you email the author he will grant you access to the VBA Code.

    Sody February 20th, 2012 at 8:59 pm
  • Correction to my last post, investinwithexcel.com brings in over 10 years of financials

    Sody February 20th, 2012 at 9:01 pm
  • Sody thanks for the vote of confidence in my site. I just added another tool a Stock History tool using non other then the code from Randy H. and the SMF add-in mentioned on this site.

    Take a look: investingwithexcel.com

    Mr Street Cred March 6th, 2012 at 8:13 pm
  • An Excel function that returns any field in the Yahoo Finance XML stream can be found here

    http://www.philadelphia-reflec.....g/2392.htm

    For current Treasury yield-curve rates:

    http://www.philadelphia-reflec.....g/2388.htm

    George Fisher December 10th, 2012 at 7:20 pm
  • You can also check out http://spearian.com for market data

    Jiri Pik February 20th, 2013 at 7:00 am

Leave a Comment

Funded By