Skip to content

Instantly share code, notes, and snippets.

@rheajt
Created October 5, 2015 09: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 rheajt/3cb458abd0064a378ce6 to your computer and use it in GitHub Desktop.
Save rheajt/3cb458abd0064a378ce6 to your computer and use it in GitHub Desktop.
function that will highlight a cell red when it is marked 'incomplete' and white when it is anything else

#Highlight Incompletes

Use the onEdit handler from google scripts to highlight a cell when it is marked 'incomplete'. If it is set to anything else then it reverts back to the original white.

function onEdit(event) {
if(event.value.toLowerCase() === "incomplete") {
event.range.setBackground("red");
} else {
event.range.setBackground("white");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment