Skip to main content

Get used row count

Count the rows and columns in use on a sheet, up to the last filled cell.

Command in the Google Workspace toolkit · id ooa.google/sheets_row_count · 5 inputs (2 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialYesGoogle OAuth access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
Spreadsheet IDStringYesThe spreadsheet: its id, its full link (https://docs.google.com/spreadsheets/d/...), or its exact name in Drive (a name made only of letters, digits, - and _ is read as an id; use the link for such names).
SheetStringNoSheet (tab) name; the first sheet when empty.
Non empty onlyBooleanNofalseCount only rows that hold a value, instead of the number of the last filled row.
Endpoint addressStringNoReplaces https://*.googleapis.com for testing or a proxy; leave empty normally.

Outputs​

OutputTypeWhat it is
rowsNumberNumber of the last row that holds a value.
columnsNumberNumber of the last column that holds a value.