Try something like this:
=SUMPRODUCT(--(TEXT($B$1:$B$50,"yyyymm")="198007"))
Does that help?
Regards,
Ron
--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile:
http://www.excelforum.com/member.php...o&userid=21419
View this thread:
http://www.excelforum.com/showthread...hreadid=394223