#1
|
|||
|
|||
Find matching values between 2 docs
I have 2 different Word files include different words, phrases, etc.
Some are separated in comma, some are separated in different punctuation. How do I find matching words that appear in both documents? |
#2
|
|||
|
|||
Any Help
Guys, any help please?
|
#3
|
|||
|
|||
So they're totally unrelated documents, and you want a list of every word that appears in both?
IMO, strip the punctuation(find and replace to turn periods into nothing, commas into nothing, etc.), copy it into Excel, tell it to treat it as space-delimited text(so that every word will be in a separate cell) with document 1 in sheet 1 and document 2 in sheet 2. I'm assuming the text will all be vertical, so from A1 to A9999(or whatever). Then put the following formula in cell B1 of worksheet 1, and copy it down to the bottom: =IF(ISERROR(VLOOKUP(A1, 'Sheet2'!$A$1:$A$9999, 1, FALSE), "", A1)) Column B will then be a list of every word that appears in both. (To explain the Excel a bit, the VLOOKUP finds the text of that word on the second sheet, and the ISERROR strips out the errors you'll get when it doesn't find them, leaving only the text of the duplicates) Alternately, there may be a Web utility that'll do it more easily. |
#4
|
||||
|
||||
What constitutes a 'match'? The mere occurrence of the same word in entirely different locations in the documents? If not, what are the criteria?
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Tags |
matching values |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Find paragraph matching an expression in Word and exporting to Excel spreadsheet | ballpoint | Word VBA | 23 | 03-23-2018 02:04 PM |
Matching the values in two columns A and B and to see if there are common values in both the columns | Asadmir27 | Excel | 8 | 12-29-2016 12:06 AM |
Find matching criterior in sheet 1 and copy to Sheet 2 | Auto | Excel Programming | 3 | 03-19-2016 01:41 PM |
Formula/function to return column names for matching values | GiJoe81 | Excel | 1 | 06-27-2015 12:13 AM |
find 2 values i a table to find the right prise | Vibov | Excel | 1 | 01-11-2015 07:25 AM |