Hi, could somebody help me with a code for the following.
I have invoice numbers in column A and amounts in column B.
The problem i have is i might have duplicate invoice numbers in column A and different amounts in column B.
Is there a code i could use to reduce the duplicat entries to one entry with a sub total of all of those duplicate amounts.
E.G.
INV Amount
1234 500
1234 1000
1234 1000
Would change to one line of
INV Amount
1234 2500
In addition to that if the sub total is zero could the line be deleted?
I have invoice numbers in column A and amounts in column B.
The problem i have is i might have duplicate invoice numbers in column A and different amounts in column B.
Is there a code i could use to reduce the duplicat entries to one entry with a sub total of all of those duplicate amounts.
E.G.
INV Amount
1234 500
1234 1000
1234 1000
Would change to one line of
INV Amount
1234 2500
In addition to that if the sub total is zero could the line be deleted?