×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

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

 Forum Search FAQs Links MVPs

## Sum Corresponding values

(OP)
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?

Example

Scott        1
Jon          2
Scott        3

Lookup "Scott" and return 3+1 = 4

Any help is greatly appreciated.
Replies continue below

### RE: Sum Corresponding values

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

TTFN

### 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

Morten

### 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.
:)
Farzad

### RE: Sum Corresponding values

Going with IRstuff's suggestion of using SUMIF, if your entries are in cells A1:A3, and B1:B3 then use

=SUMIF(A1:A3,"Scott",B1:B3)

to get 4 for data in your post.

Yogi Anand, D.Eng, P.E.
ANAND Enterprises
Computers-Education-Engg-Networking
www.anandent.com yogia@hotmail.com
www.oakland.edu/~anand anand@oakland.edu

#### 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:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!

Already a member? Close this window and log in.