I am looking for an assistance on creating an App Script. This script needs to do the following:
It seems like it would be a simple task, but I can't seem to figure it out. I have been searching for examples, modifying them, and testing it all day with no luck. Any help would be greatly appreciated.
Thank you all!
This script will get the last row and input "RUSH" or "New" in the last row of column A based on the last cell of column I if it is "Yes" or "No".
function yesOrNo() {
var ss = SpreadsheetApp.getActiveSheet();
var lastRow = ss.getLastRow()
var value = ss.getRange(lastRow,9).getValue();
if (value == "Yes"){
ss.getRange(lastRow,1).setValue("RUSH");
}
else {
ss.getRange(lastRow,1).setValue("New");
}
}
You can also achieved it by using the formula below:
=ArrayFormula(IFERROR(ifs($I:$I = "Yes", "Rush", $I:$I = "No", "New"), ""))