FIND TEXT IN 1 CELL, COMPARE TO ANOTHER CELL

G

Guest

(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.
 
P

Pete_UK

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
 
G

Guest

The TRUE result is not False. With just an F in B9, the LEFT returns the F
and the SEARCH can surely find it.
 
G

Guest

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.
 
G

Guest

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top