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

All Answers

Answers by Expert:


Ask Experts

Volunteer


Miguel Zapico

Expertise

I will try to answer any question that I can replicate in my current environment (I use Excel 2003 with Windows XP). This may include formula related questions on other Excel versions. Due to time limitations, I am not writing custom code to answer questions any more. Sorry for the inconvenience.

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

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