I am able to successfully get the value of the cell to the left (var td2), but I cannot seem to figure out or find a working example (or figure out on my own) of getting the cell above the current cell.

The function is to loop through the entire row and for each cell sum left of cell + cell above.