Help Centre › Building Processes
This article describes the RPA Excel functionality to append data from another workbook.
For a full list of available functions, please read EXCEL functions.
Description
The EXCEL Append workbook function appends data from another workbook into the current workbook. You can optionally specify which sheets to import and whether to skip headers from the source workbook.
This is useful for consolidating data from multiple files into a single workbook, especially when the source files share the same structure.
Setting it up
To use the EXCEL Append workbook function, follow these instructions:
{{popups:rpas/add:action=excel-append-workbook}}
Once on a process map:
- Navigate to the process where you would like to add the function
- Click on the green button’s drop-down
- Click on “+ Activity”
- Select the EXCEL Append workbook option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| File path | Yes | Text | - | Path to the source workbook to append data from |
| Sheets | No | Text | All sheets | Comma-separated sheet names to import. Defaults to all sheets if omitted |
| Skip headers | No | Switch | On | Skip the first row (headers) from the source workbook when appending data |
Output variables
This action does not produce output variables.
Errors
| Error | Description |
|---|---|
| File not open | The current workbook must be open |
| Source file not found | The specified source workbook path does not exist |
| Sheet not found | One or more specified sheets do not exist in the source workbook |
Tips
- Turn off Skip headers if you want to include the header row from the source workbook
- When appending data, rows are added after the last row with data in the matching sheet
- If a sheet in the source does not exist in the current workbook, it will be created
- Use this in a loop to consolidate multiple files with the same structure