In such a case, you are better off using an IF statement in cell B2.
=IF(A1="andrew","white",IF(B1="andrew","black","") )
Probably if you give your real case, someone would be able to suggest
you the best appraoch.
Mangesh
--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile:
http://www.excelforum.com/member.php...o&userid=10470
View this thread:
http://www.excelforum.com/showthread...hreadid=376695