EXCEL Add named range function

The EXCEL Add named range function allows you to create a named range in the workbook.

Help CentreBuilding Processes

This article describes the RPA Excel functionality to create a named range.

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


Description

The EXCEL Add named range function creates a named range in the workbook. Named ranges allow referencing a cell or range of cells by a friendly name instead of an address, making formulas easier to read and maintain.


Setting it up

To use the EXCEL Add named range function, follow these instructions:

{{popups:rpas/add:action=excel-add-named-range}}

Once on a process map:

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

Input parameters

ParameterRequiredTypeDefaultDescription
File pathYesTextFull path to the Excel file.
SheetYesTextName of the sheet containing the range.
Range nameYesTextName for the range (e.g. TotalSales).
Range addressNoTextCurrent cellRange address (e.g. A1:B10). Defaults to the current cell.

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 nameThe range name contains invalid characters or is a reserved word.

Tips

  • Named ranges make formulas more readable, e.g. =SUM(TotalSales) instead of =SUM(A1:A100).
  • Range names cannot contain spaces. Use underscores or camelCase.
  • If the range address is omitted, the currently selected cell is used.

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.