Formula or Macro for comparing duplicates and creating a sum

Dkeels

New Member
Joined
Feb 2, 2019
Messages
1
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Number[/TD]
[TD]Amount[/TD]
[TD]Total[/TD]
[/TR]
[TR]
[TD]Brad Jones[/TD]
[TD]1234567[/TD]
[TD]35[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Brad Jones[/TD]
[TD]1234567[/TD]
[TD]19[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Brad Jones[/TD]
[TD]1234567[/TD]
[TD]10[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Joe Bob[/TD]
[TD]9999999[/TD]
[TD]55[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Steve Smith[/TD]
[TD]1111111[/TD]
[TD]60[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Steve Smith[/TD]
[TD]1111111[/TD]
[TD]40[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Hi,

I am looking for help to make a formula or macro for this spreadsheet. I am not great at excel compared to the other things I've seen on this site so be kind.
I need the total field to add any amounts in the amount field together if there are matches in the name column. So for example all of the amounts for Brad Jones are added into the Total field. There could be many different rows per person but would need them all to be added. There may also be some on the worksheet that have no matches.
Thanks for any help.

Dkeels
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Hi & welcome to MrExcel
How about
=SUMIF(A:A,A2,C:C)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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