Dec 16 2007

How to Use Excel to Download Stock Quotes


Spreadsheet

I offer for sale a watch list of dividend stocks that I update on a monthly basis that lists buy prices. This list is not intended to be a money-maker for me in any way nor is it meant to be investment advice. I just feel that asking for a small fee is only fair due to the huge amount of time I put into tracking the companies on the list. That being said, I like to pour my heart out to provide insight into my methodologies and portfolio makeup out in the open on this blog. On Sundays, I have been writing posts that explain certain aspects of my portfolio and how I manage it. This Sunday will be no different. Today I want to talk about how I use Excel to help with the watch list and automate the downloading of stock prices.

Note: I use Excel 2002 on my home computer, so keep that in mind as I go through the steps to download stock prices. Your version may be slightly different, however in my experience it is not much of a difference from version to version.

Before we get started, I want to show you a snapshot of the Excel sheet I use:

Excel Quote DownloadClick to Enlarge

You will see that in Column L I have the Current Price heading – this is where I am going to be auto-populating JNJ’s stock price using Excel’s Web Query function. There is a list of about 33 companies in total that I watch right now and going out to the web every time to fill these in myself would be very time consuming and boring. Here are the steps that I go through to populate Column L with the stock price, using a simplified example with only two columns:

1. Open a spreadsheet and type the word “Company” in cell A1 and the phrase “Stock Price” in cell B1:

Figure 1

2. In cell A2, type in a ticker for the company you want to get a stock price for. In this example we will use Johnson & Johnson’s ticker – JNJ:

Figure 2

3. Click on cell B2 then go to Data > Import External Data > Import Data. A box like this should pop up:

Figure 3Click to Enlarge

4. Click on “MSN MoneyCentral Investor Stock Quotes”

5. A box asking you where you want to put the data that you download will pop up. Select cell D2.

Figure 4Click to Enlarge

6. The next box that will come up will ask you what stocks or funds you want to download data for. Use your mouse to select cell A2. Make sure you tick the box labeled “use this value/reference for future refreshes”.

Figure 5Click to Enlarge

7. Once you click OK, Excel will go out to the web to get the quote for you. Once it is done it will bring up a bunch of data in a table. For this example we are focused on the stock price, which is labeled as “Last”:

Figure 6Click to Enlarge

8. With your mouse, click on cell B2, type in the equal sign (=), and then click on the cell in the MSN data in the column named “Last”. You table will now look like this.

Figure 7

9. To refresh the data, right click on the MSN downloaded data and click “Refresh”. When you open the file again, it will refresh automatically.

Go ahead now and format the table however you want and play around with it. You can start to import multiple stock quotes in one table. One thing I do, is import the data to a separate worksheet so that it is hidden, and then link the stock quotes from that sheet. It works well and saves some time. I am trying to get a query that will allow me to import dividend yield, but am not having much luck getting something that consistently works. If I figure it out I will let you all know.

For more information on downloading data in Excel, check out these links:

Microsoft
AllFinancialMatters

(Photo Credit: lustfish)


TAGS:

3 Comments on this post

Trackbacks

  1. dunamis said:

    Great entry – thank you so much for sharing your skills. Paying it forward – love it!

    December 16th, 2007 at 11:19 am
  2. Dividends4Life said:

    This was really interesting. I wasn’t aware that this functionality was available within Excel. What I have done is to construct a MSN portfolio with all the data elements I need for my analysis. I will then copy it to a clipboard the copy it to a input tab in one of my two linked spreadsheets. This in effect becomes my database that I query from other sheets using vlookup and such. I will have to experiment with your version to see it it can be expanded to pull all the fields that I use.

    Thanks for sharing!

    Best Wishes,
    D4L

    December 16th, 2007 at 1:34 pm
  3. Dividend Tree said:

    I do same thing but use yahoo finance (instead of MSN). Although, I use this same approach, it has one problem. When I open the excel sheet, it asks whether I want to update? when I say ‘yes’, it does not update all the sheets that I have (i maintain one sheet for one security). I have to go to individual sheet and refresh it. I tried putting everything on one sheet. That also does not work. I have to go to individual cell (where this funtion is used) and refresh it. Unfortunately, I do not know anything better. If you know, please share with us.

    DT

    April 3rd, 2008 at 7:51 pm

LEAVE A COMMENT

Subscribe Form

Subscribe to Blog

Recommended Book

Read Rob Carrick's 's Book - an author that has mentionned this blog in the past

My Broker

Questrade
Democratic Pricing - 1 cent per share, $4.95 min / $9.95 max

Keep Up-to-Date

twitter1gif
newspaper_feed_128x128

The Dividend Guy Sponsors

The Div-Net

Investment Links

Online Dividend Calendar

Friends of The Dividend Guy



Provident Loans

Invoice Discounting - Hitachi

credit cards

Need emergency cash and can't wait for your paycheck, get a payday loan and have the funds transferred overnight

Mortgage Brokers at Savills Private Finance

Debt Management

Personal Bad Credit Loans for every need and budget.

Get Out of Debt

Emergency Cash

Loan Insurance Claim from Keypoint

payday loans

Borrow payday loans UK online and receive up to £500 for your next payday loan

The Bettertrades stock reviews , online discussion forums and trading software can help trader earn rich dividends from stock market.

Bankruptcy is a serious measure - seek expert debt advice on various debt solutions available.

Networks

Seeking Alpha Certified


Money Hackers Network

Get Out of debt

If you're stuck in debt and trying to get caught up, don't resort to payday loans. They almost always have high interest rates, so if you don't pay them back immediately you will just end up in even more debt. In these tough times, it's better just to learn how to be more frugal with your money.

Twitter Posts

Powered by Twitter Tools

Disclaimer

Any information shared on The Dividend Guy does not constitute financial advice. The Dividend Guy is not a registered investment advisor or broker-dealer and does not purport to tell or suggest which securities readers or customers should buy or sell for themselves. The Website is intended to provide general information only and does not attempt to give you advice that relates to your specific circumstances. You are advised to discuss your specific requirements with an independent financial adviser. For more information, click here. All posts are © 2005-2009, The Dividend Guy.