Group duplicate entries and sum the columns

jdmc45

Board Regular
Joined
May 8, 2011
Messages
146
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have duplicate entries in Column A, for ID, so for instance

ColumnA - ID
12
12
13
14
15

As you can see there are duplicate entries. In Columns B and C I have prices, how would I go about grouping the duplicate rows and adding the values of the columns B and C of the resulting group?

Thanks so much for your help!
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
The advanced filter doesn't have this functionality, is there another way to do it, besides a pivot table? Thanks
 
Upvote 0
Run Advanced Filter in order to get a distinct list say in F.

Then invoke in G2:

=SUMIF($A$2:$A$6,$F2,B$2:B$6)

and copy across.
 
Upvote 0
Run Advanced Filter in order to get a distinct list say in F.

Then invoke in G2:

=SUMIF($A$2:$A$6,$F2,B$2:B$6)

and copy across.

That should work a treat, thankyou. Only thing is the list I want to do this to has values found using an ISERROR(INDEX(...)) type function, and when I try to use the advanced filter I get,

"The extract range has a missing or illegal field name"

If I copy and paste only the values of the list I can do the advanved filter however. I want the spreadsheet to be dynamic, why isn't the advanced filter working?
 
Upvote 0
My question is how to do this all dynamically, so it all flows through from inputs to here? If I put another dataset (in the same format) into my spreadsheet I need it to automatically produce this table, how would I do this?

Thanks in advance for your time
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,946
Latest member
JoseDavid

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top