Move data to bottom of sheet
Move data to bottom of sheet I've got a list of dates, clients, and shift data in a spreadsheet (rows A5:D34). I want to write this data to the last row of the sheet. Unfortunately, the number of rows is variable. On one week, the data may be 17 rows; later, it may be 23 rows. I want to "archive" the data by moving the used rows to the bottom of the sheet. I'm looking for a code (google script) solution that can work with the fact that the range to be copied is always 4 columns wide, but a variable number of rows. Thanks for all your help! You can set the range to the number of rows. The data to write needs to be a 2D array. The number of inner arrays is the number of rows to write. Look at the documentation for getRange(start row, start column, number of rows to get, number of columns to get) – Sandy Good Jul 1 at 22:17 ...