Find Last Empty Row And Column
Description
Finds the last completely empty row and the last completely empty column within a Google Sheet.
The search can be performed across an entire sheet or restricted to a specific range.
Common Capabilities
Process Data Support
This activity supports dynamic configuration using variables from the Process Data drawer.
You can bind values from Model Data, Form Data, System Data, Enterprise Variables, and Activity Outputs.
Learn more → Using Process Data
Design-Time Configuration
Display Text
A user-defined name for the activity, displayed on the workflow canvas to help identify its purpose.
Connection Name
The configured Google Sheets connection used to access Google Sheets resources.
Spreadsheet
The spreadsheet where the search will be performed.
Sheet Name
The name of the sheet where the operation will be performed.
If not specified, the currently active sheet is used.
Range
The range within which to search for empty rows and columns.
If not specified, the entire sheet is searched.
For details about selecting spreadsheets, sheets, and ranges, see Google Sheets Data Selection.
Wait All Incoming
Controls how this activity behaves when multiple incoming execution paths converge.
Determines whether the activity executes when:
- Any incoming path completes, or
- All relevant incoming paths complete before execution
Learn more → Execution Control
On Error
Defines how the workflow behaves if this activity encounters a runtime error.
Supported strategies include:
- Fault
- Continue
- Suspend
- Retry
Output
Row Number
The number of the last completely empty row found.
Example:
10
Column Letter
The letter of the last completely empty column found.
Example:
AA
Remarks
- The authenticated Google account must have access to the spreadsheet.
- If a range is specified, only cells within that range are considered when determining whether a row or column is empty.
- A row is considered empty when all cells within the search scope are empty.
- A column is considered empty when all cells within the search scope are empty.
- The returned row number and column letter can be used by subsequent Google Sheets activities.