Skip to content

Google Sheets — Used range

Type: googlesheets-get-used-range  ·  Package: Google Sheets Activities v1.0.0  ·  Output: Dictionary

Returns the dimensions of the data area of a sheet: how many rows and columns, where they end, and the range. Useful to know the size before processing or to build a dynamic range.

Calculates the occupied area of the sheet and returns its metrics. Requires a Google Sheets — Open session.

None.

ParameterEditorDescription
sessionsessionGoogle Sheets — Open session. Optional: within a body it is inherited.
sheetexpressionSheet name. By default, the first.

Returns a Dictionary with: rows, columns, lastRow, lastColumn, range.

Google Sheets — Used range session = = hoja sheet = "Datos" → output: dim
Log message = = "Filas con datos: " + dim["rows"]