=IF(A1=B1,"Z",IF(A1<B1,"Y","X"))
This should work
--
davesexcel
------------------------------------------------------------------------
davesexcel's Profile:
http://www.excelforum.com/member.php...o&userid=31708
View this thread:
http://www.excelforum.com/showthread...hreadid=522572