How do I count the number of rows that meet multiple conditions?
What I need is a formula to tell me how many people named "James" were born before 1970. So for example if my first table contains two columns such as this:
James 1964
Jonathan 1970
James 1969
Frank 1984
Bill 1990
James 1982
The formula needs to return the number 2 since there are two people named James in this table that were born before 1970.
The search values of "James" and "1970" in my case are values in another table, two columns wide, like this:
James 1970
Bill 1964
so in this table I want a third column to be calculated by adding up the number of rows in the first table that meet these conditions.
Can this be done? I've studied the functions available in Numbers including HLOOKUP and MATCH. I can't seem to find a way to make this work. Maybe this could be done if there was a function that could return multiple rows, but as far as I can see functions can return only single scalar values.
MacBook Air, OS X Mountain Lion (10.8.1)