Assuming you have data in rows 2 to 100 use this formula in row 2 and
copy down
=SUMPRODUCT(--(A$2:A$100A2),--(B$2:B$100=B2))+1
--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile:
http://www.excelforum.com/member.php...o&userid=30486
View this thread:
http://www.excelforum.com/showthread...hreadid=532091