P
Pearl
I have a list of data and I need to write a macro that would find rows which
contained duplicate information (except for the cells containing the
different quantities), combine them into one row entry with the total
quantity for all the duplicate rows and keep only one record. The list does
contain blank rows and can be quite lengthy with numerous variations of
information which is usually never the same from list to list.
What I have is:
A B1 6 53.25 37.25
B B1 8 34.00 45.75
A B1p 2 53.25 37.25
C GL1 20 34.00 45.75
A B1 14 53.25 37.25
A B1p 7 53.25 37.25
A GL1 10 34.00 45.75
B B1 100 34 45.75
A B1P 18 53.25 37.25
C GL1 5 34.00 45.75
B MP1 10 12.5 18.00
What I would like to have is:
A B1 20 53.25 37.25
A B1p 27 53.25 37.25
A GL1 10 34.00 45.75
B B1 108 34.00 45.75
B MP1 10 12.5 18.00
C GL1 25 34.00 45.75
How do I accomplish this with a macro?
contained duplicate information (except for the cells containing the
different quantities), combine them into one row entry with the total
quantity for all the duplicate rows and keep only one record. The list does
contain blank rows and can be quite lengthy with numerous variations of
information which is usually never the same from list to list.
What I have is:
A B1 6 53.25 37.25
B B1 8 34.00 45.75
A B1p 2 53.25 37.25
C GL1 20 34.00 45.75
A B1 14 53.25 37.25
A B1p 7 53.25 37.25
A GL1 10 34.00 45.75
B B1 100 34 45.75
A B1P 18 53.25 37.25
C GL1 5 34.00 45.75
B MP1 10 12.5 18.00
What I would like to have is:
A B1 20 53.25 37.25
A B1p 27 53.25 37.25
A GL1 10 34.00 45.75
B B1 108 34.00 45.75
B MP1 10 12.5 18.00
C GL1 25 34.00 45.75
How do I accomplish this with a macro?