Accessing Stock Information

by Allen Wyatt
(last updated June 22, 2019)

5

Tony likes to keep track of his relatively small stock portfolio in an Excel worksheet. He's been manually entering stock values, but now Tony is wondering if there is a way to have stock prices update automatically in the worksheet.

Keeping track of stock information is, for many people, a common task in Excel. If you are using Office 365, Microsoft recently (end of March 2019) made it possible to add dynamic stock information to a worksheet. (The capability was actually added last year, but it wasn't fully rolled out to all Office 365 users until March 2019.) All you need to do is follow these general steps:

  1. In a column of your worksheet, type the stock symbols for the companies for which you want data. For instance, you might type MSFT, AAPL, TSLA, AMD, or GOOG into the cells. (You should place only one company stock symbol per cell.)
  2. Display the Data tab of the ribbon.
  3. Select the cells containing the stock symbols. (See Figure 1.)
  4. Figure 1. Ready to grab stock information in Excel.

  5. Click the Stocks tool in the Data Types group. Excel converts the stock symbols to the full company names, the exchange name, and the stock symbol. (See Figure 2.)
  6. Figure 2. The stock symbols are converted to fuller information.

  7. It is possible that not all of the stock symbols will convert. This is especially true if there is some ambiguity as to what particular stock you want with the symbol you entered. In that case, Excel displays at the right side of the screen a task pane that allows you to specify, exactly, which stock you want.
  8. With the cells still selected, click the small icon that appears at the upper-right of the selected cells. Excel displays an assortment of statistics available for the stocks. (There are quite a few; you can scroll down to see them all.) (See Figure 3.)
  9. Figure 3. Data available about your stocks.

  10. Pick the statistic you want to display in the worksheet. Excel adds it just to the right of the stock symbol cells; the stock symbol cells remain selected. (See Figure 4.)
  11. Figure 4. Stock prices added to the right of the stock symbols.

  12. Repeat steps 6 and 7 to continue adding statistics about the stocks. Excel adds each new statistic to the right of the existing statistics.
  13. Adjust column widths and add your own column headings above the stock information, as desired.

That's it; you now have your dynamic stock information in your worksheet. That's not all, though. You'll notice that immediately to the left of the stock symbols (in the same cell) there is a small icon. This is called a "card," and if you click on it, you'll see summary information about the stock. (See Figure 5.)

Figure 5. Displaying the card information for a stock.

According to Microsoft, the information provided by this stock capability is real-time. More information about this can be found at this terribly long URL:

https://www.microsoft.com/en-us/microsoft-365/blog/2019/06/05/stocks-data-type-microsoft-nasdaq-refinitiv-empower-investors-with-real-time-data/

You should note that one of the drawbacks of the built-in stocks in Excel is that they won't work with foreign exchanges. They are great, however, for US stock exchanges.

What if you aren't using Office 365 or you need the capability to access foreign stock information? Are you out of luck? Not really, but your available solutions won't be as integrated into Excel as you might like. You can, for instance, use PowerQuery to extract stock information from a website and store it in a worksheet.

You could also add a third-party tool to do the grabbing and analysis for you. ExcelTips subscribers have suggested the following possible tools:

https://www.quotelink.net/
http://www.michael-saunders.com/stocksapp/pages/info.html
https://www.powerusersoftwares.com/so/8fMbYWA94

We haven't tried these tools out, but they (and other similar tools) may work for your purposes.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (13646) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Office 365.

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

Using the Organizer to Manage Macros

There may come a time when you want to copy or rename macros. You can do this quite easily by using the Organizer tool ...

Discover More

Comma-Delimited and MS-DOS CSV Variations

Excel provides different file formats you can use to export your worksheet information. One such file format is CSV, or ...

Discover More

Adding Half Spaces to Punctuation

Want a little more space just before some of your punctuation characters? You can add that spacing in a variety of ways, ...

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)

Empty Cells Triggers Error

By default, Excel provides some feedback on your formulas so that you can easily locate potential errors. If you get ...

Discover More

How Excel Stores Dates and Times

Excel stores dates and times internally using what is called a serial number. This tip explains how that serial number is ...

Discover More

Loading Lotus Spreadsheet Files

Spreadsheet programs have been around for a long time, and you may have some data saved in a format used by a spreadsheet ...

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 3 - 2?

2019-06-30 09:05:35

Allen

Nicholas,

The screen shots in the tip -- showing the Stocks data type -- are from an Office 365 installation on a Windows system. The same thing shows on my Office 365 on Mac, as well. You may want to make sure you are logged in to your Microsoft account and that you check for updates that may be available for Office 365.

-Allen


2019-06-30 00:18:26

Nicholas Gray

I am using Offie365 and the DATA tab DOES NOT have a "Stocks" Data Type. I have tried to find it elsewhere and am at a lost. Can I do this with excel in Office365? If so, how can I do it?


2019-06-25 06:06:08

Brian Rowe

Thank you for the tip Allen.

Contrary to your comment, it is indeed possible to obtain information for non US stocks. I have just downloaded stock details from both the UK's FTSE 100 and FTSE 250 indexes.

Additionally, where a stock ticker is utilised on different indexes, (e.g. AGR is the ticker for Avangrid on the NYSE and Assura on the FTSE 250), you can right click on the cell, select data type, followed by change, and select the correct stock from the appropriate index.


2019-06-22 06:02:49

Andy

If you don't have access to Office 365, another alternative is Google Sheets, which have had stock price functionality since 2010!

https://support.google.com/docs/answer/3093281?hl=en

The examples at the bottom of the page give the basic usage.


2019-06-22 05:35:01

George Stowe

I use Office 365 ProPlus. Can't see the Data Types tab. None of the suggestions from MS work.

Too bad, because this is a great tip and one I wanted to use.

Thanks for the great weekly tips!!


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.