TASK_CLEAR is a custom function that generates instructions for clearing both contents and formatting from a specified range in your Google Sheet. After generating the instructions, select the cell containing the formula and click the "Run" button in the Sheet Workflows sidebar to execute the clear operation.
=TASK_CLEAR(header, range, [sheet])
Parameter | Data Type | Required | Description |
---|---|---|---|
header | string | Yes | Column header for the task template |
range | string | Yes | The range to clear, in A1 notation (e.g., "A1:B10") |
sheet | string | No | The name of the sheet containing the range to clear (defaults to active sheet if omitted) |
After creating the TASK_CLEAR formula in a cell, you must select that cell and click the "Run" button in the Sheet Workflows sidebar to execute the clear operation. The formula itself only generates instructions and doesn't modify the sheet until run.
The TASK_CLEAR function clears both contents and formatting. This means all cell values, formulas, notes, and visual formatting (including colors, fonts, borders) will be removed from the specified range.
=TASK_CLEAR("Clear Monthly Data", "A2:F50")
=TASK_CLEAR("Reset Calculations", "B5:E20", "Calculations")
=TASK_CLEAR("Clear Result", "H10")
Cause: The specified sheet name doesn't exist in the current spreadsheet.
Solution: Check for typos in the sheet name or verify that the sheet exists in your spreadsheet.
Cause: The range notation isn't valid A1 notation.
Solution: Ensure you're using proper A1 notation (e.g., "A1:B10", "C5", etc.).
Cause: The TASK_CLEAR function only generates instructions; it doesn't execute until run.
Solution: Select the cell containing the TASK_CLEAR formula and click the "Run" button in the Sheet Workflows sidebar.
Cause: The range parameter is empty or wasn't provided.
Solution: Specify a valid range in the second parameter of the function.
Cause: You don't have permission to modify a protected range.
Solution: Ensure you have edit permissions for the range, or modify the protection settings if you're the owner.
TASK_CLEAR only removes the contents and formatting of cells - it doesn't delete the cells themselves or affect the sheet structure.
Yes, you can use Ctrl+Z (or Cmd+Z on Mac) to undo a TASK_CLEAR operation immediately after running it, as long as you haven't performed other actions since then.
No, TASK_CLEAR removes both contents and formatting. For more selective clearing, consider using Google Sheets' built-in Edit > Clear menu options.
TASK_CLEAR can be part of an automated workflow, saved in cells for repeated use, and provides a record of what was cleared. It also works within the Sheet Workflows ecosystem of functions.
Yes, you can use functions that return range strings, such as CONCATENATE("A1:A", ROW())
to create dynamic ranges for TASK_CLEAR.
Yes, TASK_CLEAR removes all cell properties including data validation rules, conditional formatting, and any other cell-level customizations.
No, each TASK_CLEAR operation can only clear a single contiguous range. For multiple ranges, you'd need multiple TASK_CLEAR functions.
Yes, TASK_CLEAR affects all cells in the specified range, regardless of whether they're in hidden rows or columns.
TASK_CLEAR will clear the contents and formatting of merged cells, but it won't unmerge them.
1 week ago