Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Compare two files and find records without matches

how do I Compare two tables and find records without matches in excel
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Compare two files and find records without matches

"meshell5" wrote:
how do I Compare two tables and find records without matches in excel


To keep things simple, copy over the other sheet into one of the 2 files
So now you have 2 sheets, eg: Sheet1, Sheet2 (assumed identical structure)

Checking Sheet2's col A against Sheet1's col A
In Sheet2,
Put in B2: =IF(A2="","",ISNUMBER(MATCH(A2,Sheet1!A:A,0)))
Copy down to the last row of data in col A. Col B flags the required records
w/o matches with FALSE. Apply autofilter on col B, filter in B1 for: FALSE.
Copy the filtered rows, paste special as values/formats in a new sheet

Repeat likewise in Sheet1 to check Sheet1's col A against Sheet2's col A
In Sheet1,
Put in B2, copy down: =IF(A2="","",ISNUMBER(MATCH(A2,Sheet2!A:A,0)))
Rest of steps similar.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default Compare two files and find records without matches

There are lots of ways of doing what you propose. I prefer this method,
which uses a simple macro:
Sub Compare2Shts()
For Each Cell In Worksheets("CompareSheet#1").UsedRange
If Cell.Value < Worksheets("CompareSheet#2").Range(Cell.Address) Then
Cell.Interior.ColorIndex = 3
End If
Next

For Each Cell In Worksheets("CompareSheet#2").UsedRange
If Cell.Value < Worksheets("CompareSheet#1").Range(Cell.Address) Then
Cell.Interior.ColorIndex = 3
End If
Next
End Sub

Hope that helps!!

Regards,
Ryan---


--
RyGuy


"Max" wrote:

"meshell5" wrote:
how do I Compare two tables and find records without matches in excel


To keep things simple, copy over the other sheet into one of the 2 files
So now you have 2 sheets, eg: Sheet1, Sheet2 (assumed identical structure)

Checking Sheet2's col A against Sheet1's col A
In Sheet2,
Put in B2: =IF(A2="","",ISNUMBER(MATCH(A2,Sheet1!A:A,0)))
Copy down to the last row of data in col A. Col B flags the required records
w/o matches with FALSE. Apply autofilter on col B, filter in B1 for: FALSE.
Copy the filtered rows, paste special as values/formats in a new sheet

Repeat likewise in Sheet1 to check Sheet1's col A against Sheet2's col A
In Sheet1,
Put in B2, copy down: =IF(A2="","",ISNUMBER(MATCH(A2,Sheet2!A:A,0)))
Rest of steps similar.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Maddening Dilemma - Compare each cell within column a to each cell in column b and find unique matches [email protected] Excel Worksheet Functions 66 May 1st 23 03:44 AM
Compare lists and highlight matches srain001 Excel Discussion (Misc queries) 3 March 2nd 07 06:23 PM
Compare lists and highlight matches srain001 Excel Discussion (Misc queries) 2 March 1st 07 02:01 PM
Compare columns, count matches adodson Excel Worksheet Functions 19 January 25th 07 02:34 AM
I need to compare to columns and indicate the matches in another IFIXPCS New Users to Excel 1 February 22nd 06 05:01 PM


All times are GMT +1. The time now is 05:21 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"