Skip to content

Instantly share code, notes, and snippets.

@raganmd
Last active April 9, 2020 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raganmd/e7f2da84ab7e8ec267b920d066674be5 to your computer and use it in GitHub Desktop.
Save raganmd/e7f2da84ab7e8ec267b920d066674be5 to your computer and use it in GitHub Desktop.
def onCellChange(dat, cells, prev):
for eachCell in cells:
if eachCell.col == 0:
if eachCell == 1:
targetRows = dat.row(eachCell.row)
sumOfRows = sum([int(val) for val in targetRows[1:]])
op('table2')[eachCell.row, 0] = sumOfRows
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment