Find Similar Words In An Excel Document

T

Troop

Hi!

I've checked a few threads on this matter, but they don't quite cover what
I'm after.
I have an Excel document with several columns full of words and numbers.

I have a Master column, which contains the Initial List. (A)

I want to compare all the remaining columns to A, but not to each other.

So that for example;

B,C,D,E,F,G all compare against A and highlight within themselves, any words
that match anything in A.
The Slave columns will continue to grow, so the Formula would be something
that can be copied and pasted to new Columns with minimal change. Preferably
something that checks the entire column, with no number limit, as the columns
are of varying length.

Any help would be really, really appreciated, and I hope I've explained
myself well enough!

Thanks!!
 
B

Bernard Liengme

In column A I have a list of fruits: apple, banana, pear, plum, .......
I highlighted all of B:G (I selected the column headings of these cells),
I then used Format, Conditional Formatting with
Formula Is: =COUNTIF($A:$A,B1) and I formatted for a green background
Note that the B1 will be changed by Excel in other columns
Now when there is a word in B:G that has a match in A, the cell with that
word has a green background

I took you to mean a single word or phrase match. So "apple pie" in B will
not go green just with "apple" somewhere in A. It would required "apple pie"
in A.

Tell us if is satisfactory
best wishes
 
T

Troop

Excellent!

Now is it possible to make it check for a partial match?
So that the word 'apple sauce' for example, would come as a match if only
the word 'apple' were to be listed in the A column?

Thanks!
 
B

Bernard Liengme

This will work if the 'slave' cell has the A-word as the first word
=COUNTIF($A:$A,IF(ISERROR(FIND(" ",B1)),B1,LEFT(B1,FIND(" ",B1)-1)))
Suggest you copy from here to the format dialog
So with 'apple" in A, both 'apple pie' and 'apple tart' will hit the mark
but 'sour apple' will not
 
T

Troop

Excellent, that works brilliantly.

Just one last question;
I've noticed that it's not finding similarities if the words are in
different capitalisations.
So it does not find a match between 'apple' and 'APPLE'.

This is a bit of a nightmare, as one entire column is in capital letters.
Is there a way to de-capitalise and turn it into standard grammar?
IE: Turn 'APPLE' into 'Apple' or 'APPLE PIE' into 'Apple Pie'?

Thanks, you've been a brilliant help!
 
T

Troop

Never mind, figured it out with =PROPER(A1) etcetc.

Thanks for your help Bernard, you've made my life a lot easier!!!
 
B

Bernard Liengme

This is not how my worksheet behaves but if PROPER works for you then great.
Have a good week.
 

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