Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 661
Default Find a cell's content in another cell but only as whole word(s)

cell text
a1 adam takes a walk
b1 dam take
b2 adam takes

What should I use in c1 and c2 to determine that b2 is within a1 as whole
words(TRUE) but b1 is not within a1 as whole words(FALSE)?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default Find a cell's content in another cell but only as whole word(s)

Hi Paul

I haven't done exhaustive testing, but this seems to return the result you
want
=IF(ISERROR(EXACT(FIND(B2&" ",$B$1),FIND($B$1,$B$1))),FALSE,TRUE)
--
Regards
Roger Govier

"Paul" wrote in message
...
cell text
a1 adam takes a walk
b1 dam take
b2 adam takes

What should I use in c1 and c2 to determine that b2 is within a1 as whole
words(TRUE) but b1 is not within a1 as whole words(FALSE)?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Find a cell's content in another cell but only as whole word(s)

Hi,

Try this

IF(OR(ISNUMBER(SEARCH(B1&"
",$A$1,1)),ISNUMBER(SEARCH(B1,$A$1,1)))=FALSE,"FAL SE","TRUE")

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Paul" wrote in message
...
cell text
a1 adam takes a walk
b1 dam take
b2 adam takes

What should I use in c1 and c2 to determine that b2 is within a1 as whole
words(TRUE) but b1 is not within a1 as whole words(FALSE)?


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
Referencing an active cell's content from another sheet. emon Excel Worksheet Functions 2 November 12th 08 05:54 PM
Replacing Part of a Cell's Content mommy2kh Excel Worksheet Functions 5 July 13th 08 05:42 PM
Need to refer to a cell's address, not it's content... aduroche Excel Discussion (Misc queries) 3 October 18th 07 08:54 PM
Printing cell's content larger than cell width Neophyte New Users to Excel 1 October 14th 07 09:20 PM
How do you copy a cell's content verses it's formula? Tammy Excel Discussion (Misc queries) 1 March 2nd 05 06:30 PM


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

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

About Us

"It's about Microsoft Excel"