Office
Sign in

How to write formulas that reference data types

You can use formulas that reference linked data types.This allows you to retrieve and expose more information about a specific linked data type. In the following example, the linked data type, Stocks, is used in cells A2 through A11. Then in columns B and C, there are formulas that extract more information from the Stocks data type in column A.

Linked records with Company name, Price and Change.

In this example, cell B2 contains the formula =A2.Price and cell C2 contains the formula =A2.Change. When the records are in a table, you can use the column names in the formula. In this case, cell B2 would contain the formula =[@Company].Price and C2 would contain =[@Company].Change.

Note: June 12, 2018: This feature is being made available to customers on a gradual basis over several days or weeks. It will first be available to Office Insider participants, and later to Office 365 subscribers. If you are an Office 365 subscriber, make sure you have the latest version of Office.

Tips: 

  • As soon as you type the dot operator (.) after a cell or column reference, Excel will present you with a formula AutoComplete list of fields that you can reference for that data type. Select the field you want from the list, or type it if you know it.

    Linked datat type for Stocks

  • Data type field references are not case sensitive, so you can enter =A2.Price, or =A2.price.

  • If you select a field that has spaces in the name, Excel will automatically add brackets ([ ]) around the field name. For example: =A2.[52 Week High]

  • The FIELDVALUE function can also be used, but we recommend it only for creating conditional calculations based on linked data types.

Need more help?

You can always ask an expert in the Excel Tech Community, get support in the Answers community, or suggest a new feature or improvement on Excel User Voice.

See Also

Linked data types

FIELDVALUE function

Expand your Office skills
Explore training
Get new features first
Join Office Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×