View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Fred Smith[_4_] Fred Smith[_4_] is offline
external usenet poster
 
Posts: 2,389
Default need to detect syntax in value

You need quotes around both strings. Use:
=if(b7="cxld","CXLD",c7-b7)

Regards,
Fred

"J.Parker" wrote in message
...
I'm trying to display Cxld in the cell for my sum when cxld is detected in
the cell not a numerical value. here is what i though would be the correct
formula =IF(B7=cxld,"CXLD",(C7-B7))