Hi guys,
I am hoping one of you wizards can help me out?
I am having trouble with the COUNTIF command! I work in a school and am trying to create stats on behaviour incidents that happen in school. I am trying to generate a breakdown to analyse by gender, and age but have this for each month.
I have 3 columns that I am working with: ENDER, YEAR GROUP and DATE.
The Year Group is already validated data from a list on another worksheet defined as REGGP (short for Register groups).
The date is entered by the teacher to state when the incident occurred.
I have managed to generate number for each month to count the number of MALES and FEMALES using the following formula. For instance November:
=SUMPRODUCT(--(D3:D33="Female"),--(F3:F33>=--"2012-11-01"),--(F3:F33<=--"2012-11-30"))
This counts the number of females and displays a number for November. I have this for each month.
Now here is where I am stuck.....
I now want to identify the number of S1 (year 1), S2, S3, S4, S5, S6 pupils that have had a discipline issue for that month. But the formulae I am using always generate a 0! I am using office XP which may be half the problem.
I have tried the following:
but this counts all the S2 classes but I can't tell which S1 pupil was which month. Fine for an overall count though.
=SUMPRODUCT(--(E3:E33="=REGGP"),--(F3:F33>=--"2012-11-01"),--(F3:F33<=--"2012-11-30"))
I thought I could the definded name of my list but this didn't work either.
=SUMPRODUCT(--(E3:E33={"2A1","2A2","2D1","2D2","2M1","2M2"),--(F3:F33>=--"2012-11-01"),--(F3:F33<=--"2012-11-30"))
Instead of using the list I tried typing all S2 form classes but noting either.
But none of them are working?!?!?! Can anybody advise on how I need to tweak my syntax??? I'm sure it is my inexperience. This must be possible!
Many thanks!
Bookmarks