Moving totals of rows in sort mode

R

rz

I am to prepare the accounts ledger in my database of vouchers by
sorting on account code. When I drag the formula of totals of + debit
- credit column with the same coloumn total in immediately DISPLAYED
ROW ABOVE THE FORMULA CELL row, it do not show the desired result as
the cell refernce of DISPLAYED SORTED ROWS is not automatically linked
while dragging the formula downward. Any solution to make the ledger
totals on right side of every transaction (row).
Thanks
Riaz
 
B

Billy Liddel

rz said:
I am to prepare the accounts ledger in my database of vouchers by
sorting on account code. When I drag the formula of totals of + debit
- credit column with the same coloumn total in immediately DISPLAYED
ROW ABOVE THE FORMULA CELL row, it do not show the desired result as
the cell refernce of DISPLAYED SORTED ROWS is not automatically linked
while dragging the formula downward. Any solution to make the ledger
totals on right side of every transaction (row).

Riaz

You need an expanding range - for the following data:


Date Ac No# Debit Credit Amount
01/06/2008 a123 20 20
02/06/2008 b123 30 30
04/06/2008 c123 50 50
11/06/2008 b123 20 10
14/06/2008 a123 10 10
06/10/2008 c123 40 10

Enter the amount formula in E2

=SUMIF($B$2:B2,B2,$C$2:C2)-SUMIF($B$2:B2,B2,$D$2:D2)

and copy down.

Regards
Peter Atherton
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top