Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default Function for "Contains"

Hi all,

Hopefully someone can tell me what function I should use to determins
whether a cell contains the text "(FX)" to be used in an IF statement. E.g.

In cell A1 I have "ABC Corporation (FX)", in cell A2 I have "ABC
Corporation" and in Cell A3 I have "ABC (FX) Corporation". In cells B1 to
B3 I want a formula that returns TRUE in B1 and B3 and FALSE in B2.

Thanks in advance.

Cheers,

Andrew


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default Function for "Contains"

Perfect Mike - Thanks a million!
"Mike H" wrote in message
...
Hi,

In B1 and drag down

=NOT(ISERROR(SEARCH("FX",A1)))

Mike

"Andrew Mackenzie" wrote:

Hi all,

Hopefully someone can tell me what function I should use to determins
whether a cell contains the text "(FX)" to be used in an IF statement.

E.g.

In cell A1 I have "ABC Corporation (FX)", in cell A2 I have "ABC
Corporation" and in Cell A3 I have "ABC (FX) Corporation". In cells B1

to
B3 I want a formula that returns TRUE in B1 and B3 and FALSE in B2.

Thanks in advance.

Cheers,

Andrew





  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Function for "Contains"

Hi,

In B1 and drag down

=NOT(ISERROR(SEARCH("FX",A1)))

Mike

"Andrew Mackenzie" wrote:

Hi all,

Hopefully someone can tell me what function I should use to determins
whether a cell contains the text "(FX)" to be used in an IF statement. E.g.

In cell A1 I have "ABC Corporation (FX)", in cell A2 I have "ABC
Corporation" and in Cell A3 I have "ABC (FX) Corporation". In cells B1 to
B3 I want a formula that returns TRUE in B1 and B3 and FALSE in B2.

Thanks in advance.

Cheers,

Andrew



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Function for "Contains"

Did you want to check for parenthesis as well

=NOT(ISERROR(SEARCH("(FX)",A1)))

Mike

"Mike H" wrote:

Hi,

In B1 and drag down

=NOT(ISERROR(SEARCH("FX",A1)))

Mike

"Andrew Mackenzie" wrote:

Hi all,

Hopefully someone can tell me what function I should use to determins
whether a cell contains the text "(FX)" to be used in an IF statement. E.g.

In cell A1 I have "ABC Corporation (FX)", in cell A2 I have "ABC
Corporation" and in Cell A3 I have "ABC (FX) Corporation". In cells B1 to
B3 I want a formula that returns TRUE in B1 and B3 and FALSE in B2.

Thanks in advance.

Cheers,

Andrew



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Function for "Contains"

and another

=ISNUMBER(SEARCH("(FX)",A1))

Mike

"Mike H" wrote:

Did you want to check for parenthesis as well

=NOT(ISERROR(SEARCH("(FX)",A1)))

Mike

"Mike H" wrote:

Hi,

In B1 and drag down

=NOT(ISERROR(SEARCH("FX",A1)))

Mike

"Andrew Mackenzie" wrote:

Hi all,

Hopefully someone can tell me what function I should use to determins
whether a cell contains the text "(FX)" to be used in an IF statement. E.g.

In cell A1 I have "ABC Corporation (FX)", in cell A2 I have "ABC
Corporation" and in Cell A3 I have "ABC (FX) Corporation". In cells B1 to
B3 I want a formula that returns TRUE in B1 and B3 and FALSE in B2.

Thanks in advance.

Cheers,

Andrew





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 896
Default Function for "Contains"

=IF(ISERROR(FIND("(FX)",A1,)),FALSE,TRUE)

then copy


On 6 Mar, 12:37, "Andrew Mackenzie" wrote:
Hi all,

Hopefully someone can tell me what function I should use to determins
whether a cell contains the text "(FX)" to be used in an IF statement. *E.g.

In cell A1 I have "ABC Corporation (FX)", in cell A2 I have "ABC
Corporation" and in Cell A3 I have "ABC (FX) Corporation". *In cells B1 to
B3 I want a formula that returns TRUE in B1 and B3 and FALSE in B2.

Thanks in advance.

Cheers,

Andrew


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
Text "comparison" operator for "contains" used in an "IF" Function Pawaso Excel Worksheet Functions 4 April 4th 23 11:35 AM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM


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

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"