EXCEL Add pivot table function

The EXCEL Add pivot table function creates a pivot table from a data range.

Help CentreBuilding Processes

This article describes the RPA Excel functionality to create a pivot table from a data range.

For a full list of available functions, please read EXCEL functions.


Description

The EXCEL Add pivot table function creates a pivot table from a data range. Windows only – macOS does not support pivot table creation via COM. The destination can be a cell on the current sheet or a new sheet (prefix with 'sheet:').


Setting it up

To use the EXCEL Add pivot table function, follow these instructions:

{{popups:rpas/add:action=excel-add-pivot-table}}

Once on a process map:

  1. Navigate to the process where you would like to add the EXCEL Add pivot table function
  2. Click on the green button's drop-down (right side of the green button labelled "Process")
  3. On the menu that appears, click on the "+ Activity" item
  4. From here you can select the EXCEL Add pivot table option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
File pathYesTextFull path to the Excel file.
SheetYesTextName of the sheet containing the source data.
Source data rangeYesTextSource data range (e.g. A1:D100). Defaults to the used range.
Pivot table nameYesTextName for the pivot table.
DestinationYesTextDestination cell (e.g. G1) or 'sheet:NewSheetName' to create on a new sheet.

Output variables

This action does not produce any output variables.


Errors

ErrorDescription
File not openThe Excel file must be open.
Sheet not foundThe specified sheet does not exist.
Invalid rangeThe source data range is not valid.
Not supportedPivot table creation is only supported on Windows.

Tips

  • This function is Windows only – macOS does not support pivot table creation via COM.
  • Use 'sheet:PivotSheet' as the destination to place the pivot table on a new sheet.
  • Use the Remove pivot table function to delete pivot tables.

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.