Get number of rows
Count the rows that hold data, or all rows of the used area, and report the number of the last used row.
Command in the Excel toolkit · id ooa.excel/row_count · 4 inputs, 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Sheet | String | No | Sheet name; active sheet when empty. | |
| Session | String | No | excel | Workbook session. |
| Mode | String | No | non_empty | non_empty counts rows holding data; all counts every row from the first to the last used row, empty ones included. |
| Index | Number | No | 1-based sheet position, used instead of the name. |
Outputs
| Output | Type | What it is |
|---|---|---|
| count | Number | Rows with at least one non-empty cell, or all rows of the used area. |
| last_row | Number | 1-based number of the last row with data; 0 when the sheet is empty. |