Adding together rows
Hello
I am looking for an elegant (not brute-force) solution to this problem.
There are a number of rows with values let us say
Row 1 4
Row 2 5
Row 3 6
Row 4 7
What I need to be able to do (presumably with a loop) is for each row to add together the values of all the other rows so the answer will be:
Row 1 18
Row 2 17
Row 3 16
Row 4 15
What code will do this?
Thank you.
Hello
I am looking for an elegant (not brute-force) solution to this problem.
There are a number of rows with values let us say
Row 1 4
Row 2 5
Row 3 6
Row 4 7
What I need to be able to do (presumably with a loop) is for each row to add together the values of all the other rows so the answer will be:
Row 1 18
Row 2 17
Row 3 16
Row 4 15
What code will do this?
Thank you.