Data Import & Export

How to Convert a Formula Result to the Excel Stocks Data Type

Tauseeq MagsiTauseeq Magsi Nov 4, 2026 871 views

Question details

The user needs to apply the Excel Stocks data type to a cell that currently contains a formula (e.g., combining characters to form a ticker symbol), but Excel does not allow direct conversion of formula results.

How to Convert a Formula Result to the Excel Stocks Data Type
Product
Microsoft Excel
Device & OS
not provided
Scenario
Trying to link dynamically generated stock ticker symbols (created via formulas) to Excel's financial data types.
Observed behavior
Excel fails to convert the formula directly into the Stocks data type, as the feature only supports plain text values stored within the cells.
Before you start

Ensure that your formula is calculating the correct stock ticker symbol or company name before proceeding, as the conversion process will replace your dynamic formula with a static text value.

Solution 1Recommended

Use Paste Special to Convert Formulas to Static Text

Since the Stocks data type only accepts plain text, you need to replace your formula with its calculated text value using the Paste Special feature.

Excel's linked data types, such as Stocks and Geography, require hardcoded text to search for matching entities in the database. If you have built your stock symbols using formulas (like combining an exchange prefix with a ticker), you must flatten those formulas into plain text first.

1
Select the formula cells

Highlight the specific cells or column containing the formulas you want to convert into the Stocks data type.

2
Copy the selected cells

Press Ctrl+C on your keyboard, or right-click the selection and choose 'Copy'.

3
Paste as values

Right-click the same highlighted area, navigate to 'Paste Special', and select 'Values' (typically represented by an icon with the numbers 123). This replaces the underlying formulas with their actual text results.

4
Apply the Stocks data type

With the text cells still selected, go to the 'Data' tab on the Excel ribbon and click on 'Stocks' in the Data Types group to complete the conversion.

Use Paste Special to Convert Formulas to Static Text
Design Limitation: This behavior is a designed limitation in Excel. If your underlying source data changes, the stock ticker will not update automatically because the original formula has been removed.
Free Microsoft Office alternative

Experience Seamless Spreadsheet Management with WPS Office

While Excel's linked Stocks data type is exclusive to Microsoft 365, you can manage all your complex financial datasets, formulas, and text conversions seamlessly with WPS Office. It provides powerful spreadsheet capabilities without the hefty subscription fees.

  1. 1. Download WPS Office: Visit the official website to download and install the free WPS Office suite on your computer or mobile device.
  2. 2. Open Your Spreadsheet: Launch WPS Spreadsheet and open your existing Microsoft Excel workbook with zero formatting loss.
  3. 3. Manage Formulas and Values: Use familiar features like Paste Special > Values to flatten dynamic formulas into static text effortlessly.
Fully compatible with Microsoft Excel (.xlsx, .xls) and CSV formats.Free, lightweight, and fast-loading office suite.Advanced formula capabilities and straightforward Paste Special features to manage static and dynamic data.Familiar user interface makes migrating your existing spreadsheets effortless.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel show an error when applying the Stocks data type to a formula?

Excel's linked data types, including Stocks, require static text values to query financial databases. The data type engine cannot process or read dynamic formulas directly.

Can I keep the formula and still use the Stocks data type?

No, you cannot have both a formula and a linked data type in the exact same cell. If you need to preserve your original formula, you should copy the formula's results into a new, adjacent column using 'Paste Special > Values' and apply the Stocks data type to that new column.

How do I update the stock ticker if I used Paste Special?

Because the formula is replaced by a static value during the Paste Special process, it will no longer update automatically if your source data changes. You will need to recreate or copy the formula, and perform the 'Paste Special > Values' process again to update the text.