#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 103
Default Function needed?

I need to learn how to compare two spreadsheets in Excel to identify
differences between the two. For example, if I have one spreadsheet with a
list of staff and staff numbers, and a different spreadsheet listing staff
and staff numbers, I need to be able to compare the two to identify any
employees whose staff number differs between the two. I am a new user so I
do not know which function to try - someone said match???

Many thanks


--
Kind regards

Ann Shaw
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Function needed?

Suppose you have 2 unsaved workbooks. Book1 and Book2 .....(If the books are
saved modify the formula to include the extension as Book2.xls)

Contents of Book1 Sheet1 . Column C is the formula column..In cell C2 apply
the below formula and copy down as required

=IF(ISERROR(VLOOKUP(A2,[Book2]Sheet1!$A:$B,2,0)),"Number not found",
IF(VLOOKUP(A2,[Book2]Sheet1!$A:$B,2,0)<B2,"Mismatch","Same"))


Col A Col B Col C
Number Name Result
1001 Jack Same
1002 Annie Number not found
1003 John Same
1004 Sally Mismatch

Book2 Sheet1 contents
Col A Col B
Number Name
1001 Jack
1004 Annie
1003 John

--
Jacob


"Annie" wrote:

I need to learn how to compare two spreadsheets in Excel to identify
differences between the two. For example, if I have one spreadsheet with a
list of staff and staff numbers, and a different spreadsheet listing staff
and staff numbers, I need to be able to compare the two to identify any
employees whose staff number differs between the two. I am a new user so I
do not know which function to try - someone said match???

Many thanks


--
Kind regards

Ann Shaw

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
Help needed with a function - not sure which one? no-one-but-me[_2_] Excel Discussion (Misc queries) 1 June 10th 09 03:15 PM
Function needed fgwiii[_2_] Excel Worksheet Functions 3 September 16th 08 04:28 PM
function help needed hotelmasters Excel Worksheet Functions 4 June 14th 06 05:22 PM
Function or VBA Help Needed FireGeek822 Excel Worksheet Functions 4 October 31st 05 09:07 PM
Help needed with IF function Ed Excel Worksheet Functions 1 March 23rd 05 04:26 PM


All times are GMT +1. The time now is 03:04 AM.

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"