Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Looking for a 'Contains' Formula in Excel

I would like to use a 'contains' formula in excel which would return TRUE or
FALSE, however I can' t seem to find one..

Can anyone create a simple Function Procedure that I can use in excel which
would take two inputs, and compare them to see whether one string is
contained in the other and return TRUE or FALSE if there is a match back to
the spreadsheet?

Many thanks

Rich


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Looking for a 'Contains' Formula in Excel

I should add that it should be able to handle a formula something like
this..

=CONTAINS(OR(A1,A2,A3,A4),B1)

Where B1 is the reference cell, and the cells being checked are A1,A2,A3 etc

or alternatively

=OR(CONTAINS(A1,B1),CONTAINS(A2,B1)) etc
.....

"Rich" wrote in message
...
I would like to use a 'contains' formula in excel which would return TRUE
or FALSE, however I can' t seem to find one..

Can anyone create a simple Function Procedure that I can use in excel
which would take two inputs, and compare them to see whether one string is
contained in the other and return TRUE or FALSE if there is a match back
to the spreadsheet?

Many thanks

Rich



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Looking for a 'Contains' Formula in Excel

try functions:
FIND case sensitive
SEARCH case insensitive

alas.. as most excel functions.. instead of returning
a 0 if not found it returns Value#.. so wrap in if(iserror(),,)


--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Rich wrote :

I would like to use a 'contains' formula in excel which would return
TRUE or FALSE, however I can' t seem to find one..

Can anyone create a simple Function Procedure that I can use in excel
which would take two inputs, and compare them to see whether one
string is contained in the other and return TRUE or FALSE if there is
a match back to the spreadsheet?

Many thanks

Rich

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
When I enter a formula, Excel shows the formula not the results Pat Adams Excel Worksheet Functions 5 April 4th 23 11:18 AM
Excel 2002 Formula: Urgent Conditional Formula Required Right Away - if possible blue[_2_] Excel Discussion (Misc queries) 2 July 11th 07 06:08 PM
Build excel formula using field values as text in the formula val kilbane Excel Worksheet Functions 2 April 18th 07 01:52 PM
Excel 2002 formula displayed not value formula option not checked Dean Excel Worksheet Functions 1 February 28th 06 02:31 PM
i edit a formula (excel) then it displays formula not answer caiman Excel Discussion (Misc queries) 2 September 9th 05 02:09 AM


All times are GMT +1. The time now is 11:21 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"