ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   if function, how? (https://www.excelbanter.com/excel-worksheet-functions/241422-if-function-how.html)

Covington

if function, how?
 
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.




Niek Otten

if function, how?
 
=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.





Covington

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.






Jacob Skaria

if function, how?
 
Using a Mac? Check your system preferences . Try replacing commas with
semicolons

If this post helps click Yes
---------------
Jacob Skaria


"Covington" wrote:

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.






Bernard Liengme[_3_]

if function, how?
 
=(B1-C1)*(1+(A1="ABC-CBA"))

--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"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.






All times are GMT +1. The time now is 10:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com