Try this
=IF(B2=D1,2,IF(OR(A2=D1,C2=D1)<"",1,""))
--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile:
http://www.excelforum.com/member.php...o&userid=33833
View this thread:
http://www.excelforum.com/showthread...hreadid=561717