There are a number of options for advanced filtering in excel that you might consider:
Option 1 - Advanced Filters
Advanced filters give you the ability to request multiple criteria (this is what you need). You can also easily do this as many times as you want to generate final data sets using each filter. Here is a link to the extended filter section for Microsoft Excel 2010, which is almost identical here in 2007 . This would be a great place to start if you want to go beyond the simple use of basic formulas.
If you are following this route, follow the instructions on the site in terms of steps:

Option 2 - Summary Tables
Another option you can see here is to use Pivot tables. Pivot tables and pivot charts are simply phenomenal tools that I use at the workplace every day to do exactly what you are looking for.
Option 3 - Using Visual Basic
As a third option, you can try using visual base code to write a solution. This will give you perfect control, as you can precisely specify ranges for each of the conditions. Unfortunately, you will need to understand the VB code in order to use this solution. There are some excellent online resources that can help with this.
source share