Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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. |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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. |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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. |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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. |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel Data Validation/Lookup function does function correcty | Excel Worksheet Functions | |||
copy of excel file not showing formulal/function in the function b | Excel Discussion (Misc queries) | |||
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) | Excel Worksheet Functions | |||
Offset function with nested match function not finding host ss. | Excel Worksheet Functions | |||
Emulate Index/Match combo function w/ VBA custom function | Excel Worksheet Functions |