You are here:

Excel/Count IF (i think)

Advertisement


Question
I am an Excel Beginner and stuck on a simple formula.  I am trying to to get a cell to count(+1) if, and only if, 2 conditions are met.  

IE....  

If A2:A200 ="Customer Name"   AND  G2:G200="closed"  then I want it to count up 1.  

Please Help, Eric

Answer
In Excel 2003, you can use the SUMPRODUCT formula for this, something like:
=SUMPRODUCT(--(A2:A200="Customer Name"),--(G2:G200="closed"))
You can add more conditions following the same schema.  The formula will return all the rows that fill all the conditions.

I think that in Excel 2007 you have the COUNTIFS formula, but I am not sure on its usage.

Hope this helps,
Miguel
About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here

Excel

All Answers


Answers by Expert:


Ask Experts

Volunteer


Miguel Zapico

Expertise

I am recycling to Excel 2010, so I am taking an extended leave while I work on keeping myself an expert on this matter.

Experience

I have worked with Excel for the past 12 years, in various environments.

Organizations
NYPC (New York PC users group)

Organizations
NYPC (New York PC users group)

Education/Credentials
MCSE in Windows NT

©2012 About.com, a part of The New York Times Company. All rights reserved.