Skip to content

PlaidXL Custom Functions

PlaidXL adds functions to Excel that read PlaidCloud data straight into cells. Type =PLAIDXL. in a cell and Excel’s autocomplete lists them, with a short description of each argument. The Formulas tab of the task pane can also write one for you; see Insert a Formula From the Task Pane.

Group Functions Use them to
Lists LIST_PROJECTS, TABLE.TBL_LIST, TABLE.GET_COLUMNS, DIMENSION.DIM_LIST See what’s available to build on
Tables TABLE.GET_TABLE Read a whole table into a range
Hierarchies DIMENSION.GET_DIMENSION, DRILL Lay out a dimension’s nodes as report rows
Values CELL, CELLS Calculate a rolled-up value for any combination of nodes
Metrics METRIC, METRIC_BREAKDOWN Read a governed business metric, as dashboards show it
Building blocks REPR.TABLE_REPR, REPR.MEASURE, REPR.MEASURES, REPR.MEASURE_TYPE, REPR.DIMENSION_REPR, REPR.DRILL_KEY Describe the table, measure, aggregation, nodes and drill depth that CELL, CELLS and DRILL use

Build a Report shows these working together.

  • Sign in first. The functions read with your PlaidCloud sign-in and your permissions, so sign in from the task pane before you use them.
  • They read from the workbook’s project. Every function reads from the project linked to the workbook in the task pane. GET_TABLE, TBL_LIST and DIM_LIST also take an optional project ID, to read another project without changing the link. Each workbook has its own project, so two open workbooks can read from different projects.
  • Results spill. A function that returns a list or a table fills the cells below it (or to its right). Leave room for the results; if anything is in the way, Excel shows a #SPILL! error.
  • Recalculate to pick up changes. A PlaidXL formula fetches again when one of its arguments changes. To pick up new data in PlaidCloud, or a different project linked in the task pane, use the ribbon’s Refresh menu: Recalculate PlaidXL formulas recalculates every PlaidXL formula in the workbook, and Refresh this sheet and Refresh selection recalculate the formulas they cover. Refresh all tables refreshes retrieved tables, not formulas. See Refresh.
  • Use exact names. Type table, column, dimension and node names exactly as they appear in PlaidCloud.

Arguments in square brackets are optional.

=PLAIDXL.LIST_PROJECTS([horizontal])

Lists the names of the projects you can open, sorted by name.

  • horizontal — TRUE to list across a row. Defaults to FALSE, a column.

=PLAIDXL.TABLE.TBL_LIST([project_id], [horizontal])

Lists the names of the tables in a project, sorted by name.

  • project_id — the project to read. Defaults to the workbook’s project.
  • horizontal — TRUE to list across a row. Defaults to FALSE, a column.

=PLAIDXL.TABLE.GET_COLUMNS(table_name, [column_filter], [orientation])

Lists the column names of a table in the selected project.

  • table_name — the table’s name in PlaidCloud.
  • column_filter — a data type, such as "text", to list only the columns of that type. Leave it out to list every column.
  • orientation — "vertical" (the default) for a column, or "horizontal" for a row.

=PLAIDXL.DIMENSION.DIM_LIST([project_id], [horizontal])

Lists the names of the dimensions in a project.

  • project_id — the project to read. Defaults to the workbook’s project.
  • horizontal — TRUE to list across a row. Defaults to FALSE, a column.

=PLAIDXL.TABLE.GET_TABLE(table_name, [project_id], [limit])

Returns a table’s rows with a header row, spilled from the formula’s cell. Empty values come back as blank cells.

  • table_name — the table’s name in PlaidCloud.
  • project_id — the project to read. Defaults to the workbook’s project.
  • limit — the most rows to return. Defaults to 1,048,575, the most a worksheet holds below a header row.

GET_TABLE returns every column. To choose columns or filter rows, retrieve the table from the task pane instead.

=PLAIDXL.DIMENSION.GET_DIMENSION(dimension_name, start_node, [hierarchy], [orientation], [generation_limit])

Lays out a dimension’s nodes, starting at start_node and working down through its descendants. Each generation is indented four spaces more than its parent, and Excel outline groups let you collapse and expand each level.

  • dimension_name — the dimension’s name, or its path in the project.
  • start_node — the node to start from, such as the dimension’s root.
  • hierarchy — the alternate hierarchy to follow. Defaults to "main".
  • orientation — "vertical" (the default) to list nodes down a column, or "horizontal" to list them across a row.
  • generation_limit — how many generations to return, counting start_node as the first: 2 returns the start node and its children. Leave it out to return every generation.

