GOOGLE WORKSPACE Merge cells function

The GOOGLE WORKSPACE Merge cells function in RPA.

Help CentreFunctions & Formulas

This article describes the RPA Google Workspace connector function to merge cells in a Google Sheet.

For a full list of available functions, please read GOOGLE WORKSPACE functions.


Description

The Merge cells function merges a range of cells into a single cell. The value of the top-left cell is preserved and all other values are discarded.


Input parameters

ParameterRequiredTypeDefaultDescription
ConnectorYesSelect-Select the Google Workspace connector to use
Spreadsheet IDYesText-Google Sheets spreadsheet ID
Sheet IDYesText-Numeric sheet ID
RangeYesText-A1 notation range to merge (e.g. A1:C1)
Merge typeNoSelectMERGE_ALLMERGE_ALL, MERGE_COLUMNS, or MERGE_ROWS

Errors

  • Sheet not found – no sheet exists with the given ID

Tips

  • Only the top-left cell value is kept; back up data before merging
  • Use MERGE_ROWS to merge each row separately within the range

Related functions

  • Unmerge cells – Unmerge previously merged cells
  • Format cells – Apply formatting to cells

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.