matching texts in 2 columns

M

my_melody

Can I match texts in 2 columns (one column has a longer string than the other
column so let's say it should be able to match the first 5 characters) and
then highlight the ones that have no matches...
 
J

Jacob Skaria

Suppose in Col A you have the data..and
B1 enter a text mathcing with one of the entries in Col A

The below formula in C1 will check for the first 5 characters of B1 in ColA
and return "No match" if a match is not found. If a match is found formula
will return blank

=IF(ISERROR(MATCH(LEFT(B1,5) & "*",A:A,0)),"No Match","")
 

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