EXCEL Column unique values function

The EXCEL Column unique values function in RPA.

Help CentreBuilding Processes

This article describes the RPA Excel functionality to get unique values from a column.

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


Description

The Column unique values function reads all values from a specified column and returns the unique (distinct) values as a comma-separated list. This is useful for building dropdown options, summarising categories, or checking which distinct values exist in a dataset.


Setting it up

To use the Column unique values function, follow these instructions:

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

Once on a process map:

  1. Navigate to the process where you would like to add the function
  2. Click on the green button's drop-down
  3. Click on "+ Activity"
  4. Select the EXCEL Column unique values option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
SheetYesText-The name of the sheet
ColumnYesText-The column letter or name to get unique values from
VariableNoTextresultName of the variable to store the comma-separated unique values in

Output variables

VariableTypeDescription
VariableStringComma-separated list of unique values from the column

Errors

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

Tips

  • Empty cells are excluded from the result
  • The order of values follows their first appearance in the column
  • Use this with a loop to iterate over each unique value for grouped processing

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.