For sake of discussion, assume you want the result stored in a worksheet named Target.
One easy way to accomplish this is with a macro. Select the top left cell of your data and invoke the macro. In the macro:
- Assign the selected cell to a range object named data. Assign the worksheet Target to a worksheet object named result. Assign result.range("A1") (or whatever starting position you like) to a range object named out.
- Loop:
- --Copy data.range("A1:D1") to out.range("A1:D1").
- --Add data.range("E1") and data.range("E2") and store the sum in out.range("E1").
- --Copy data.range("E1") to out.range("F1")
- --Copy data.range("D2") to out.range("G1")
- --Copy data.range(("E2") to out.range("H1")
- --Set data to data.offset(2,0)
- --Set out to out.offset(1,0)
- Until data is empty