Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Comparing strings in cells

Status
Not open for further replies.

elippe24

Programmer
Aug 6, 2013
1
US
I am trying to compare columns based on how similar the strings in each cell are. For example, I want to take two strings "I write bad code" "I want to write better code" and combine all of the words into a single list:
I
want
write
bad
code
to
better

and determine that they are 42% similar since "I" "write" and "code" appear in both strings.

Any suggestions how to do this?
 
hi,

use the Split function to break the strings into words.

write the words to individual cells in a column

use the Data > Remove Duplicates feature to get unique values.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top