How to Convert a Formula Result to the Excel Stocks Data Type
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.

- 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.
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.
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.
Highlight the specific cells or column containing the formulas you want to convert into the Stocks data type.
Press Ctrl+C on your keyboard, or right-click the selection and choose 'Copy'.
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.
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.

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. Download WPS Office: Visit the official website to download and install the free WPS Office suite on your computer or mobile device.
- 2. Open Your Spreadsheet: Launch WPS Spreadsheet and open your existing Microsoft Excel workbook with zero formatting loss.
- 3. Manage Formulas and Values: Use familiar features like Paste Special > Values to flatten dynamic formulas into static text effortlessly.

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.




