PROCESIO
OverviewPlatform ActionsIntegrations & DemosMarketplaceCustom ActionsDeveloperโ€™s Guide

Split Workbook To CSV

Splits one sheet of a workbook into several .csv files with a fixed number of rows each.

Split Workbook To CSV reads one sheet of a workbook and writes it out as several .csv files, each with a fixed number of rows. Use it to feed a large spreadsheet, in batches, to a system that imports CSV.

Add the action

In the Process Designer toolbox, open Excel and pick Split Workbook To CSV (or type Split Workbook To CSV in the search box).

The Split Workbook To CSV action properties: Excel workbook, Sheet name, Rows number and CSV files

Inputs and outputs

FieldDirectionTypeRequiredWhat to put / what you get
Excel workbookInputFileYesThe .xlsx or .xlsm workbook to split.
Sheet nameInputTextYesThe sheet to split. Upper or lower case does not matter.
Rows numberInputIntegerYesHow many rows go in each file, from 1 to 10000.
CSV filesOutputList of FileYesThe parts, in order.

Example

orders.xlsx, sheet Orders:

ABCD
1ProductQtyPriceTotal
2Pen21.5=B2*C2 (shows 3)
3Book112=B3*C3 (shows 12)
4Mug34.25=B4*C4 (shows 12.75)

Rows number 2 โ†’ CSV files:

FileContent
orders(Part1).csvProduct,Qty,Price,Total / Pen,2,1.5,3.0
orders(Part2).csvBook,1,12,12 / Mug,3,4.25,12.75

With Rows number 10 the whole sheet fits in one file, orders(Part1).csv.

Good to know

  • The rows are counted from the first row of the sheet, header included. The header is not repeated in the later files.
  • Formula cells are written with their last calculated value, as stored in the file.
  • Numbers are written as stored in the file, which can differ from what Excel displays (for example 3.0 instead of 3).
  • A value that contains a comma, a quote or a line break is wrapped in double quotes.
  • The files are UTF-8 with a byte order mark (BOM), comma-separated, with Unix line breaks (LF).
  • Completely empty rows are skipped.
  • To get .xlsx parts instead, use Split Workbook.

On this page