?
Solved

Excel SUM with matching condition

Posted on 2012-03-12
2
Medium Priority
?
179 Views
Last Modified: 2012-03-22
I need to get a sum of rows where the "Country" column is equal to "China".   How do I do this?   "Country" is column AE.
0
Comment
Question by:saturation
[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
2 Comments
 
LVL 42

Accepted Solution

by:
dlmille earned 2000 total points
ID: 37712202
Assume Country - Column AE, and the range to sum is AF:

You can use SUMIF

=SUMIF(AE:AE,"China",AF:AF) ' put this in the cell where you want the result

If you know the bounds of the data, you can include them, e.g., Assuming data starts on row 2:

=SUMIF(AE$2:AE$100,"China",AF$2:AF$100)

would give you the sum where data is in rows 2-100

The syntax is:

=SUMIF(range,criteria,[sum_range])

Dave
0
 
LVL 14

Expert Comment

by:Zack Barresse
ID: 37713145
While Dave gave you the answer you're looking for, I'd like to probe a little more.  What version are you running?  How is your data structured?  You might be able to benefit from a PivotTable (probably THE best feature Excel has to offer - well, not including PowerPivot ;) ).  Just curious.

Regards,
Zack Barresse
0

Featured Post

Industry Leaders: 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 guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

777 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