not sure exactly what you want, but this formula five you a count of the
cells in a1:a10 containing apple
=SUMPRODUCT(NOT(ISNA(SEARCH("apple",A1:A10,1)))*(N OT(ISBLANK(A1:A10)))*1)
maybe if(the above formula0,x,y) ?
--
duane
------------------------------------------------------------------------
duane's Profile:
http://www.excelforum.com/member.php...o&userid=11624
View this thread:
http://www.excelforum.com/showthread...hreadid=393304