This page describes Excel reporting in the classic Workbook Editor.
Excel reporting fills an Excel template from the Media Gallery with data from a workbook. You build the report with action blocks: they write data into the template’s tables, named ranges and cells, and the template’s own formulas and formatting do the rest. The finished report can be opened in the browser, sent by email or scheduled, as an Excel, PDF or PowerPoint file.


The Report [Report name] template [Template name] block defines the Excel report and runs the connected block stack when the report is generated.
Upload the Excel template to the Media Gallery; see Using the Gallery to upload images for how to open it and upload a file. Only .xlsx files are supported as templates. Files can be up to 20 MiB. The upload dialog in the screenshot below shows an older 9Mb limit, and the current dialog shows 19Mb. Administrators can also upload tenant templates in Administration → Media.


Example of a report definition block with report inputs:

Example of the Open report block passing report inputs:

| Inputs |
Description |
| Report name |
The name of the report. |
| Template name |
An Excel template (.xlsx) in the Media Gallery. Workbook and tenant templates are supported. |
| + Report inputs |
Inputs passed to the report and available while it is generated. Inputs can be String, Number or Boolean. Use them to reuse one report across several schedules, each filtering on different dimensions and values. |

The Report input block returns the value of a report input passed from the scheduler or from the Open report and Send report blocks. Place it inside the report definition block.
Excel reports can be scheduled on the Reporting page, the same way as PDF reports, and sent as pdf or xlsx. See Create a report schedule.
| Feature |
Description |
| Embeds |
Yes, workbook embeds only. |
| Reporting |
Yes |

The Import data block appends or replaces data in a table or named range of the Excel template.
To get rows from a chart or table, use the Get export data from [Data object] with [Date type] dates block as the Data input.
| Inputs |
Description |
| Data |
The data to import. Must be a List in which each item is a row, and each row is a list of cell values, for example the output of the Get Export Data from Data Object block. |
| Table or named range |
The table or named range to insert the data into or replace. |
| Replace |
True or False. True replaces the existing data in the table or named range; False appends the data after it. |
| Feature |
Description |
| Embeds |
Yes, workbook embeds only. |
| Reporting |
Yes, only inside an Excel or PowerPoint report block. |

The Insert value block inserts a value into a cell on a sheet.
| Inputs |
Description |
| Value |
The value to insert into the cell: a String, Number or Boolean. |
| Cell reference |
The cell (for example A1) to insert the value into. A named range that references a single cell is also accepted. |
| Sheet |
The sheet the cell is on. |
| Feature |
Description |
| Embeds |
Yes, workbook embeds only. |
| Reporting |
Yes, only inside an Excel or PowerPoint report block. |

The Insert hyperlink block inserts a hyperlink into a cell on a sheet.
| Inputs |
Description |
| Hyperlink |
The hyperlink to insert into the cell. |
| Cell reference |
The cell (for example A1) to insert the hyperlink into. A named range that references a single cell is also accepted. |
| Sheet |
The sheet the cell is on. |
| Feature |
Description |
| Embeds |
Yes, workbook embeds only. |
| Reporting |
Yes, only inside an Excel or PowerPoint report block. |

The Insert note block inserts a note into a cell on a sheet.
| Inputs |
Description |
| Note |
The note to insert into the cell. |
| Cell reference |
The cell (for example A1) to insert the note into. A named range that references a single cell is also accepted. |
| Sheet |
The sheet the cell is on. |
| Feature |
Description |
| Embeds |
Yes, workbook embeds only. |
| Reporting |
Yes, only inside an Excel or PowerPoint report block. |

The Copy sheet block copies a sheet.
| Inputs |
Description |
| Sheet |
The sheet to copy. |
| New name |
The name of the copy. Excel requires it to be unique within the workbook, not empty and no longer than 31 characters. It must not begin or end with an apostrophe, cannot be History, which Excel reserves, and cannot contain any of these characters: \ / ? * : [ ]. |
| Feature |
Description |
| Embeds |
Yes, workbook embeds only. |
| Reporting |
Yes, only inside an Excel or PowerPoint report block. |

The Rename sheet block renames a sheet.
| Inputs |
Description |
| Sheet |
The sheet to rename. |
| New name |
The new name of the sheet. Excel requires it to be unique within the workbook, not empty and no longer than 31 characters. It must not begin or end with an apostrophe, cannot be History, which Excel reserves, and cannot contain any of these characters: \ / ? * : [ ]. |
| Feature |
Description |
| Embeds |
Yes, workbook embeds only. |
| Reporting |
Yes, only inside an Excel or PowerPoint report block. |

The Delete sheet block deletes a sheet.
| Inputs |
Description |
| Sheet |
The sheet to delete. |
| Feature |
Description |
| Embeds |
Yes, workbook embeds only. |
| Reporting |
Yes, only inside an Excel or PowerPoint report block. |

The Move sheet block moves a sheet to a new position in the workbook.
| Inputs |
Description |
| Sheet |
The sheet to move. |
| Position |
The new position of the sheet. |
| Feature |
Description |
| Embeds |
Yes, workbook embeds only. |
| Reporting |
Yes, only inside an Excel or PowerPoint report block. |

The Show sheet block shows or hides a sheet.
| Inputs |
Description |
| Sheet |
The sheet to show or hide. |
| Show |
True or False. |
| Feature |
Description |
| Embeds |
Yes, workbook embeds only. |
| Reporting |
Yes, only inside an Excel or PowerPoint report block. |

