View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Covington Covington is offline
external usenet poster
 
Posts: 3
Default if function, how?

I get an error message that formula contains an error and CBA", with comma
is in black, how to fix?

"Niek Otten" wrote:

=IF(A1="ABC-CBA",(B1-C1)*2,B1-C1)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Covington" wrote in message
...
Hi,

Is there any possibility that Excel can recognize text and if it true,
than calculate?
For example:
Let's say in cell A1 is written ABC-CBA,
in cell B1 is written 100
in cell C1 is written 40
So I need that it from B1 minus C1 and if A1 is = ABC-CBA that the result
from B1-C1 what is 60 in this example multiply by let's say 2, if A1 not
equal to ABC-CBA that only from B1 minus C1

More details:
B1-C1=60 and if A1=ABC-CBA than = 120 if A1 not equal to ABC-CBA only
result
from B1-C1 what is 60

Thank you for any ideas.