You are here:

Excel/excell count function

Advertisement


Question
I am trying to count how many times a "perm" staff member appears in a column but is either a "WM" (White Male) or "BEMM" (Black,Ethnic Minority Male)etc.
So I have a list with people names in Column A and column B has either "Perm" or "Interim" and Column C has either "WM" or "WF" or "BEMM" or "BEMF".
I have used COUNTIF to count the number of times each criteria appears in each column, but now I want to count how many Perm White Males, Perm White Females, etc.
COUNTIF doesn't seem to let me do this.
Is there another formula I need to use or have I inputted the formula wrong.
Please help.  Many thanks.

Answer
Glyn,
Sorry I clicked the wrong button.

To do this you need to use an array function. Chip Pearson has a great tutorial on array functions on his site http://www.cpearson.com/excel/ArrayFormulas.aspx. Your formula will end up looking something like: {=SUM((B1:B200="Perm")*(C1:C200="WM"))}. Look over Chip's site and let me know if you have any specific questions.

Best regards,
Chad Welch
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


Chad Welch

Expertise

I have a lot of experience with VBA; Sub procedures, functions etc. I am also very familiar with array formulas.

Experience

I've worked with Excel for several years. I've been answering questions on various groups and lists for a while.

Organizations
Brainbench MVP for MS Excel.

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