Solved

How to sum cells with two criteria each from different columns?

Posted on 2014-12-30
1
82 Views
Last Modified: 2014-12-31
I have three columns.  The 1st and 3rd have text.  The 2nd has integers.
For example   |  Name  |    39  |   City  |
I need to add all the second columns that have a certain Name and a certain City.  If both values match, then add the number in column 2.

Any help?
0
Comment
Question by:Shaye Larsen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 50

Accepted Solution

by:
Ingeborg Hawighorst earned 500 total points
ID: 40525001
Hello,

Sumifs() will do what you need. Consider this:

shot
The formula in cell E2 sums all values where the Name is "Ben" and the City is "Rome"

=SUMIFS(B2:B7,A2:A7,"Ben",C2:C7,"Rome")

Adjust ranges to your requirements.

cheers, teylyn
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show you how to use shortcut menus in the Access run-time environment.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question