Skip to content

Instantly share code, notes, and snippets.

@oonisidesu
Created August 4, 2018 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oonisidesu/5a5c93492d5c93bf3a77d1c9a5a5451e to your computer and use it in GitHub Desktop.
Save oonisidesu/5a5c93492d5c93bf3a77d1c9a5a5451e to your computer and use it in GitHub Desktop.
function myFunction() {
var sheet = SpreadsheetApp.getActiveSheet();
var lastRow = sheet.getLastRow();
var i = 2;
while(sheet.getRange(i, 2).getValue()) {
i++;
}
Logger.log(sheet.getRange(i, 1).getValue());
sheet.getRange(i, 2).setValue(true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment