I want to get an accumulating sum of rows in the balance column where, in this case, the account number is the same. For example,
[TABLE="width: 500"]
<tbody>[TR]
[TD]Day[/TD]
[TD]Account[/TD]
[TD]Dr[/TD]
[TD]Cr[/TD]
[TD]Balance[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1000[/TD]
[TD]100[/TD]
[TD]75[/TD]
[TD]? (25)[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1000[/TD]
[TD]500[/TD]
[TD]260[/TD]
[TD]? (265)[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]1150[/TD]
[TD]400[/TD]
[TD]100[/TD]
[TD]
<tbody>
</tbody>[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]1150[/TD]
[TD]800[/TD]
[TD]600[/TD]
[TD]
<tbody>
</tbody>[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]2000[/TD]
[TD]1000[/TD]
[TD]25[/TD]
[TD]
<tbody>
</tbody>[/TD]
[/TR]
</tbody>[/TABLE]
This must be an old chesnut, but I can't work it out.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Day[/TD]
[TD]Account[/TD]
[TD]Dr[/TD]
[TD]Cr[/TD]
[TD]Balance[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1000[/TD]
[TD]100[/TD]
[TD]75[/TD]
[TD]? (25)[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]1000[/TD]
[TD]500[/TD]
[TD]260[/TD]
[TD]? (265)[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]1150[/TD]
[TD]400[/TD]
[TD]100[/TD]
[TD]
? (300) |
<tbody>
</tbody>
[/TR]
[TR]
[TD]5[/TD]
[TD]1150[/TD]
[TD]800[/TD]
[TD]600[/TD]
[TD]
? (500) |
<tbody>
</tbody>
[/TR]
[TR]
[TD]5[/TD]
[TD]2000[/TD]
[TD]1000[/TD]
[TD]25[/TD]
[TD]
? (975) |
<tbody>
</tbody>
[/TR]
</tbody>[/TABLE]
This must be an old chesnut, but I can't work it out.