Looking for a VBA script to merge data in columns A:D if they are duplicates and sum column E. See example.
Starting point
Sample 1.png
Final
Sample 2.png
Any help would be appreciated.
Thanks,
Met
Looking for a VBA script to merge data in columns A:D if they are duplicates and sum column E. See example.
Starting point
Sample 1.png
Final
Sample 2.png
Any help would be appreciated.
Thanks,
Met
As we do not have any data neither a rules explanation …
I apologize. See attached.
Thanks,
Met
How aboutPlease Login or Register to view this content.
Hi Metrazal,
See the attached where you can do a Pivot Table and change the "Design" of the table to show what you want. No formulas needed, simply a little changing of Pivot options. See the attached under your answer where I've done a Pivot.
Pivot Table instead of VBA.xlsx
One test is worth a thousand opinions.
Click the * Add Reputation below to say thanks.
Ok. In my large/non sample spreadsheet I get the following error:
Compile error:
Method or data member not found (First Index in 5th line of script is highlighted)
In the Sample spreadsheet I get the following error:
Run-time error 424
Object required (If Rng Is Nothing Then in eight line is highlighted)
Thanks,
Met
Try
Please Login or Register to view this content.
Does it work for you in this file
I was able to utilize Jindon's script to achieve the desired results. Thanks to everyone for the quick responses.
Thanks again,
Met
Fluff13:
Yours works as well. Thanks again for everything.
You are welcome and thanks for the rep.
Glad to help & thanks for the feedback
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks