Read Excel
Reads a sheet of an Excel file into rows that later blocks can filter, check or load into a table.
@lainstack/excel/parse · Data
How to use it
Section titled “How to use it”Use Read Excel to read one sheet of an uploaded or stored Excel file (.xlsx) into a table of rows that later blocks can work through. For a text file other systems export, use Parse CSV.
Set Columns with Read columns from a sample file: pick a sample .xlsx (or a CSV) with the same header row as the files this step will read. The first sheet is read. The step saves each column’s name and type, and the sample isn’t kept. Use Edit on a column to change a guess that is wrong.
Because the columns are known before a file arrives, later steps can pick a column by name, and Select Rows, Combine and the Checklist can use the rows. Use Table rows with For each item to handle one row at a time.
Good to know:
- Sheet is the sheet’s name, in any case. Left empty, the first sheet is read. An unknown name fails the step and lists the sheets.
- The first row with a value is the header. Rows with nothing in them are skipped.
- Every run checks the sheet against Columns. A missing or extra column, or a value that doesn’t fit its type, fails the step and names the column and row.
- Headers match whatever their case, spaces and punctuation.
- Numbers are the value the cell holds, not as formatted. Date cells are Excel dates; in a Date column the time is dropped. A Date and time column needs text with its time zone, such as 2026-11-01 10:00:00Z.
- A code with leading zeros, such as 01234, is only kept when the cell is Text.
- Formulas are read as the result Excel last saved; one with no saved result, or showing an error, fails the step.
- At most 50 MiB and 500,000 rows, not password protected. Only .xlsx is read, not .xls. An upload field must hold exactly one file.
- The output keeps the first 20 rows as a preview, with Row count and Byte count.
Settings
Section titled “Settings”| Setting | Key | Type | Details |
|---|---|---|---|
| Excel file (required) | excel |
Value | |
| Sheet | sheet |
Text | The sheet’s name. Left empty, the first sheet is read. |
| Columns (required) | columns |
Value | Read them from a sample file. Every sheet must have these columns, and each value must fit its type. |
Outputs
Section titled “Outputs”| Output | Path | Type |
|---|---|---|
| Source file | sourceRef |
Value |
| Table rows | rows |
Value |
| Row count | summary.rowCount |
Number |
| Byte count | summary.byteCount |
Number |