ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   IF command (https://www.excelbanter.com/excel-worksheet-functions/213079-if-command.html)

JRD

IF command
 
I want to use the IF command as follows:

=IF(A1="*complication*", 1,0)

so that if A1 contains "No complication" it would return the answer 1

However it is not working

Does anyone know why?

Thanks

JD

Teethless mama

IF command
 
=COUNTIF(A1,"*complication*")


"JRD" wrote:

I want to use the IF command as follows:

=IF(A1="*complication*", 1,0)

so that if A1 contains "No complication" it would return the answer 1

However it is not working

Does anyone know why?

Thanks

JD


xlm

IF command
 

The formula provided doesn't seem to work,
if in A1 contains "No complication", then the result expected is 1,
but the formula give a 0.
the same goes if "no complicates", the expected result should be 0,
but yours give a 1

what will be the expected result if A1 contain "lesscomplications"

HTH

--

Thank You

cheers,

========================
please click the Yes button if this help
========================







"Teethless mama" wrote:

=COUNTIF(A1,"*complication*")


"JRD" wrote:

I want to use the IF command as follows:

=IF(A1="*complication*", 1,0)

so that if A1 contains "No complication" it would return the answer 1

However it is not working

Does anyone know why?

Thanks

JD


xlm

IF command
 
try this formula

=IF(ISERROR(SEARCH("COMPLICATION*",A2)*0),0,1)

HTH
--

Thank You

cheers,

========================
please click the Yes button if this help
========================






"JRD" wrote:

I want to use the IF command as follows:

=IF(A1="*complication*", 1,0)

so that if A1 contains "No complication" it would return the answer 1

However it is not working

Does anyone know why?

Thanks

JD


xlm

IF command
 
TM

my apology, your formula provided is working fine. I didn't check the cell's
reference.


--

Thank You

cheers,

========================
please click the Yes button if this help






"Teethless mama" wrote:

=COUNTIF(A1,"*complication*")


"JRD" wrote:

I want to use the IF command as follows:

=IF(A1="*complication*", 1,0)

so that if A1 contains "No complication" it would return the answer 1

However it is not working

Does anyone know why?

Thanks

JD



All times are GMT +1. The time now is 01:19 AM.

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