Find next empty cell
Find the first empty cell after the last value in a column (going down) or in a row (going right), e.g. where to append the next record.
Command in the Microsoft 365 toolkit · id ooa.microsoft365/excel_find_next_empty_cell · 8 inputs, 3 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Access token | Credential | No | Microsoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| Remote path | String | No | Workbook path in the drive (e.g. Finance/budget.xlsx), or id:{item-id}. | |
| Sheet | String | No | Worksheet name. | |
| Direction | String | No | down | down: after the last value of a column; right: after the last value of a row. |
| Column | String | No | A | Column letter to look in. |
| Row | Number | No | 1 | Row number to look in. |
| Drive | String | No | me/drive | Whose files: me/drive (your OneDrive), a person (ann@acme.com), a SharePoint site (contoso.sharepoint.com:/sites/Finance), a library of a site by name (contoso.sharepoint.com:/sites/Finance:/Invoices), or sites/{site-id}/drive or drives/{drive-id}. With an app sign-in, name a person or site. |
| Endpoint address | String | No | https://graph.microsoft.com/v1.0 | Graph endpoint; change only for national clouds or testing. |
Outputs
| Output | Type | What it is |
|---|---|---|
| cell | String | Address of the empty cell, e.g. A43. |
| row | Number | Its row number. |
| column | String | Its column letter. |