Skip to main content

Find next empty cell

Starting from a cell, walk along its column or row in a direction and return the first empty cell.

Command in the Excel toolkit · id ooa.excel/find_next_empty_cell · 4 inputs, 3 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Start cellStringNoWhere to start; the cell chosen by go_to_cell, or A1, when empty.
DirectionStringNodowndown or up searches the column, right or left searches the row.
SheetStringNoSheet name; active sheet when empty.
SessionStringNoexcelWorkbook session.

Outputs​

OutputTypeWhat it is
cellStringAddress of the first empty cell, e.g. A12.
rowNumber1-based row number of that cell.
columnNumber1-based column number of that cell.