Skip to main content

Excel Data Processing

Read Excel, process data row by row, and save results

Steps

#ActivityWhat it does
1TableImportLoad the input file into a named table on the runner
2TableQueryMaterialise the rows for iteration
3CreateTableCreate an in-memory table for the processed rows
4ForEachLoopProcess each row
5TableUpsertRowWrite the transformed row into the output table
6TableExportExport the processed rows

Workflow

TableImport("input", "./input.xlsx")
inputRows = TableQuery("input")
CreateTable("output", schema={"columns": [{"name": "value"}, {"name": "processed"}]})
for row in inputRows.rows:
TableUpsertRow("output", {"value": "{{ row.value }}", "processed": "{{ row.value * 2 }}"}, append=True)
TableExport("output", "./output.xlsx", format="xlsx", sheetName="Results")