A simple trigger that runs an Apps Script function automatically when a user edits the spreadsheet (see Triggers).
A function onEdit(e) in the Script Editor can auto-run after each cell edit.