Multiple occurance lookup and add the values

Gavin Harrison

New Member
Joined
May 2, 2017
Messages
34
Hi.

Ive tried a couple of formulas to do the below, but don't seem to be able to get one to work. Hoping somebody can help me.

Essentially, I have a column with names (lets say column A) and in column B numbers.

The column with names will have multiple occurances of the same name but may have different numbers next to it.

Essentially I will have a list of the possible names that will occur in column A and next to each name a total of the numbers next to each occurrence of their name.

For Example:

[TABLE="width: 500"]
<tbody>[TR]
[TD]John[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]Tom
[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]Barbara[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Tom[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]Totals[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]18[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Book1
AB
1John10
2Tom5
3John8
4Barbara3
5Tom6
6Totals
7John18
Sheet2
Cell Formulas
RangeFormula
B7=SUMIF(A1:A5,A7,B1:B5)
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

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