clearColumnsByConditional
clearRowsByConditional turned on its side: the contents go, the columns stay, so the letters of the columns after them do not change.
The sheet is read once and the clearing is grouped into consecutive blocks.
A sheet means its whole data range; a range means only the cells inside it, with the rest of the sheet neither read nor touched. Either way the predicate is given the position on the sheet, so a column keeps its real number.
Parameters
Parameter | Type | Description |
|---|---|---|
|
| The sheet to work on, or the range to work within: only its cells are read, and only they are cleared. |
|
| Receives the column's cells, its one-based position and — when |
|
|
|
Returns
number — how many were affected.
Throws
Exception | Condition |
|---|---|
| the first argument is neither a sheet nor a range. |
| the predicate is not a function, or the header position is not a positive integer. |
Examples
In use
Within one block
See also
Source
This documentation was generated with AI (Claude) from the library's source code.