The way to combine and add columns based on its value?

Copper Contributor

Hello,
hope you are doing great today!

I'm looking for a way to merge a couple of thousands of rows - 50-100k/document. If the name (A1) is the same, then merge it with all other rows with that name and then add all of the values in B1 of those rows. So basically (see the image), start with the yellow sheet and end up with the green one.

Excel.png

4 Replies

@vitekprchal 

Did you try PivotTable?

 

Update:

Sorry.  I forgot you have many documents.  PivotTable may not suit your needs.

@Willy Lau  Hey, Thank you for the reply. Yep, pivot table will be too clunky for 50-100k rows.

Rather considering an automated process to compile the files as I need.

I already tried this: https://www.extendoffice.com/ , but it took 15 minutes to compile 1000 rows; so I think its very GPU/CPU heavy.

@vitekprchal Sounds like something for PowerQuery. Connect to the data in the left table. Group by Name, Sum by Value. Shouldn't take too much time.