I'm no Excel wizard, but I'm pretty sure you can do what you want with a pivot table.
-skwire
yup, I am too sure it can be done easily, but I know nothing about pivot tables and their terminology
if not in excel, is there any other program that can do it? or maybe a good text editor with replace function or script?