Adding cell values in one column based on the values in another column

excelnow

Board Regular
Joined
Nov 17, 2009
Messages
106
I have two columns in my Excel sheet. Column A stores names, column B stores numbers related to those names. Think about it as a score log for the people in column A.

Name | Points
John 5
Adam 3
David 12
John 4
Mark 4
Adam 6
Adam 2

What I want to achieve is to add all the scores of each person as follows (possibly by outputting the result on columns C and D):

Name | Total Points
John 9
Adam 11
David 12
Mark 4

Is this possible?

Thanks for any ideas.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Use sumif(). Assuming your data is in colA and colB:

C2: =sumif(A:A,"="a1,B:B) <-drop down.. If you have a list of all names you can do it a bit differently. Look up "excel magic tricks" on youtube, around magic trick #916 or 917 they show you how to make dynamic lists, so you could pull all distinct names. Hope this helps.
 
Upvote 0
Thanks for the tip. Here is what I did:

I have names in A, numbers in B, unique names (removed duplicates) in C, and in column D I have this function "=SUMIF(A:A;C:C;B:B )" and it worked as I wanted.
 
Upvote 0

Forum statistics

Threads
1,203,487
Messages
6,055,713
Members
444,810
Latest member
ExcelMuch

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