Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

HOW to add date stamp when criteria met in google spreadsheet?

$
0
0

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());  }}

Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>