=PLAIDXL.DRILL(dimension_name, start_node, drill_key, [hierarchy], [exclude], [expand], [orientation], [totals])

Returns start_node and the nodes below it that drill_key asks for, indented by generation and grouped in an Excel outline. When the dimension has aliases, each row reads the node’s ID and its alias from the dimension’s first alias set by name, such as 4000 · Revenue; a node without an alias shows its ID.

  • dimension_name — the dimension’s name, or its path in the project.
  • start_node — the node to drill from, or a cell holding a row of another drill, such as 4000 · Revenue. Leave it empty ("") to start from the dimension’s top nodes. The dimension itself counts as generation 0 of the drill key and is not listed, so the top nodes are generation 1: >[1] lists just the top nodes, and >[0] lists no nodes and shows one blank cell.
  • drill_key — how far to drill, from DRILL_KEY: every descendant, only the leaves, a number of levels, or a range of generations.
  • hierarchy — the alternate hierarchy to follow. Defaults to "main".
  • exclude — nodes to leave out, with everything beneath them: a node, a list, or a range of cells. The start node is never left out.
  • expand — nodes whose children to show as well, even below the depth drill_key asks for: a node, a list, or a range of cells. Only nodes the drill shows are opened, so to open a grandchild, list its parent too.
  • orientation — "vertical" (the default) to list nodes down a column, or "horizontal" to list them across a row, without indentation and grouped by column. Any other value is an error.
  • totals — "above" (the default) to list each parent above its children, or "below" to list it after them, with its outline group ending above it. Upper or lower case is fine; any other value is an error.

exclude and expand take node IDs as text or numbers; empty cells and errors in a range are ignored. Leave an argument empty ("") to skip it, as in =PLAIDXL.DRILL("Period", "FY2026", PLAIDXL.REPR.DRILL_KEY("1 level"), "main", "", "", "horizontal"), or =PLAIDXL.DRILL("Region", "Total", PLAIDXL.REPR.DRILL_KEY("all"), "main", "", "", "", "below") for totals below.

For example, =PLAIDXL.DRILL("Region", "Total", PLAIDXL.REPR.DRILL_KEY("leaves")) lists Total followed by every leaf region beneath it.

The drill commands write and edit DRILL formulas for you: select a node and drill down, drill up, keep or remove nodes.

CELL and CELLS calculate a measure — a numeric column of a table — rolled up to the nodes you choose in one or more dimensions. Think of each call as one intersection in a report: Revenue for EMEA in FY2026.

You describe the intersection with the building-block functions below, usually in their own cells, then pass those cells to CELL or CELLS in any order:

Argument Built with Required
The table to read TABLE_REPR Exactly one
The column to aggregate MEASURE for CELL, MEASURES or several MEASURE cells for CELLS Yes
How to aggregate it MEASURE_TYPE No — defaults to sum
A filter on a column DIMENSION_REPR At least one, one per column

Each filter names a column of the table and a value. When that column is linked to a dimension in PlaidCloud, the value is a node, and the filter includes everything that rolls up to that node in the dimension’s main hierarchy, or the hierarchy you name — on a Region column linked to a geography dimension, the node EMEA covers every country beneath it. On a column that isn’t linked to a dimension, the filter matches the value exactly.

The examples on this page use a table whose Region and Period columns are linked to dimensions. Use your own table’s column names.

=PLAIDXL.CELL(table, measure, [measure_type], node, [node], ...)

Returns one number: the measure, aggregated across the rows that fall under every node you pass.

A1 =PLAIDXL.REPR.TABLE_REPR("Sales")
A2 =PLAIDXL.REPR.MEASURE("revenue")
A3 =PLAIDXL.REPR.MEASURE_TYPE("sum")
A4 =PLAIDXL.REPR.DIMENSION_REPR("Region", "EMEA")
A5 =PLAIDXL.REPR.DIMENSION_REPR("Period", "FY2026")
B1 =PLAIDXL.CELL(A1, A2, A3, A4, A5)

B1 shows total revenue for EMEA in FY2026.

Type a number over a CELL to write it to PlaidCloud. See Type Values Into PlaidCloud.