The Set sheet tab color block sets the tab color of a sheet.
| Inputs |
Description |
| Sheet |
The sheet whose tab color to change. |
| Tab color |
The new color of the sheet’s tab. Supports hex, rgb and named CSS colors. |
| Feature |
Description |
| Embeds |
Yes, workbook embeds only. |
| Reporting |
Yes, only inside an Excel or PowerPoint report block. |

The Get cell value block gets the value of a cell on a sheet.
| Inputs |
Description |
| Cell reference |
The cell (for example A1) to read. A named range that references a single cell is also accepted. |
| Sheet |
The sheet the cell is on. |
Outputs: String, Number or Boolean: the value of the cell.
| Feature |
Description |
| Embeds |
Yes, workbook embeds only. |
| Reporting |
Yes, only inside an Excel or PowerPoint report block. |

Sets the minimum or maximum of the primary or secondary axis of a chart in an Excel worksheet, so the chart’s scale stays consistent across reports.
| Inputs |
Description |
| Axis |
Primary or Secondary: the axis of the chart to update. |
| Range type |
Min or Max: whether to set the axis minimum or maximum. |
| Value |
The number to set as the axis minimum or maximum. |
| Chart name |
The name of the chart to update. |
| Sheet |
The worksheet that contains the chart. |
| Feature |
Description |
| Embeds |
Yes, workbook embeds only. |
| Reporting |
Yes, only inside an Excel or PowerPoint report block. |

Sets the print area of an Excel worksheet. Only that cell range is printed, so a PDF export of the report covers that range alone. An XLSX export is the workbook itself, so cells outside the print area are still in the file.
| Inputs |
Description |
| Range |
The cell range to set as the print area, for example A1:D20. |
| Sheet |
The worksheet to update. |
| Feature |
Description |
| Embeds |
Yes, workbook embeds only. |
| Reporting |
Yes, only inside an Excel or PowerPoint report block. |

Returns the cell range currently set as the print area of an Excel worksheet.
| Inputs |
Description |
| Sheet |
The worksheet to check. |
Outputs: Text: the current print area range, for example A1:D20.
| Feature |
Description |
| Embeds |
Yes, workbook embeds only. |
| Reporting |
Yes, only inside an Excel or PowerPoint report block. |

The Get data from table or named range block returns all data in an Excel table or named range, as a list of rows in which each row is a list of values.
| Inputs |
Description |
| Table or named range |
The table or named range to read. |
Outputs: List: the rows of the table or named range, each a list of cell values.
| Feature |
Description |
| Embeds |
Yes, workbook embeds only. |
| Reporting |
Yes, only inside an Excel or PowerPoint report block. |

Returns the number of printable pages in an Excel worksheet, based on its current page setup and formatting. Use it where page count matters, for example before exporting to PDF or PowerPoint.
| Inputs |
Description |
| Sheet |
The worksheet to check. |
Outputs: Number: the number of pages the sheet spans when printed.
| Feature |
Description |
| Embeds |
Yes, workbook embeds only. |
| Reporting |
Yes, only inside an Excel or PowerPoint report block. |

The Open report block generates the report and downloads it in the browser when the block runs.
| Inputs |
Description |
| Report |
The Excel report to open. |
| Custom file name |
The file name of the report. |
| Filetype |
The file type of the export: XLSX (Excel document); PDF (the Excel document printed as PDF, respecting the template’s print settings); or PPTX BETA (PowerPoint document). |
| Use applied filters |
Whether the user’s applied filters and variable values are passed to the report, or ignored. |
| Max resolution (px) |
The maximum height and width of the browser window used for screen captures in the report. If the sheet has a locked aspect ratio, its larger dimension is set to this value: with a 16:9 sheet and a maximum of 1700, the capture is 1700 × 956 px. |
| DPI factor |
Increases the pixel density of captured images. A factor of 2 quadruples the pixel count. A higher factor makes the report take longer to generate. |
| Feature |
Description |
| Embeds |
Yes, workbook embeds only. |
| Reporting |
No, not supported inside report blocks. |

The Send report block emails the report to the recipients when the block runs.
| Inputs |
Description |
| Report |
The Excel report to send. |
| Recipients |
A list of email recipients. |
| Custom file name |
The file name of the report. |
| Subject |
The email subject. |
| Email body |
The email body. Supports HTML. |
| Encrypt password |
A password to encrypt the Excel file with. |
| Filetype |
The file type of the export: XLSX (Excel document); PDF (the Excel document printed as PDF, respecting the template’s print settings); or PPTX BETA (PowerPoint document). |
| Use applied filters |
Whether the user’s applied filters and variable values are passed to the report, or ignored. |
| Max resolution (px) |
The maximum height and width of the browser window used for screen captures in the report. If the sheet has a locked aspect ratio, its larger dimension is set to this value: with a 16:9 sheet and a maximum of 1700, the capture is 1700 × 956 px. |
| DPI factor |
Increases the pixel density of captured images. A factor of 2 quadruples the pixel count. A higher factor makes the report take longer to generate. |
| Feature |
Description |
| Embeds |
Yes, workbook embeds only. |
| Reporting |
No, not supported inside report blocks. |
To run a report on a schedule instead of from a button, see Scheduled Dashboard Reporting.