Hi,
I would macro to deal with about 1000 names for each range into two sheets.
in RECEIVABLE sheet when contains minus value in BALANCE column then will delete it and brings rows contains positive values in BALANCE column from PAYPAL sheet and recalculate as in BALANCE column and in TOTAL row.
as to PAYPAL sheet when contains positive value in BALANCE column then will delete it and brings rows contains minus values in BALANCE column from RECEIVABLE sheet and recalculate as in BALANCE column and in TOTAL row. Also should delete row contains zero in BALANCE column for both sheets.
result
every time I will add new data and change every time for both sheets.
last thing if there is way to get rid of the formulas.
thanks in advanced.
I would macro to deal with about 1000 names for each range into two sheets.
in RECEIVABLE sheet when contains minus value in BALANCE column then will delete it and brings rows contains positive values in BALANCE column from PAYPAL sheet and recalculate as in BALANCE column and in TOTAL row.
as to PAYPAL sheet when contains positive value in BALANCE column then will delete it and brings rows contains minus values in BALANCE column from RECEIVABLE sheet and recalculate as in BALANCE column and in TOTAL row. Also should delete row contains zero in BALANCE column for both sheets.
MUSA1.xlsm | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | ITEM | NAME | DEBIT | CREDIT | BALANCE | ||
2 | 1 | AMUSSAN | 4,000.00 | 4,000.00 | |||
3 | 2 | ANISAMAN | 3,000.00 | 3,000.00 | 0.00 | ||
4 | 3 | ASSUMAN | 5,000.00 | 6,000.00 | -1,000.00 | ||
5 | 4 | MUSSA | 2,000.00 | 1,000.00 | 1,000.00 | ||
6 | 5 | MUSSAN | 3,000.00 | 3,000.00 | |||
7 | 6 | MUSSI | 1,300.00 | 6,000.00 | -4,700.00 | ||
8 | 7 | OSMAAN | 1,100.00 | 5,000.00 | -3,900.00 | ||
9 | TOTAL | 19,400.00 | 21,000.00 | -1,600.00 | |||
RECEIVABLE |
Cell Formulas | ||
---|---|---|
Range | Formula | |
E2:E8 | E2 | =C2-D2 |
C9:E9 | C9 | =SUM(C2:C8) |
MUSA1.xlsm | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | ITEM | NAME | DEBIT | CREDIT | BALANCE | ||
2 | 1 | AMEER | 7,000.00 | 3,000.00 | 4,000.00 | ||
3 | 2 | AMIR | 300.00 | -300.00 | |||
4 | 3 | ASIIF | 6,000.00 | 5,000.00 | 1,000.00 | ||
5 | 4 | AZIZ | 12,000.00 | -12,000.00 | |||
6 | 5 | SAFAR | 8,000.00 | 2,000.00 | 6,000.00 | ||
7 | 6 | SAMMER | 1,100.00 | 7,000.00 | -5,900.00 | ||
8 | 7 | SANDI | 7,000.00 | 6,000.00 | 1,000.00 | ||
9 | 8 | SANI | 15,000.00 | 6,000.00 | 9,000.00 | ||
10 | TOTAL | 44,100.00 | 41,300.00 | 2,800.00 | |||
PAYABLE |
Cell Formulas | ||
---|---|---|
Range | Formula | |
E2:E9 | E2 | =C2-D2 |
C10:E10 | C10 | =SUM(C2:C9) |
result
MUSA1.xlsm | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | ITEM | NAME | DEBIT | CREDIT | BALANCE | ||
2 | 1 | AMEER | 7,000.00 | 3,000.00 | 4,000.00 | ||
3 | 2 | AMUSSAN | 4,000.00 | 4,000.00 | |||
4 | 3 | ASIIF | 6,000.00 | 5,000.00 | 1,000.00 | ||
5 | 4 | MUSSA | 2,000.00 | 1,000.00 | 1,000.00 | ||
6 | 5 | MUSSAN | 3,000.00 | 3,000.00 | |||
7 | 6 | SAFAR | 8,000.00 | 2,000.00 | 6,000.00 | ||
8 | 7 | SANDI | 7,000.00 | 6,000.00 | 1,000.00 | ||
9 | 8 | SANI | 15,000.00 | 6,000.00 | 9,000.00 | ||
10 | TOTAL | 52,000.00 | 23,000.00 | 29,000.00 | |||
RECEIVABLE |
Cell Formulas | ||
---|---|---|
Range | Formula | |
E2:E9 | E2 | =C2-D2 |
C10:E10 | C10 | =SUM(C2:C9) |
MUSA1.xlsm | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | ITEM | NAME | DEBIT | CREDIT | BALANCE | ||
2 | 1 | AMIR | 300.00 | -300.00 | |||
3 | 2 | ASSUMAN | 5,000.00 | 6,000.00 | -1,000.00 | ||
4 | 3 | AZIZ | 12,000.00 | -12,000.00 | |||
5 | 4 | MUSSI | 1,300.00 | 6,000.00 | -4,700.00 | ||
6 | 5 | OSMAAN | 1,100.00 | 5,000.00 | -3,900.00 | ||
7 | 6 | SAMMER | 1,100.00 | 7,000.00 | -5,900.00 | ||
8 | TOTAL | 8,500.00 | 36,300.00 | -27,800.00 | |||
PAYABLE |
Cell Formulas | ||
---|---|---|
Range | Formula | |
E2:E7 | E2 | =C2-D2 |
C8:E8 | C8 | =SUM(C2:C7) |
every time I will add new data and change every time for both sheets.
last thing if there is way to get rid of the formulas.
thanks in advanced.
Last edited: