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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Access token | Credential | Yes | Google OAuth access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| Spreadsheet ID | String | Yes | The 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). | |
| Sheet | String | No | Sheet (tab) name; the first sheet when empty. | |
| Non empty only | Boolean | No | false | Count only rows that hold a value, instead of the number of the last filled row. |
| Endpoint address | String | No | Replaces https://*.googleapis.com for testing or a proxy; leave empty normally. |
Outputs
| Output | Type | What it is |
|---|---|---|
| rows | Number | Number of the last row that holds a value. |
| columns | Number | Number of the last column that holds a value. |