Excel: Stocks Data Type | IMA (2024)

As with the new Geography data type (see the December 2018 column, http://bit.ly/2QNARuM), the Stocks data type isn’t supported for customers who purchased Excel 2019 or Excel 2016. Since the data comes from the internet, you must be an Office 365 subscriber in order to have access to these features.


SETUP

To begin, enter a list of company names or stock ticker symbols in some cells in Excel. Select those cells and set their data type to Stocks from the Data Types gallery in the Data tab of the Excel ribbon.

Excel: Stocks Data Type | IMA (1)

Excel will attempt to match each cell value to a company stock. The company name might change in the cell (e.g., “Microsoft” would become “Microsoft Corp”) and the bank icon—which looks like a building with Roman columns—will appear to the left of each company. This icon indicates that additional information is available for the data stored in the cell.

This data type works better with data stored in tables in Excel, so select one cell in your range of companies and press Ctrl+T to format the data as a table. In the dialog that opens, confirm your data has headers and click OK.


VERIFYING THE STOCK SYMBOLS

There are many similar stock symbols, so make sure Excel matched the company to the correct ticker on the correct exchange. In my experience, it’s typical to see as many as half of the company names I enter matched to the wrong exchange.

Select a cell with the bank icon, and a new Insert Data icon will appear to the right of the cell. Click the Insert Data icon for a list of available fields.

Excel: Stocks Data Type | IMA (2)

From the list, click on Exchange. A new column will appear in your table showing the exchange for each stock. Repeat this process to insert a column for Ticker symbol. For this article, I planned to show Barclays PLC, a stock traded under the BARC ticker symbol on the London Stock Exchange. Instead, Microsoft assumed I wanted BCS for the stock listed on the New York Stock Exchange (NYSE).

Excel: Stocks Data Type | IMA (3)

To override Excel’s default match, right-click a company and go to Data Type, Change.

Excel: Stocks Data Type | IMA (4)

A Data Selector panel will appear. In the case of Barclays PLC, the first three matches were BCS from the NYSE, BARC from the London exchange, and BCY2 from the Xetra trading venue. Click on the Select button for the desired stock.

Excel: Stocks Data Type | IMA (5)

STOCK DATA

As with the Geography data type, there’s a new formula syntax where you point to the cell containing a data type, then type a period and the field name in brackets. For example, if the value in cell A2 is Microsoft Corp., then the formula =A2.[Shares ­outstanding] will return the shares outstanding information for Microsoft stock. You can omit the brackets if the field name has no spaces or other punctuation. For example, =A2.Price and =A2.Change will both work without the brackets, but =A2.[P/E] and =A2.[Market cap] require brackets.

Excel: Stocks Data Type | IMA (6)

The following fields are available when using the Stocks data type: Ticker symbol, Exchange, Exchange abbreviation, Currency, Previous close, Open, Low, High, Price, Change, Change (%), 52-week low, 52-week high, Volume, Volume average, Shares outstanding, Market cap, P/E, Beta, Instrument type, Last trade time, Industry, Year founded, CEO, Employees, Description, Headquarters, and Name.

Excel: Stocks Data Type | IMA (7)

When you first use the Stocks data type feature in a workbook, a message appears in the information bar to warn that the financial market information is provided “as-is” and isn’t meant to be advice for trading purposes. Click the message to open the Help panel and learn about the current sources for the data. Currently, the data comes from investment research company Morningstar Inc.

The Help topic about data sources also contains a table that details the “Supported Exchanges and Delay Times.” Make the Help panel wider to reveal more columns in the table, including information on time zones and the data delay in minutes. Quotes from the NYSE are delayed 15 minutes, but quotes from other exchanges are from the end of the most recent trading day.

Excel won’t automatically recalculate the current stock price with each calculation of the workbook. Instead, you can click the Refresh All icon on the Data tab of the ribbon or right-click the cell containing the Bank icon and choose Data Type, Refresh.

A feature that’s missing is the ability to update the stock price every minute or every few minutes. You could use a VBA macro to click Refresh All every minute. To do so:

  1. Save your workbook with an XLSM extension.
  2. From Excel, press Alt+F11 to open the VBA editor.
  3. In the VBA editor menu, choose Insert, Module.
  4. Copy the following code and paste it in the blank module:

Sub RefreshAndSchedule()

ActiveWorkbook.RefreshAll

′ Schedule Refresh 0 hours, 1 minute, 0 seconds

NextTime = Time + TimeSerial(0, 1, 0)

Application.OnTime NextTime, ″RefreshAndSchedule″

End Sub

  1. Press Alt+Q to close VBA and return to Excel.
  2. Add a text box to your worksheet with Insert, Shapes, Text Box.
  3. Add text, such as “Start Refresh,” to the text box.
  4. Right-click the text box. Choose Assign Macro. Select RefreshAndSchedule.
  5. If you’ve never used macros before, go to File, Options, Trust Center, Trust Center Settings, Macro Security. Change the security setting to the second choice. Close and re-open Excel for the settings to take effect.
  6. Click the Start Refresh icon. Data will update immediately and then every minute after that point. Note that this feature would work best in a dashboard on an unattended computer. If you’re trying to use Excel while the Refresh macro is running, the pause it creates every minute will become annoying.
  7. The only way to stop the macro from running is to save the workbook and exit Excel.

The new Stocks data type is a great first iteration, but it doesn’t contain every data point that you might expect. There’s currently no support for historical stock trading information, except for the previous day’s closing price and the 52-week high and low prices. Also, there’s no good way to have the stock price automatically update every minute except for using a VBA macro. These features might come in the future.

Download a copy of the workbook used in this column: 01Excel2019--workbook.

SF Says: The Stocks data type is a great way to compare current stock prices for your company and competitors.

Excel: Stocks Data Type | IMA (2024)

FAQs

Excel: Stocks Data Type | IMA? ›

You can get stock and geographic data in Excel. It's as easy as typing text into a cell, and converting it to the Stocks data type, or the Geography data type. These two data types are considered linked data types because they have a connection to an online data source.

What is Excel stocks data type? ›

You can get stock and geographic data in Excel. It's as easy as typing text into a cell, and converting it to the Stocks data type, or the Geography data type. These two data types are considered linked data types because they have a connection to an online data source.

Why doesn't my Excel have the stocks data type? ›

Try repairing Microsoft Office 365. That often does something to your Office setup which makes Stock and Geography data types reappear. In Windows go to Control Panel | Programs & Features | Office 365 | Change then choose Online Repair. Mac users don't have a similar Repair option.

Is stock data type available in Excel 2016? ›

Hello, If you have a Microsoft account you can use the stock data types in Excel online.

What kind of data is stock market? ›

In finance, market data is price and other related data for a financial instrument reported by a trading venue such as a stock exchange. Market data allows traders and investors to know the latest price and see historical trends for instruments such as equities, fixed-income products, derivatives, and currencies.

Can Excel track stocks? ›

Excel spreadsheets can not only keep track of investments but also calculate performance and degree of volatility. Excel can calculate the difference of an asset's current price minus its entry price. Excel can calculate the percentage return on an asset and assess profit and loss.

What are the 5 types of data in Excel? ›

In a Data Model, each column has an associated data type that specifies the type of data the column can hold: whole numbers, decimal numbers, text, monetary data, dates and times, and so on.

What are the best Excel add ins for stock data? ›

In conclusion, the best Excel stock add-in is Wisesheets. It is very affordable, customizable, and easy to use. It also includes a variety of different templates that you can use for different tasks. So, if you are looking for an Excel stock add-in, I would highly recommend giving Wisesheets a try.

How do I enable more data types in Excel? ›

To open the data types gallery, go to the Data tab in Excel > Data Types group > expand the dropdown. Note: Most data types require a Microsoft 365 subscription to use, but data types from different sources may have different requirements to use them. To check the requirements, see How to access data types in the FAQ.

Does Excel 2013 have stock data? ›

This stock-tracking add-in works in Excel 2013 and later for Windows on desktop, Excel 2016 and later for Mac, Excel Online (browser), and Excel for iPad, whereas other stock-tracking applications for Microsoft Excel work only in the desktop version.

How do I add stock to Excel 2016? ›

Insert Stock Connector in a blank workbook
  1. Open a new Excel workbook and go to Insert > Get Add-ins.
  2. Search for "stock connector" and click Add.
  3. Stock connector is immediately installed. Click the Stock Connector button in the ribbon on the Home tab to insert the task pane.

Can Excel pull historical stock data? ›

The STOCKHISTORY function retrieves historical data about a financial instrument and loads it as an array, which will spill if it's the final result of a formula. This means that Excel will dynamically create the appropriate sized array range when you press ENTER.

What category does stock fall under? ›

Stocks are a type of security that gives stockholders a share of ownership in a company. Stocks also are called “equities.”

What chart displays stock market data? ›

Stock charts show stock market data. There are many variations on stock charts, but most show the range of prices attained by a stock over a length of time. Stock charts often include studies that indicate the volume of trading over the same length of time.

What category does stocks belong to? ›

Stocks are financial assets, not real assets. A financial asset is a liquid asset that gets its value from a contractual right or ownership claim.

What are the data type functions in Excel? ›

Example
Data
=TYPE(A2)Returns the type of the value in A2. The Text type is indicated by 2.2
=TYPE("Mr. "&A2)Returns the type of "Mr. Smith, which is Text.2
=TYPE(2+A2)Returns the type of the formula in C6, which returns 16, the type for the error message #VALUE! The error message #VALUE! is shown in C7.16
4 more rows

How do I create a custom datatype in Excel? ›

Create a data type by using the Power Query Editor
  1. Phase 1: import your data.
  2. Phase 2: shape your data.
  3. Results.
  4. Note A new step is created in the Applied Steps section of the Query Settings pane. For more information, see Create Power Query formulas.
  5. Phase 3: add the data type to an Excel table.

What are the two data types in Excel? ›

Data types in Microsoft Excel
Data typeLengthDescription
STRINGText string. Flexible length or 64 kilobytes.
BOOLEAN2Logical value (true or false)
DATE8The date in the range from 1.1.100 to 31.12.9999
OBJECT4Reference to an object.
8 more rows

How do you make a stock list? ›

In general, an inventory list should include the product's name, SKU number, description, pricing, and quantity. Inventory lists help brands manage and monitor their stock levels, allowing for greater inventory control and a more streamlined approach to inventory management.

What are the 3 main data types? ›

There are Three Types of Data
  • Short-term data. This is typically transactional data. ...
  • Long-term data. One of the best examples of this type of data is certification or accreditation data. ...
  • Useless data. Alas, too much of our databases are filled with truly useless data.

What is a data field in Excel? ›

A field is an element in which one piece of information is stored, such as the received field. Usually a column in a table contains the values of a single field. However, you can show several fields in a column by using a Formula or a Combination field.

How do you automatically update stock prices in Excel? ›

How it works
  1. Right-click a data type in your workbook, and then select Data Type > Refresh Settings.
  2. In the Data Types Refresh Settings pane, select the option you want.
Feb 24, 2022

What data types and formats are available in Excel? ›

Excel file formats
FormatExtension
Excel Workbook.xlsx
Excel Macro-Enabled Workbook (code).xlsm
Excel Binary Workbook.xlsb
Template.xltx
10 more rows

How do I create a stock in Excel 2010? ›

Making MSN Stock Quotes Add-in Work in Excel 2010
  1. In your spreadsheet, enter a stock ticker in all caps and hit enter (use IBM, it doesn't really matter which but I know this works. you can then enter your portfolio tickers later) ...
  2. Go to the Data tab and click on Connections. In the pop-up window choose Add.

What is the best source for historical stock market data? ›

Online brokerage sites such as eTrade and TD Ameritrade or apps like Robinhood will have both real-time and historical quote data for customers and usually limited access for non-customers as well. Financial websites like Motley Fool or Google Finance will also provide quote information for both stocks and indices.

What are the 5 data types in Excel? ›

In a Data Model, each column has an associated data type that specifies the type of data the column can hold: whole numbers, decimal numbers, text, monetary data, dates and times, and so on.

Which type of chart is used to represent the stock data? ›

A line chart is probably the most common type of chart. This chart tracks the closing prices of the stock over a specific period.

What are the 3 main data types in Excel? ›

4 Excel data types
  • Number data. Data is this category includes any kind of number. ...
  • Text data. This kind of data includes characters such as alphabetical, numerical and special symbols. ...
  • Logical data. Data in this type is either TRUE or FALSE, usually as the product of a test or comparison. ...
  • Error data.
Jun 24, 2022

Where can I find data types in Excel? ›

To open the data types gallery, go to the Data tab in Excel > Data Types group > expand the dropdown. Note: Most data types require a Microsoft 365 subscription to use, but data types from different sources may have different requirements to use them.

Is currency a data type in Excel? ›

Use the Currencies data type to calculate exchange rates

Select the cells and then select Insert > Table. Although creating a table isn't required, it'll make inserting data from the data type much easier later. With the cells still selected, go to the Data tab and select the Currencies data type.

What is stock graph in Excel? ›

The stock chart in excel, also known as a high-low-close chart, represents the conditions of data in markets such as the stock market. The data redlects the changes in the prices of the stocks. Users can insert it from the “Insert” tab of the Excel application, and choose from the four types of stock chart options.

What is another name for stock chart? ›

Three types of stock charts
  • Line chart. Perhaps the most basic price chart is the line chart. ...
  • Bar chart. The bar chart is another way to chart price activity. ...
  • Candlestick chart. The candlestick chart is a variation of the bar chart.

Top Articles
Latest Posts
Article information

Author: Francesca Jacobs Ret

Last Updated:

Views: 6397

Rating: 4.8 / 5 (48 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Francesca Jacobs Ret

Birthday: 1996-12-09

Address: Apt. 141 1406 Mitch Summit, New Teganshire, UT 82655-0699

Phone: +2296092334654

Job: Technology Architect

Hobby: Snowboarding, Scouting, Foreign language learning, Dowsing, Baton twirling, Sculpting, Cabaret

Introduction: My name is Francesca Jacobs Ret, I am a innocent, super, beautiful, charming, lucky, gentle, clever person who loves writing and wants to share my knowledge and understanding with you.