Last active
April 4, 2020 00:39
-
-
Save slayton/1c04efc76c8c4e5a753f48b008eb5da7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function onEdit(e) { | |
var row = e.range.getRow(); | |
var col = e.range.getColumn(); | |
if (col>=2 && col<=13 && row < 3 && e.source.getActiveSheet().getName() === "Temperature") { | |
e.source.getActiveSheet().getRange(row,14).setValue(new Date()); | |
if (e.source.getActiveSheet().getRange(row,1).getValue() == "") { | |
e.source.getActiveSheet().getRange(row,1).setValue(new Date()); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment