Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 383
Default FIND TEXT IN 1 CELL, COMPARE TO ANOTHER CELL

(071029) FIND TEXT IN 1 CELL, COMPARE TO ANOTHER CELL

Hi, trying to compare text, e.g.:

$B$2: A0 B0 C0 D0 E0 F0
B9: F00

trying to see if the left 2 characters in B9 exist in B2, but when use just
"F" in B9, get a false positive/TRUE result, using:

=ISNUMBER(SEARCH(LEFT(B9,2),$B$2))

thanks.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default FIND TEXT IN 1 CELL, COMPARE TO ANOTHER CELL

You could check for B9 being two characters first:

=IF(LEN(B9)<2,"too few chars",ISNUMBER(SEARCH(LEFT(B9,2),$B$2)))

Hope this helps.

Pete

On Oct 29, 11:51 pm, nastech
wrote:
(071029) FIND TEXT IN 1 CELL, COMPARE TO ANOTHER CELL

Hi, trying to compare text, e.g.:

$B$2: A0 B0 C0 D0 E0 F0
B9: F00

trying to see if the left 2 characters in B9 exist in B2, but when use just
"F" in B9, get a false positive/TRUE result, using:

=ISNUMBER(SEARCH(LEFT(B9,2),$B$2))

thanks.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default FIND TEXT IN 1 CELL, COMPARE TO ANOTHER CELL

The TRUE result is not False. With just an F in B9, the LEFT returns the F
and the SEARCH can surely find it.
--
Gary''s Student - gsnu2007


"nastech" wrote:

(071029) FIND TEXT IN 1 CELL, COMPARE TO ANOTHER CELL

Hi, trying to compare text, e.g.:

$B$2: A0 B0 C0 D0 E0 F0
B9: F00

trying to see if the left 2 characters in B9 exist in B2, but when use just
"F" in B9, get a false positive/TRUE result, using:

=ISNUMBER(SEARCH(LEFT(B9,2),$B$2))

thanks.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 383
Default FIND TEXT IN 1 CELL, COMPARE TO ANOTHER CELL

OR(is false because it is not the consequence I am looking for..

"Gary''s Student" wrote:

The TRUE result is not False. With just an F in B9, the LEFT returns the F
and the SEARCH can surely find it.
--
Gary''s Student - gsnu2007


"nastech" wrote:

(071029) FIND TEXT IN 1 CELL, COMPARE TO ANOTHER CELL

Hi, trying to compare text, e.g.:

$B$2: A0 B0 C0 D0 E0 F0
B9: F00

trying to see if the left 2 characters in B9 exist in B2, but when use just
"F" in B9, get a false positive/TRUE result, using:

=ISNUMBER(SEARCH(LEFT(B9,2),$B$2))

thanks.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 383
Default FIND TEXT IN 1 CELL, COMPARE TO ANOTHER CELL

thanks, that should do it.

would recommend combination of commands in 2 or 3 letter abbreviations,
mnemonics.. e.g.: (isnumber(search could be: IS(LEFT(B9,2),$B$2)
but would allow inclusive / exclusive properties programmed in such as:
=IF(LEN(B9)<2,FALSE,ISNUMBER(SEARCH(LEFT(B9,2),$B$ 2)))

resources being what they are.


"Pete_UK" wrote:

You could check for B9 being two characters first:

=IF(LEN(B9)<2,"too few chars",ISNUMBER(SEARCH(LEFT(B9,2),$B$2)))

Hope this helps.

Pete

On Oct 29, 11:51 pm, nastech
wrote:
(071029) FIND TEXT IN 1 CELL, COMPARE TO ANOTHER CELL

Hi, trying to compare text, e.g.:

$B$2: A0 B0 C0 D0 E0 F0
B9: F00

trying to see if the left 2 characters in B9 exist in B2, but when use just
"F" in B9, get a false positive/TRUE result, using:

=ISNUMBER(SEARCH(LEFT(B9,2),$B$2))

thanks.






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 383
Default FIND TEXT IN 1 CELL, COMPARE TO ANOTHER CELL

thinking that zero "0" will return an "unquote" false positive. will check,
but seems like a tuff fix. thanks.

"Pete_UK" wrote:

You could check for B9 being two characters first:

=IF(LEN(B9)<2,"too few chars",ISNUMBER(SEARCH(LEFT(B9,2),$B$2)))

Hope this helps.

Pete

On Oct 29, 11:51 pm, nastech
wrote:
(071029) FIND TEXT IN 1 CELL, COMPARE TO ANOTHER CELL

Hi, trying to compare text, e.g.:

$B$2: A0 B0 C0 D0 E0 F0
B9: F00

trying to see if the left 2 characters in B9 exist in B2, but when use just
"F" in B9, get a false positive/TRUE result, using:

=ISNUMBER(SEARCH(LEFT(B9,2),$B$2))

thanks.




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default FIND TEXT IN 1 CELL, COMPARE TO ANOTHER CELL

Hi

Try
=ISNUMBER(FIND(LEFT(B9,2)&" ",$B$2&" "))

--
Regards
Roger Govier



"nastech" wrote in message
...
OR(is false because it is not the consequence I am looking for..

"Gary''s Student" wrote:

The TRUE result is not False. With just an F in B9, the LEFT returns the
F
and the SEARCH can surely find it.
--
Gary''s Student - gsnu2007


"nastech" wrote:

(071029) FIND TEXT IN 1 CELL, COMPARE TO ANOTHER CELL

Hi, trying to compare text, e.g.:

$B$2: A0 B0 C0 D0 E0 F0
B9: F00

trying to see if the left 2 characters in B9 exist in B2, but when use
just
"F" in B9, get a false positive/TRUE result, using:

=ISNUMBER(SEARCH(LEFT(B9,2),$B$2))

thanks.



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
Maddening Dilemma - Compare each cell within column a to each cell in column b and find unique matches [email protected] Excel Worksheet Functions 66 May 1st 23 03:44 AM
FIND / SEARCH text compare cell to string in 3rd cell nastech Excel Discussion (Misc queries) 0 October 29th 07 02:51 AM
Compare text string of a cell in Column A VS another cell in Colum Tan New Users to Excel 2 August 1st 07 09:45 AM
Compare text string of a cell in Column A VS another cell in Colum Tan Excel Discussion (Misc queries) 1 August 1st 07 09:03 AM
Compare text string of a cell in Column A VS another cell in Colum Tan Excel Worksheet Functions 1 August 1st 07 09:01 AM


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