I have created the following table in excel
Month/Yr Status
May-07 1
May-07 2
May-07 1
May-07 1
Jun-07 2
Jun-07 1
Jun-07 1
I now want to summarise this information in the following table
Month/Yr No. of "1" No. of "2"
May-07 x y
Jun-07 v z
I know that it is possible to count the number of cells which fulfil certain criteria by using the COUNTIF function. However I want to count the cells that have the entry "1" that are in May-07, then the cells that have the entry "1" that are in Jun-07. I currently have just used a COUNTIF function for each month (set the countif for each entry in the second table to look at specific cells), but I am trying to figure out how to just set one formula with two criteria (all cell in May that have the number "1") Of course the actual spreadsheet that I am using is much more complicated with hundreds of entries - this is just a simplified version of the problem.
Any suggestions?
Thanks!
Bookmarks