[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 181
  • Last Modified:

Excel SUM with matching condition

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
saturation
Asked:
saturation
1 Solution
 
dlmilleCommented:
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
 
Zack BarresseCEOCommented:
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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now