title: How to Update duplicate row in Google Script
body: <p><a href="https://i.stack.imgur.com/vrOuc.png" rel="nofollow noreferrer">TeamB</a> <a href="https://i.stack.imgur.com/YRQGJ.png" rel="nofollow noreferrer">TeamA</a> <a href="https://i.stack.imgur.com/sKq3N.png" rel="nofollow noreferrer">Master</a>
  i try copy data from master sheet to teams sheet split by key1 [it's work]
  but code for check key2 not work[update row for duplicate &amp; new row for non duplicate]</p>
  
  <p>Code: <a href="https://docs.google.com/document/d/1vqbwZqN4XLPmPhat0Jn4Vrg6POvlHfMiaIxfrYI4ajk/edit?usp=sharing" rel="nofollow noreferrer">https://docs.google.com/document/d/1vqbwZqN4XLPmPhat0Jn4Vrg6POvlHfMiaIxfrYI4ajk/edit?usp=sharing</a></p>