Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JRJ JRJ is offline
external usenet poster
 
Posts: 6
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 154
Default 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.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default 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.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JRJ JRJ is offline
external usenet poster
 
Posts: 6
Default 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.




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default 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.








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Left vs Left$ function Andy Excel Discussion (Misc queries) 5 May 6th 07 04:06 AM
VLOOKUP Function and data combined from 2 cells MsBeverlee Excel Worksheet Functions 2 March 11th 07 10:06 PM
vlookup combined with AND-function martho Excel Worksheet Functions 1 January 20th 06 12:49 PM
Combined VLOOKUP AND BETWEEN FUNCTION Louis Markowski Excel Worksheet Functions 3 October 13th 05 03:54 PM
vlookup / len function combined jamesg-fid Excel Discussion (Misc queries) 3 March 10th 05 03:27 PM


All times are GMT +1. The time now is 06:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"