Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-10-2015, 06:26 AM
Kuannygohcheetatt Kuannygohcheetatt is offline Automatic find difference between two data Windows 7 32bit Automatic find difference between two data Office 2007
Novice
Automatic find difference between two data
 
Join Date: Feb 2015
Posts: 1
Kuannygohcheetatt is on a distinguished road
Default Automatic find difference between two data

Hey guys, my supervisor ask me to do one thing, he want me create a template where he only need to copy paste the first series of data in sheet 1 ,the second series of data in sheet two and when he click sheet three, it will display all data that are similar between sheet 1 and 2 and when he click sheet 4 it will display all data that are different. Any idea how to do it? I tried v look up but fail.

Sheet 1 data 1,2,3,4,5


Sheet 2 data 1,2,3,4,5,6,7
Sheet3 data 1,2,3,4,5
Sheet 4 data 6,7


Or another example
Sheet 1 cat, hat, dog
Sheet two cat ,pork, tom
Sheet three cat
Sheet 4 hat dog pork tom
Reply With Quote
  #2  
Old 02-10-2015, 08:36 AM
gebobs gebobs is offline Automatic find difference between two data Windows 7 64bit Automatic find difference between two data Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

Are there ever any repeats in either list? e.g. cat, hat, dog, cat

Is the complete set of terms known regardless if they are one, both, or neither list?
Reply With Quote
  #3  
Old 02-10-2015, 09:02 AM
gebobs gebobs is offline Automatic find difference between two data Windows 7 64bit Automatic find difference between two data Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

Here is a rather inelegant solution to kick off the discussion...

The "On both" tab checks each cell in sheet1 for matches in sheet2. Any cells without matches return a blank. You probably don't want blanks, but there are ways around that with a quick macro to copy, paste text, and sort. It might be useful too to show on which row of each sheet the each term is found.

The "On one" has two columns. The first checks each cell in sheet1 for no matches in sheet2. The second does the same for each cell in sheet2 with respect to sheet 1. Any cells with matches return a blank which, again, probably isn't what you want. You may not want the two columns either though this has the advantage of showing at a glance which sheet has the unique value. Again, the row identifier might be useful.

The end product I envision after the macro probably can be done via code but that's beyond my pay grade.
Attached Files
File Type: xlsx Compare.xlsx (11.7 KB, 10 views)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic find difference between two data Find MAX value in data containing '#N/A' Steve_B Excel 3 10-30-2013 12:02 AM
Automatic find difference between two data Word 2010 cannot find data source wsdb Mail Merge 7 09-05-2012 03:16 PM
Automatic find difference between two data Cannot find Outlook 2010 data files COLC Outlook 4 08-09-2012 06:02 AM
Automatic find difference between two data find data GPENTEZ Excel 3 01-07-2012 03:41 PM
Automatic find replace after selection in dropdown vsempoux Word 0 10-28-2009 08:45 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:24 AM.


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