Trigger email if cell changed in Google Sheet

后端 未结 2 958
温柔的废话
温柔的废话 2021-01-24 08:47

I have a sheet where we track department metrics in Google Sheets. I am trying to get it to email when a metric changes. I am using counta (in range P2) to monitor if a new me

相关标签:
2条回答
  • 2021-01-24 09:23

    Dave Lalande. Take a look at this code.

    function getTimeEditRange(Range){
      return YourFunction(Range);
    }
    

    If the value is the same, then the event will not happen.

    Best regards!

    0 讨论(0)
  • 2021-01-24 09:33

    Cells that change because of a formula do not qualify as an 'edit' to trigger the onEdit function. You should either monitor the source cell(s) (if they are edited manually) or the second alternative is to have a function running under a trigger that runs every minute (or whatever frequency you like) and send out the email. The function you've written looks good to be run under a trigger.

    0 讨论(0)
提交回复
热议问题