I'm trying to auto populate editor's name or email in a specified cell while they editing a value in that row.
why because, If a sheet is shared among N' number of people and there multiple users will enter data. At that scenario I need to know by whom a particular data was entered.
I write a Google apps script, but it's working on all sheets. i need it to run only in a particular sheet named "Purchase".
function onEdit(e)
{
var editedRange = e.range;
if ( editedRange.getColumn()==1 )
{ // if column A was edited
var u = Session.getActiveUser().getEmail();
editedRange.offset(0, 13).setValue(u); // write user's email to corresponding row in column N
}
};
my sheet will be like this.