I need a function that will allow to recopy what is already written in a cell. I'd call it NothingHasChanged() and I'd use this way:
In a cell chosen randomly I'd type:
if(A1="Yes"; "The cell A1 contained Yes at least once"; NothingHasChanged() )
This way i'd keep history of the cell value overtime.
I tried to do a script :
function FormulaToValueV2() {
var spreadsheet = SpreadsheetApp.getActive();
spreadsheet.getCurrentCell().offset(599, 0).activate();
spreadsheet.getCurrentCell().offset(-599, 0).copyTo(spreadsheet.getActiveRange(),
SpreadsheetApp.CopyPasteType.PASTE_VALUES, false);
spreadsheet.getCurrentCell().offset(-599, 0).activate();
spreadsheet.getCurrentCell().offset(599, 0).copyTo(spreadsheet.getActiveRange(),
SpreadsheetApp.CopyPasteType.PASTE_VALUES, false);
};
that I generated from a macro I did by copying as a value to override the formula but it throws me an error saying that I don't have the permission to "copyto".
I'm desperate actually, I'm not a programmer
Thanks for the help and stay safe
EDIT : Here is a link with no personal datas of what i'm trying to do.
https://docs.google.com/spreadsheets/d/19-Jv2kDUXxMXUid1EqDmwceZXU3w6U2Nd5uqwr3Swes/edit#gid=0
As you can see, i'd like to overcome the circular reference problem : if the condition is not met, you don't change the value that was in the cell. This way, i can keep track of the datas contained in "actual Day" into "saved Days".