Try the sumif function.
--
tobriant
------------------------------------------------------------------------
tobriant's Profile:
http://www.excelforum.com/member.php...o&userid=25155
View this thread:
http://www.excelforum.com/showthread...hreadid=476980