ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   If Function combined with OR and LEFT (https://www.excelbanter.com/excel-worksheet-functions/205264-if-function-combined-left.html)

JRJ

If Function combined with OR and LEFT
 
Hi all,
I am trying to create a formula that returns a value based on certain
criteria in a cell.
Here is my data:
Must Contain 1
Must Contain 2
Contain 1
Compliant

I want to the formula to return 1 if the cell contains the word "Must" or
the word "Compliant". Any other data would return a 0.
Is there a way to do that?
Thanks for the help.

Thomas [PBD]

If Function combined with OR and LEFT
 
JRJ,

Could you provide an example of the entries? Including Column Letters, and
data entered?

--
--Thomas [PBD]
Working hard to make working easy.
Answered your question? Click ''''Yes'''' below.


"JRJ" wrote:

Hi all,
I am trying to create a formula that returns a value based on certain
criteria in a cell.
Here is my data:
Must Contain 1
Must Contain 2
Contain 1
Compliant

I want to the formula to return 1 if the cell contains the word "Must" or
the word "Compliant". Any other data would return a 0.
Is there a way to do that?
Thanks for the help.


T. Valko

If Function combined with OR and LEFT
 
Try this:

=--(SUM(COUNTIF(A1,{"must*","compliant"}))0)

--
Biff
Microsoft Excel MVP


"JRJ" wrote in message
...
Hi all,
I am trying to create a formula that returns a value based on certain
criteria in a cell.
Here is my data:
Must Contain 1
Must Contain 2
Contain 1
Compliant

I want to the formula to return 1 if the cell contains the word "Must" or
the word "Compliant". Any other data would return a 0.
Is there a way to do that?
Thanks for the help.




JRJ

If Function combined with OR and LEFT
 
This worked great.
Thanks for the help!

"T. Valko" wrote:

Try this:

=--(SUM(COUNTIF(A1,{"must*","compliant"}))0)

--
Biff
Microsoft Excel MVP


"JRJ" wrote in message
...
Hi all,
I am trying to create a formula that returns a value based on certain
criteria in a cell.
Here is my data:
Must Contain 1
Must Contain 2
Contain 1
Compliant

I want to the formula to return 1 if the cell contains the word "Must" or
the word "Compliant". Any other data would return a 0.
Is there a way to do that?
Thanks for the help.





T. Valko

If Function combined with OR and LEFT
 
You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"JRJ" wrote in message
...
This worked great.
Thanks for the help!

"T. Valko" wrote:

Try this:

=--(SUM(COUNTIF(A1,{"must*","compliant"}))0)

--
Biff
Microsoft Excel MVP


"JRJ" wrote in message
...
Hi all,
I am trying to create a formula that returns a value based on certain
criteria in a cell.
Here is my data:
Must Contain 1
Must Contain 2
Contain 1
Compliant

I want to the formula to return 1 if the cell contains the word "Must"
or
the word "Compliant". Any other data would return a 0.
Is there a way to do that?
Thanks for the help.








All times are GMT +1. The time now is 04:51 PM.

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