Hi guys
This is a bit too complex for me and I’m not too sure if it’spossible using excel.
I have 3 columns I want to compare
Column A = Clients
Column G = Amounts
Column N = Case ID
So let’s say
Client | Amount | Case ID
Mike | 50|123
John | -50 |123
Mike | 50 |123
Mike | -50 |123
John | 20 |456
John | -20 |456
Mike| -20 |456
I want the macro to:
Client | Amount | Case ID
Mike | 50|123
John | -50 |123
I’d really appreciate it if someone could help me write a macro to do this, please use Column A, G and N as stated above.
Thank you
This is a bit too complex for me and I’m not too sure if it’spossible using excel.
I have 3 columns I want to compare
Column A = Clients
Column G = Amounts
Column N = Case ID
So let’s say
Client | Amount | Case ID
Mike | 50|123
John | -50 |123
Mike | 50 |123
Mike | -50 |123
John | 20 |456
John | -20 |456
Mike| -20 |456
I want the macro to:
- Find debits and credits that match with the sameclient and case ID e.g. Mike has go a debit and a credit for 50.00 and john hasgot a credit and debit for 20.00 under the same case ID (Macro is to deletethese transactions (Row))
- Remove any transactions that don’t have an contra, e.g. once matchinghas been deleted Mike will be left with a credit for 20.00 and the case ID andamount doesn’t match any other transactions (I need this to be deleted)
- Then I should be left with debits and credits thatmatch for different clients for example John has a credit for 50 and mike has adebit for 50 under the same case ID, so I should be left with:
Client | Amount | Case ID
Mike | 50|123
John | -50 |123
I’d really appreciate it if someone could help me write a macro to do this, please use Column A, G and N as stated above.
Thank you
Last edited: