Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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. |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Left vs Left$ function | Excel Discussion (Misc queries) | |||
VLOOKUP Function and data combined from 2 cells | Excel Worksheet Functions | |||
vlookup combined with AND-function | Excel Worksheet Functions | |||
Combined VLOOKUP AND BETWEEN FUNCTION | Excel Worksheet Functions | |||
vlookup / len function combined | Excel Discussion (Misc queries) |