Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Sheet Comparisons.

I have a 3 sheet file. Sheets 1 and 2 are exactly the same. There is an
SSN and an amount in each sheet. something similar to the following.

Ssn 123
Ssn 222
Ssn 222
Ssn 555
Ssn 333
Ssn 444
Ssn 666


I need sheet 3 to contain the SSNs and the amounts of the values where sheet
1 and sheet 2 are different. So if sheet 1 had an ssn of 123-45-6666 and an
amount of 1.23, and sheet two had the same ssn and an amount of 3.43, i
would need this ssn and amount populated in sheet 3. Any suggestions???

Thanks in advance.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Sheet Comparisons.

Here's an approach to frame up the comparisons ..

Assume SSNs running in A2 down, amounts in B2 down in both Sheet1/2

To compare Sheet1 with Sheet2
In Sheet1,
Put in C2:
=IF(ISNA(MATCH(A2,Sheet2!A:A,0)),"SSN_not_in_Sheet 2",
IF(INDEX(Sheet2!B:B,MATCH(A2,Sheet2!A:A,0))=B2,"OK ","Amt_doesn't_match"))
Copy C2 down to the last row of SSN data in col A.
Then use autofilter on col C to retrieve unmatched cases by category for
further action

Similarly ..
To compare Sheet2 with Sheet1
In Sheet2,
Put in C2:
=IF(ISNA(MATCH(A2,Sheet1!A:A,0)),"SSN_not_in_Sheet 1",
IF(INDEX(Sheet1!B:B,MATCH(A2,Sheet1!A:A,0))=B2,"OK ","Amt_doesn't_match"))
Copy C2 down to the last row of SSN data in col A
Use autofilter on col C to retrieve unmatched cases by category for further
action
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Jeff" wrote in message
news:mjmuj.5151$kD3.545@trnddc08...
I have a 3 sheet file. Sheets 1 and 2 are exactly the same. There is an
SSN and an amount in each sheet. something similar to the following.

Ssn 123
Ssn 222
Ssn 222
Ssn 555
Ssn 333
Ssn 444
Ssn 666


I need sheet 3 to contain the SSNs and the amounts of the values where
sheet 1 and sheet 2 are different. So if sheet 1 had an ssn of
123-45-6666 and an amount of 1.23, and sheet two had the same ssn and an
amount of 3.43, i would need this ssn and amount populated in sheet 3.
Any suggestions???

Thanks in advance.



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
Yr to Yr comparisons cisse_5 Excel Discussion (Misc queries) 7 May 15th 09 06:10 PM
Multiply IF AND OR comparisons Hannu Laine Excel Worksheet Functions 1 June 16th 07 10:14 PM
Pivot Chart/Sheet comparisons -- adding or subtracting sheets Perkgolf Excel Discussion (Misc queries) 0 April 23rd 07 04:02 AM
Spreadsheet Comparisons dah Excel Discussion (Misc queries) 4 August 4th 06 12:28 AM
Payroll sheet comparisons ben simpson Excel Discussion (Misc queries) 11 March 27th 06 07:37 PM


All times are GMT +1. The time now is 02:22 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"