Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-23-2017, 11:58 PM
sam1234 sam1234 is offline Find matching values between 2 docs Windows 7 64bit Find matching values between 2 docs Office 2013
Novice
Find matching values between 2 docs
 
Join Date: Nov 2017
Posts: 2
sam1234 is on a distinguished road
Default 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?
Reply With Quote
  #2  
Old 11-25-2017, 03:31 AM
sam1234 sam1234 is offline Find matching values between 2 docs Windows 7 64bit Find matching values between 2 docs Office 2013
Novice
Find matching values between 2 docs
 
Join Date: Nov 2017
Posts: 2
sam1234 is on a distinguished road
Default Any Help

Guys, any help please?
Reply With Quote
  #3  
Old 11-27-2017, 06:49 AM
Alsadius Alsadius is offline Find matching values between 2 docs Windows 7 64bit Find matching values between 2 docs Office 2010 64bit
Novice
 
Join Date: Nov 2017
Posts: 25
Alsadius is on a distinguished road
Default

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.
Reply With Quote
  #4  
Old 11-27-2017, 04:05 PM
macropod's Avatar
macropod macropod is offline Find matching values between 2 docs Windows 7 64bit Find matching values between 2 docs Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by sam1234 View Post
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?
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]
Reply With Quote
Reply

Tags
matching values



Similar Threads
Thread Thread Starter Forum Replies Last Post
Find matching values between 2 docs Find paragraph matching an expression in Word and exporting to Excel spreadsheet ballpoint Word VBA 23 03-23-2018 02:04 PM
Find matching values between 2 docs 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

Other Forums: Access Forums

All times are GMT -7. The time now is 07:24 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft