Excel/Count IF (i think)
Expert: Miguel Zapico - 10/29/2009
QuestionI 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
AnswerIn 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