Excel: create clickable entity cards in cells
Excel

Excel: create clickable entity cards in cells

by HubSite 365 about Kenji Farré (Kenji Explains) [MVP]

Co-Founder at Career Principles | Microsoft MVP

Excel entity formulas turn table rows into clickable cards, letting users inspect details or pull selected fields into formulas.

Key insights

  • Use a table reference with [#Entities] to create clickable entity values for its rows.
  • Select a field from an entity with a dot reference, such as .Department or .Manager.
  • ENTITY builds a card from chosen field names and values; .SetFields adds calculated or custom fields.
  • Use XLOOKUP to return a specific entity or to nest a related entity, such as a supplier profile.
  • FORMATNUMBER formats numeric values with separators and a suffix while keeping them usable in calculations.

Excel entity formulas turn table rows into clickable cards, so users can open structured details without displaying every field as a worksheet column. The technique is useful for Excel users who work with staff, products, suppliers, locations, or assets and want to keep tables compact. Kenji Farré (Kenji Explains) [MVP] demonstrates how to create entities, extract fields, and customize their contents in a YouTube video.

What it does

An entity is a structured value displayed in a cell: the cell shows a name or other label, and clicking it opens a card with associated fields. In the demonstrated employee example, a table contains names and details such as department and manager; turning its rows into entities makes those details accessible from each employee’s card.

This differs from adding every detail as a visible column to a working view. The underlying table still supplies the fields, but the entity provides a clickable way to inspect them, and formulas can retrieve individual values when a worksheet needs them. Entity cards can also be composed from selected fields, augmented with calculated or custom fields, and linked to another entity.

The same demonstration covers , a separate function for presenting a number with a format such as a thousands separator and a suffix. Unlike the function in the example, leaves the result usable in a sum. These features allow a worksheet to show concise labels and formatted values while keeping structured information available.

Who it is for and what you need

This approach is for people building or maintaining Excel tables and formulas, including those handling employee directories, product lists, supplier records, or asset inventories. The examples begin with a structured Excel table whose columns provide the fields for the cards. The table names used in the walkthrough include , , and .

The demonstration describes the features as still being rolled out. It does not identify a particular Excel version, license, platform, or rollout schedule, so treat the visible formulas and suggestions in your own Excel environment as the practical starting point. The method also assumes you can reference the table and its column data in formulas.

How it works

To create entities from a table, enter a structured reference using the table name and the entity specifier. The example uses ; Excel spills a list of the employee entities. The resulting cells display employee names with an entity icon, which can be opened to view the information associated with each row.

  1. Enter a table reference followed by , such as .
  2. To return a specific field, reference an entity, type a dot, and select the field name. For example, append or .
  3. To retrieve one person’s entity, wrap the entity return array in . The example searches for “Tom Reed” and returns the matching row from .
  4. To define a card with selected fields, use with display text, field names, and corresponding field values.

The formula is useful when a card should expose only a chosen set of values rather than every field in a table row. In the product example, the card includes a product label, SKU, price, and stock. The demonstrated method adds a calculated Stock Value by multiplying the price and stock fields.

Related cards can be nested. The supplier field in the product entity is populated with an that returns a supplier entity from the Suppliers table. Opening the product card then provides another entity to open, and a dot reference can retrieve a field such as the supplier’s rating.

For icons, the Assets example applies to the entity list and supplies icon identifiers from the table. The cards then use different symbols for assets such as a laptop or phone. The walkthrough also applies to a Geography data type for London, adding a Headcount value from a separate table to the existing location information.

Limitations and alternatives

Entity cards do not remove the need for a well-structured source table: fields such as department, price, or supplier must be available to reference if they are to appear in or be extracted from a card. If you want a card to show only selected information, use rather than converting a complete row, then add any extra values with .

The technique is distinct from using to append labels to numbers. In the example, returns a text-formatted value that produces zero when summed, while displays a formatted number with a suffix and still allows a sum. Check the result in the calculations that matter to your workbook before replacing existing formulas.

Because the features are described as rolling out, availability may vary in the Excel environment where you work. Test the formulas with a small table first, confirm that the entity fields and method suggestions appear, and verify that nested lookups return the expected records. Built-in Geography data types are another starting point for location information; the demonstrated method adds values from a worksheet table to that data.

Sources

Frequently asked questions

How do I turn an Excel table into clickable entity cards?

Use a structured table reference with the entity specifier, such as =Staff10[#Entities]. Excel returns entity values for the rows that you can click to open their cards.

How do I get a field from an Excel entity?

Reference the entity, type a dot, and select the field, such as .Department or .Manager. You can also use XLOOKUP to return a particular entity before extracting a field.

Can an Excel entity card include custom or calculated fields?

Yes. The demonstrated .SetFields method adds a calculated value such as stock value, or a custom value such as headcount, to an entity.

What is the difference between FORMATNUMBER and TEXT in Excel?

In the example, FORMATNUMBER displays a formatted number with a suffix and remains usable in a sum. TEXT formats the result as text, so the demonstrated sum returns zero.