EXCEL Test if a column exists function

The EXCEL Test if a column exists function in RPA.

Help CentreBuilding Processes

This article describes the RPA Excel functionality to test if a column exists.

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


Description

The EXCEL Test if a column exists function allows you to test if a column exists.


Setting it up

To use the EXCEL Test if a column exists function, follow these instructions:

{{popups:rpas/add:action=excel-column-exist}}

Once on a process map:

  1. Navigate to the process where you would like to add the EXCEL Test if a column exists 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 Test if a column exists option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
SheetYesText-The name of the sheet
ColumnYesText-The column name to check
VariableYesText-Variable to store the result (true/false)

Output variables

VariableTypeDescription
VariableBooleanTrue if the column exists, false otherwise

Errors

ErrorDescription
File not openThe Excel file must be open
Sheet not foundThe specified sheet does not exist

Tips

  • Use this to verify a column exists before reading or writing to it

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.