Hi
I want deleting any name contains the same amount in NAMES sheet after comparison with BAD DEBTS sheet.
should match column C in NAMES sheet with column D in BAD DEBTS and search for the same amount in AMOUNT column then should delete the whole row for the customer , if doesn't contain the same amount in NAMES sheet after comparison with BAD DEBTS sheet then just subtract amount in NAMES sheet from BAD DEBTS sheet( be careful will repeat customers in BAD DEBTS so should merge amount for duplicate customer before delete the row if equal the same amount or subtraction.also should re autonumbering in column A and sum the AMOUNT column.
the result should be in PR.
I would macro to deal about big data for each sheet.
result
I want deleting any name contains the same amount in NAMES sheet after comparison with BAD DEBTS sheet.
should match column C in NAMES sheet with column D in BAD DEBTS and search for the same amount in AMOUNT column then should delete the whole row for the customer , if doesn't contain the same amount in NAMES sheet after comparison with BAD DEBTS sheet then just subtract amount in NAMES sheet from BAD DEBTS sheet( be careful will repeat customers in BAD DEBTS so should merge amount for duplicate customer before delete the row if equal the same amount or subtraction.also should re autonumbering in column A and sum the AMOUNT column.
the result should be in PR.
I would macro to deal about big data for each sheet.
BAD DEBTS.xlsm | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | ITEM | DETAILS | NAMES | AMOUNT | ||
2 | 1 | OPENING BALANCE 08/01/22 | Ala | 1,200.00 | ||
3 | 2 | OPENING BALANCE 11/01/22 | Aln | 3,000.00 | ||
4 | 3 | OPENING BALANCE 17/01/22 | Alm | 1,500.00 | ||
5 | 4 | OPENING BALANCE 17/01/22 | Alaa | 1,200.00 | ||
6 | 5 | OPENING BALANCE 17/01/22 | Allia | 1,000.00 | ||
7 | 6 | OPENING BALANCE 17/01/22 | Aliaa | 1,100.00 | ||
8 | 7 | OPENING BALANCE 17/01/22 | Anila | 1,500.00 | ||
9 | 8 | OPENING BALANCE 17/01/22 | Aali | 1,000.00 | ||
10 | 9 | OPENING BALANCE 17/01/22 | Aml | 1,100.00 | ||
11 | TOTAL | 12,600.00 | ||||
NAMES |
BAD DEBTS.xlsm | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | ITEM | DATE | INVOICE NO | NAMES | AMOUNT | ||
2 | 1 | 01/01/2024 | INV AL-00 | Ala | 1,200.00 | ||
3 | 2 | 02/01/2024 | INV AL-01 | Aln | 500.00 | ||
4 | 3 | 03/01/2024 | INV AL-02 | Aln | 200.00 | ||
5 | 4 | 04/01/2024 | INV AL-03 | Alaa | 200.00 | ||
6 | 5 | 05/01/2024 | INV AL-04 | Allia | 200.00 | ||
7 | 6 | 06/01/2024 | INV AL-05 | Allia | 800.00 | ||
BAD DEBTS |
result
BAD DEBTS.xlsm | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | ITEM | DETAILS | NAMES | AMOUNT | ||
2 | 1 | OPENING BALANCE 11/01/22 | Aln | 2,300.00 | ||
3 | 2 | OPENING BALANCE 17/01/22 | Alm | 1,500.00 | ||
4 | 3 | OPENING BALANCE 17/01/22 | Alaa | 1,000.00 | ||
5 | 4 | OPENING BALANCE 17/01/22 | Aliaa | 1,100.00 | ||
6 | 5 | OPENING BALANCE 17/01/22 | Anila | 1,500.00 | ||
7 | 6 | OPENING BALANCE 17/01/22 | Aali | 1,000.00 | ||
8 | 7 | OPENING BALANCE 17/01/22 | Aml | 1,100.00 | ||
9 | TOTAL | 9,500.00 | ||||
RR |