Why not use a pivot table?