Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Sum Corresponding values

Sum Corresponding values

Sum Corresponding values

Hello All,

I have a list of names in one column and several values in a second column.  I want to lookup all occurances of each name in column 1 and sum the corresponding values in column 2.  Can someone please help me with this?


Scott        1
Jon          2
Scott        3

Lookup "Scott" and return 3+1 = 4

Any help is greatly appreciated.

RE: Sum Corresponding values

Have you tried SUMIF?  It seems to be tailor-made for your application.


RE: Sum Corresponding values

You could also look at Pivot tables if you want an "automaic" sum of all your "labels".

In your example a pivot table would produc a result table looking something like this (you have a add a label in the row above name/values:

Sum of value    Name        
    Jon    Scott    Grand Total
Total    2    4    6

or the other way around:

Sum of value    
Name    Total
Jon    2
Scott    4
Grand Total    6

Its very easy to costumise and ideal for making summaries etc.

Best regards


RE: Sum Corresponding values

Dear MEM1,
There is a simple solution:
1- Use AutoFilter to filter the data on each name
2- Use the SUBTOTAL function to sum the corresponding data in second column (the AutoSum button automatically uses the SUBTOTAL function if used for AutoFiltered tables.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close