I saw this problem and the answer was perfect except that I do not want to delete the row. I only need the cells cleared of existing values.
Google-sheets – Transfer a row to another sheet then clear the original row
google sheetsgoogle-apps-script
Related Topic
- Google-sheets – How to copy related row data from Google Sheets remote tab or Sheet into current Sheet with a script
- Google-sheets – How to copy specific columns to another sheet if value of cell changes in master sheet
- Google-sheets – Google sheet group column data and display values in row
- Google-sheets – How to move a row into another sheet
- Google-sheets – Copy the contents of a row to another sheet based on a specific value
- Google-sheets – How to Clear Cell(s) based on the Value of another Cell
- Google-sheets – Clear range of cells based on another
- Google-apps-script – How to combine multiple ranges with getRange in order to clear the contents of specific cells
Best Answer
you can use something simple like this to "clear" the row either via the button or by including it in the previous script to be auto-executed
where Sheet1!X1 is the empty cell that gets copied over the mentioned cells