The
TASK_COPY
TASK_COPY(source_range, destination_range, [source_sheet], [destination_sheet])
Parameter | Data Type | Required | Description |
---|---|---|---|
source_range |
|
Yes | The range to copy from. For example,
|
destination_range |
|
Yes | The range to copy to. For example,
|
source_sheet |
|
No | The name of the sheet containing the source range. For example,
|
destination_sheet |
|
No | The name of the sheet containing the destination range. For example,
|
If source_sheet or destination_sheet are not specified, the active sheet will be used by default.
When the destination range is larger than the source range, the function will automatically repeat the source content to fill the destination. This is useful for creating repeated patterns or structures.
Example:
To copy between different sheets, include both the source_sheet and destination_sheet parameters:
=TASK_COPY("A1:B10", "C1:D10", "Data", "Summary")
This copies from range A1:B10 in the "Data" sheet to range C1:D10 in the "Summary" sheet.
=TASK_COPY("A1:B5", "D1:E5")
This copies data and formatting from A1:B5 to D1:E5 in the active sheet.
=TASK_COPY("A1:C10", "A1:C10", "Template", "New Sheet")
This copies a template from the "Template" sheet to the same position in the "New Sheet".
=TASK_COPY("A1:B2", "D1:G6")
This copies the small 2×2 pattern from A1:B2 and replicates it to fill the larger D1:G6 area.
Issue | Solution |
---|---|
Error: "Source sheet not found" | Check that the specified source sheet name exists and is spelled correctly. |
Error: "Destination sheet not found" | Verify the destination sheet name or create it if it doesn't exist. |
Error: "Invalid range" | Ensure both source and destination ranges use proper A1 notation (e.g., "A1:B10"). |
Formatting not copied correctly | Try running the function again or manually copy formats with Edit > Paste special > Format. |
Formula references incorrect cells | Adjust formulas in the destination range to reference appropriate cells. |
A: No,
TASK_COPY
A: Yes, any existing data, formatting, and formulas in the destination range will be replaced.
A: Yes, it copies all formatting including conditional formatting rules applied to the source range.
A: No, you must use A1 notation as strings (e.g., "A1:B10") for the ranges.
A: Only the portion of the source that fits within the destination range will be copied.
5 months ago