I have spreadsheet with two sheets: current_sheet and archive_sheet.
current_sheet
archive_sheet
I also have a script (which I created) which removes data from curre
curre
Instead of using script to move your data each month, try copying the values, then clearing the original data and reinitialise the formula. Without seeing your formula and have a clear understanding of what your doing, im kinda punching in the dark.