Možno by elegantnejšie riešenie bola kontingenčná tabuľka (pivot table), ktorá ti umožňuje aj filtrovanie.