Only downside to that is that blanks will count as zeroes.
You could use an array formula:
=average(if(a1:a5="whatever",b1:b5))
enter with control+shift+enter
--
duane
------------------------------------------------------------------------
duane's Profile:
http://www.excelforum.com/member.php...o&userid=11624
View this thread:
http://www.excelforum.com/showthread...hreadid=544914