A sheet full of CELL formulas calculates quickly: the CELL and CELLS formulas that calculate together are sent to PlaidCloud in one request for each table, up to 10,000 at a time, and PlaidXL reuses a table’s column details for 30 seconds instead of fetching them for every cell. If a value can’t be calculated, the cell shows #VALUE! and hovering over it shows the reason, such as a filter column that isn’t in the table or a node with no members. CELLS shows the first reason for the whole result.

When no rows match, a sum is 0. Any other way of combining (mean, median, min, max, std or var) has no value to give: a CELL shows #VALUE! with No value for the aggregation, members and measure on hover, and a CELLS element is left blank. Excel functions such as AVERAGE skip a blank CELLS element, and Explain gives the same reason.

=PLAIDXL.CELLS(table, measures, [measure_type], node, [node], ...)

Like CELL, but for several measures at once. Returns one number per measure, down a column, in the order you listed them.

D1:F1 revenue | cost | units
D2 =PLAIDXL.REPR.MEASURES(D1:F1)
B2 =PLAIDXL.CELLS(A1, D2#, A3, A4, A5)

D2# passes the whole spilled result of MEASURES. B2:B4 show revenue, cost and units for EMEA in FY2026.

METRIC and METRIC_BREAKDOWN read a metric definition from the workbook’s project: a business number such as Net Revenue whose calculation is agreed and written down in PlaidCloud. The value is the one dashboards show, calculated under your own row access. Metric… on the ribbon lists the project’s metrics with their current values and writes the formula for you; see Insert a Metric.

Filters are DIMENSION_REPR values, as for CELL, except that the first argument names a column the metric can be broken down by. A node includes everything beneath it. Pass a single filter, or a range or list of them; empty filters are ignored. Each column can be filtered once: two filters on the same column are an error. A formula can use filters from more than one alternate hierarchy, and can combine an alternate-hierarchy member with members of other dimensions.

=PLAIDXL.METRIC(name, [filter], ...)

Returns one number: the metric, for the rows under every filter you pass.

  • name — the metric’s name, one of its synonyms, or its ID. Case doesn’t matter.
  • filter — a DIMENSION_REPR filter. Pass as many as you need.
=PLAIDXL.METRIC("Net Revenue", PLAIDXL.REPR.DIMENSION_REPR("Region", "EMEA"))

When no rows match, METRIC returns 0; when the metric has no value, the cell is blank.

=PLAIDXL.METRIC_BREAKDOWN(name, breakdown, [filter], ...)

Returns the metric split by one column: two columns, each member of breakdown beside its value, largest value first, with no header row.

  • name — the metric’s name, one of its synonyms, or its ID.
  • breakdown — the column to break the metric down by, one the metric can be broken down by.
  • filter — a DIMENSION_REPR filter. Pass as many as you need.
=PLAIDXL.METRIC_BREAKDOWN("Net Revenue", "Region")

Members without a value come last, with a blank value. When no rows match, it returns one row: an empty member and 0.

A metric that can’t be calculated shows #VALUE!; hover over the cell for the reason:

Message What to do
Unknown metric, or unknown column Check the name. When there are close matches, the message lists them after Did you mean.
The name matches more than one metric Use the metric’s full name or its ID.
Your PlaidCloud role doesn’t allow reading metrics in this project. Ask a project owner for access.
This PlaidCloud workspace doesn’t serve metrics to Excel yet. Ask your administrator to update the workspace.
PlaidCloud is busy; try again in a number of seconds PlaidXL has already retried. Recalculate after the time it gives.
Choose a project in the PlaidXL pane first. Link the workbook to a project.
The filters name a column more than once. Keep one filter per column.
This PlaidCloud workspace can’t combine an alternate hierarchy with other members yet. Ask your administrator to update the workspace. Ask your administrator to update the workspace. Other cells in the same recalculation still answer.

These functions don’t read data themselves. Each returns a short piece of text that describes one part of a calculation, ready to pass to CELL, CELLS or DRILL. Put them in cells you reference, so one change — a different period, say — updates every formula that uses them.

=PLAIDXL.REPR.TABLE_REPR(table_name)

The table CELL and CELLS read from, by its name in the selected project.

=PLAIDXL.REPR.MEASURE(column_name)

The numeric column CELL aggregates.

=PLAIDXL.REPR.MEASURES(column_names)

Several measure columns for CELLS, from a range of cells that hold column names. The result spills one cell per column; pass it to CELLS with the spill operator, such as D2#.

=PLAIDXL.REPR.MEASURE_TYPE(agg_function)

How to aggregate the measure. agg_function is one of these, in upper or lower case:

Value Returns
sum The total (the default when you don’t pass a measure type)
mean The average
median The middle value
min The smallest value
max The largest value
std The standard deviation
var The variance

The Report and Formulas tabs show these as Sum, Average, Median, Minimum, Maximum, Standard deviation and Variance.

=PLAIDXL.REPR.DIMENSION_REPR(dimension_name, start_node, [hierarchy])

A filter for CELL, CELLS, METRIC and METRIC_BREAKDOWN. Pass one for each column you want to filter by.

  • dimension_name — the name of a column in the table — the column that holds the dimension’s values, such as "Region". It must match the column name exactly; a column that isn’t in the table returns an error.
  • start_node — the node to roll up to, such as "EMEA". On a column that isn’t linked to a dimension, the value to match.
  • hierarchy — the alternate hierarchy to roll the node up through. Defaults to "main".

Reference a cell for the node to build a grid: =PLAIDXL.REPR.DIMENSION_REPR("Region", $A7). Leading and trailing spaces, and an alias after ·, are ignored, so you can point it at the indented ID · alias rows DRILL lays out.

=PLAIDXL.REPR.DRILL_KEY(d_key)

How far DRILL goes below its start node. d_key is plain text, either a word form or a drill key written out:

d_key Drills to
"all" Every descendant
"leaves" Only the leaves, which are the nodes with nothing below them
"1 level", "2 levels", … That many generations down
">[...]" The drill key written out, as in the next table

Write the number as digits: "2 levels", not "two levels". A leading drill is ignored, so "drill 2 levels" also works.

A written-out key counts generations down from the start node, which is generation 0 and is always included. Negative numbers count up from the leaves of each branch, so a ragged hierarchy works the way you’d expect.

Key Includes
>[*] or >[:] Every node
>[] or >[-1] Only the leaves
>[n] The start node and n generations below it. >[0] is the start node alone.
>[a:] The start node, then generation a and everything below it
>[a:b] The start node, then generations a up to b - 1
>[0:-k] The start node and every node that has at least k generations below it, so the last k generations of each branch are left off. >[0:-1] is every node except the leaves.
>[a:-k] The same, starting at generation a

For the hierarchy A, with children B, C, and D, where B has B1 and B2 and C has C1:

Key Result
>[1] A, B, C, D
>[2] A, B, B1, B2, C, C1, D
>[] A, B1, B2, C1, D
>[0:-1] A, B, C
>[2:] A, B1, B2, C1

Nodes are listed in hierarchy order, each one under its own parent, and the Excel outline groups follow the same order. Spaces inside a key are ignored. A key that doesn’t match one of these forms returns an error that lists the valid forms.

The Formulas tab of the task pane writes a formula for you. Open it from the task pane, with Formula… on the ribbon, or with Insert formula here… on the PlaidXL right-click menu. Under What do you want in the cell?, choose one:

  • A whole table (GET_TABLE) — pick or type the table, and optionally a maximum number of rows.
  • One number (CELL) — pick or type the table, choose the Column to total and How to combine the values.
  • A list of dimension nodes (DRILL) — pick or type the dimension and the start node, choose how far to drill, and optionally an Alternate hierarchy, nodes to exclude and nodes to open. Rows previews the nodes the drill lists. See Custom Drill.
  • A business metric (METRIC) — see Insert a Metric.

The Formula preview shows the result as you fill in the fields. Click Insert in active cell (or press Ctrl+Enter) to put it in the selected cell, or Copy to paste it yourself. Choosing a table on the Tables tab or a dimension on the Dimensions tab fills in the matching field. A One number formula inserted among a report’s values refers to the report’s own cells for whatever it shares with the report — the table, measure, aggregation, a filter, or the member of the cell’s row or column — so it fills down and across like the report’s values.

Click Metric… in the Insert group of the ribbon, or choose A business metric on the Formulas tab.

  1. In Metric, type part of a metric’s name or synonym, such as revenue. Each match shows its current value and description.
  2. Use the arrow keys or click to choose a metric.
  3. Optionally, add filters: choose a Dimension, type a Node, and click Add filter.
  4. Optionally, choose a column under Breakdown by (optional) to write METRIC_BREAKDOWN instead of a single number.
  5. Click Insert in active cell, or Copy.