This is what the current script. Where col 26 got edited date stamp on gol 27. Now i would like to add in criteria. Example: When col 26 value is "Text" then col 27 date stamp.
Can anyone help me plz.
function onEdit(e){ addTimestamp(e);}function addTimestamp(e){ var startRow = 3; var targetColumn = 26; var ws = "START"; var currentDate = new Date(); var row = e.range.getRow(); var col = e.range.getColumn(); if(col === 26 && row >= startRow && e.source.getActiveSheet().getName() === ws) { e.source.getActiveSheet().getRange(row,27).setValue(new Date()); }}