rockdrigotoca
New Member
- Joined
- Aug 24, 2010
- Messages
- 23
Hello everyone!
I need your help creating a macro that will help me summarize the amounts on each row, only when Name + Account coincide and then delete all the duplicated rows... can anyone help me please???
On the following example:
ColA ColB ColC Col D ColE
1Name Account Number Debt Address 1 Address 2
2Rodrigo 1234 £100.00 street 1 street 2
3John 2345 £150.00 street 3 street 4
4Smith 3456 £110.00 street 5 street 11
5James 4567 £120.00 street 6 street 12
6Alfred 5678 £130.00 street 7 street 13
7Rodrigo 1234 £100.00 street 1 street 2
8Rodrigo 1234 £100.00 street 1 street 2
9John 8888 £150.00 street 14 street 15
I need to create a new worksheet called Consolidated, that will have the overall debt of each person. If possible ,the macro needs to look at both Column A and Column B and review if there are any duplicates to add them up. In this case, Add rows 2+7+8 and paste only the whole first row into new worksheet, then row 3, then 4, etc., (in this case, row 9, John's account number is different so this should be pasted in a separate row in the new worksheet...) and the end result would look something like:
ColA ColB
1Name Account Number Overall Debt Address 1 Address 2
2Rodrigo 1234 £300.00 street 1 street 2
3John 2345 £150.00 street 3 street 4
4Smith 3456 £110.00 street 5 street 11
5James 4567 £120.00 street 6 street 12
6Alfred 5678 £130.00 street 7 street 13
7John 8888 £150.00 Street 14 Street 15
I know just a little of coding, can understand the logic behind it but don't know how to build something like this...
Can anyone help, please???
Kind regards!
Rod
I need your help creating a macro that will help me summarize the amounts on each row, only when Name + Account coincide and then delete all the duplicated rows... can anyone help me please???
On the following example:
ColA ColB ColC Col D ColE
1Name Account Number Debt Address 1 Address 2
2Rodrigo 1234 £100.00 street 1 street 2
3John 2345 £150.00 street 3 street 4
4Smith 3456 £110.00 street 5 street 11
5James 4567 £120.00 street 6 street 12
6Alfred 5678 £130.00 street 7 street 13
7Rodrigo 1234 £100.00 street 1 street 2
8Rodrigo 1234 £100.00 street 1 street 2
9John 8888 £150.00 street 14 street 15
I need to create a new worksheet called Consolidated, that will have the overall debt of each person. If possible ,the macro needs to look at both Column A and Column B and review if there are any duplicates to add them up. In this case, Add rows 2+7+8 and paste only the whole first row into new worksheet, then row 3, then 4, etc., (in this case, row 9, John's account number is different so this should be pasted in a separate row in the new worksheet...) and the end result would look something like:
ColA ColB
1Name Account Number Overall Debt Address 1 Address 2
2Rodrigo 1234 £300.00 street 1 street 2
3John 2345 £150.00 street 3 street 4
4Smith 3456 £110.00 street 5 street 11
5James 4567 £120.00 street 6 street 12
6Alfred 5678 £130.00 street 7 street 13
7John 8888 £150.00 Street 14 Street 15
I know just a little of coding, can understand the logic behind it but don't know how to build something like this...
Can anyone help, please???
Kind regards!
Rod