Hi
I've got a simple table of data
Just 4 columns and 3 rows (see the table below).
Cells A1, B1, C1 and D1 have the values 1, 2, 3, and 4, respectively.
Cells A2, B2, C2 and D2 have the values 1, 2, 3 and 2, respectively.
Cells A3, B3, C3 and D3 have the values 0, 1, 0 and 2, respectively.
Is there code that will add the value in row 3 to the value in row 1 IF the value in row 3 is NOT zero?
So in the example below, the value in cell B1 would become 3 ie 2 (in cell B1)+ 1(in cell B3).
And cell D1 would become 6 ie 4 in cell D1 + 2 in cell D3.
I've got a simple table of data
Just 4 columns and 3 rows (see the table below).
Cells A1, B1, C1 and D1 have the values 1, 2, 3, and 4, respectively.
Cells A2, B2, C2 and D2 have the values 1, 2, 3 and 2, respectively.
Cells A3, B3, C3 and D3 have the values 0, 1, 0 and 2, respectively.
Is there code that will add the value in row 3 to the value in row 1 IF the value in row 3 is NOT zero?
So in the example below, the value in cell B1 would become 3 ie 2 (in cell B1)+ 1(in cell B3).
And cell D1 would become 6 ie 4 in cell D1 + 2 in cell D3.
1 | 2 | 3 | 4 |
1 | 1 | 3 | 2 |
0 | 1 | 0 | 2 |