Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 70
Default Comparing two spreadsheets

I have extracted data from two systems into two seperate excel spreadsheets.
they should be identical but are not. I would like to compare them to see
which spreadsheet is missing information.
Sheet 1 has - (a1) emp no (b1) hours (c1) date (d1) project id
Sheet 2 has the same columns but has 60 extra rows
I have sorted both sheets by emp no, date and project id
I used a pivot table to show that multiple emp nos do not have the same
hours over the two spreadsheets. I need to compare the information to ensure
(a1) emp no, (c1) date and (d1) project id are all equal and then determine
where I am missing rows of information or if the information there is
incorrect. Can anyone help me?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Comparing two spreadsheets

Barb,

In the sheet with the extra rows, try a formula like this in E2:

=SUMPRODUCT(($A$2:$A$2000=A2)*($B$2:$B$2000=B2)*($ C$2:$C$2000=C2)*($D$2:$D$2000=D2))

and copy down (I have assumed you have fewer than 2000 rows of data - that can be changed, of
course). If you get anything other than 1, there are duplicated values in your data table.

Then use a similar formula in each of your workbooks, referencing the other workbook: In Book2, use

=SUMPRODUCT(([Book1.xls]Sheet1!$A$2:$A$2000=A2)*([Book1.xls]Sheet1!$B$2:$B$2000=B2)*([Book1.xls]Sheet1!$C$2:$C$2000=C2)*([Book1.xls]Sheet1!$D$2:$D$2000=D2))

And in Book1, use
=SUMPRODUCT(([Book2.xls]Sheet1!$A$2:$A$2000=A2)*([Book2.xls]Sheet1!$B$2:$B$2000=B2)*([Book2.xls]Sheet1!$C$2:$C$2000=C2)*([Book2.xls]Sheet1!$D$2:$D$2000=D2))

If any of those formulas return 0, then that row's data doesn't appear in the other workbook

HTH,
Bernie
MS Excel MVP


"barb" wrote in message
...
I have extracted data from two systems into two seperate excel spreadsheets.
they should be identical but are not. I would like to compare them to see
which spreadsheet is missing information.
Sheet 1 has - (a1) emp no (b1) hours (c1) date (d1) project id
Sheet 2 has the same columns but has 60 extra rows
I have sorted both sheets by emp no, date and project id
I used a pivot table to show that multiple emp nos do not have the same
hours over the two spreadsheets. I need to compare the information to ensure
(a1) emp no, (c1) date and (d1) project id are all equal and then determine
where I am missing rows of information or if the information there is
incorrect. Can anyone help me?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 70
Default Comparing two spreadsheets

Thank you - it worked perfectly.
barb

"Bernie Deitrick" wrote:

Barb,

In the sheet with the extra rows, try a formula like this in E2:

=SUMPRODUCT(($A$2:$A$2000=A2)*($B$2:$B$2000=B2)*($ C$2:$C$2000=C2)*($D$2:$D$2000=D2))

and copy down (I have assumed you have fewer than 2000 rows of data - that can be changed, of
course). If you get anything other than 1, there are duplicated values in your data table.

Then use a similar formula in each of your workbooks, referencing the other workbook: In Book2, use

=SUMPRODUCT(([Book1.xls]Sheet1!$A$2:$A$2000=A2)*([Book1.xls]Sheet1!$B$2:$B$2000=B2)*([Book1.xls]Sheet1!$C$2:$C$2000=C2)*([Book1.xls]Sheet1!$D$2:$D$2000=D2))

And in Book1, use
=SUMPRODUCT(([Book2.xls]Sheet1!$A$2:$A$2000=A2)*([Book2.xls]Sheet1!$B$2:$B$2000=B2)*([Book2.xls]Sheet1!$C$2:$C$2000=C2)*([Book2.xls]Sheet1!$D$2:$D$2000=D2))

If any of those formulas return 0, then that row's data doesn't appear in the other workbook

HTH,
Bernie
MS Excel MVP


"barb" wrote in message
...
I have extracted data from two systems into two seperate excel spreadsheets.
they should be identical but are not. I would like to compare them to see
which spreadsheet is missing information.
Sheet 1 has - (a1) emp no (b1) hours (c1) date (d1) project id
Sheet 2 has the same columns but has 60 extra rows
I have sorted both sheets by emp no, date and project id
I used a pivot table to show that multiple emp nos do not have the same
hours over the two spreadsheets. I need to compare the information to ensure
(a1) emp no, (c1) date and (d1) project id are all equal and then determine
where I am missing rows of information or if the information there is
incorrect. Can anyone help me?



.

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
COMPARING SPREADSHEETS Leon Excel Discussion (Misc queries) 3 October 1st 09 11:59 PM
comparing two spreadsheets Janis Excel Discussion (Misc queries) 2 July 17th 07 03:34 PM
Comparing spreadsheets VSExcel Excel Worksheet Functions 2 February 5th 07 11:01 PM
Comparing two spreadsheets Morten Excel Worksheet Functions 1 October 21st 05 02:30 PM
Please Help (Comparing Spreadsheets) Lostinall Excel Worksheet Functions 1 November 23rd 04 08:09 PM


All times are GMT +1. The time now is 09:10 PM.

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

About Us

"It's about Microsoft Excel"