Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 01-30-2010, 07:24 AM
SelC SelC is offline
Registered User
 
Join Date: 30 Jan 2010
Location: PH
MS Office Version:Excel 2003
Posts: 6
SelC is becoming part of the community
Compare data in separate workbook or worksheet

Please Register to Remove these Ads

Hi
I am new to this forum and in excel as well. Currently stuck to this problem, here how it goes : Im working with a huge amount of data in BOOK1.xls and once or twice a week I received an update of the list.

1. I need to compare and find out from the new updated worksheet if there is a new revision, and if there are new documents added to the list. I have tried Vlookup..but it didnt work for me.

Ex. Doc1 has revision 1, 2 in my BOOK1 that I am working on. Note that there is a repetition of the DocName, Doc Number except for the revision.

DocName Doc Number Revision
Spec Doc1 1
Spec Doc1 2
Spec Doc1 3??? <<--- New revision from BOOK2.XLS



Thanks very much and appreciate your help.
Attached Files
File Type: xls Book1.xls (19.0 KB, 1 views)

Last edited by SelC; 01-31-2010 at 03:22 AM.
Reply With Quote
  #2  
Old 01-30-2010, 08:10 AM
Richard Buttrey's Avatar
Richard Buttrey Richard Buttrey is offline
Forum Moderator
 
Join Date: 15 Feb 2008
Location: Grappenhall, UK
MS Office Version:Excel for Windows 2003, 2007, for Mac 2004, 2008
Posts: 3,351
Richard Buttrey is very confident of their ability Richard Buttrey is very confident of their ability Richard Buttrey is very confident of their ability
Re: Compare data in separate workbook or worksheet

Hi,
I'm assuming that there could be the same revision numbers for different document numbers. i.e. the revision numbers in col C may not be unique. Since you don't have Excel 2007 then you'll need to create a helper column D in both documents. This should concatenate the column B&C values. i.e.
Code:
=B2&C2
and copied down.

Now in your new revision book, and assuming the older book is called 'Book1' use in E2 and copied down:

Code:
=IF(ISERROR(MATCH(D2,'[Book1.xls]Sheet1'!$D:$D,FALSE)),"New","")
HTH
__________________
Richard Buttrey

If this was useful then please rate it appropriately.
Click the balance scales icon in the grey (or gray if you inhabit our former colony across the pond ) bar at the top of my post.
Reply With Quote
  #3  
Old 01-31-2010, 03:21 AM
SelC SelC is offline
Registered User
 
Join Date: 30 Jan 2010
Location: PH
MS Office Version:Excel 2003
Posts: 6
SelC is becoming part of the community
Re: Compare data in separate workbook or worksheet

Thanks Richard
Care to share, if im going to apply this in Excel 2007.

More power to Excel Forum!
Reply With Quote
  #4  
Old 01-31-2010, 06:09 AM
Richard Buttrey's Avatar
Richard Buttrey Richard Buttrey is offline
Forum Moderator
 
Join Date: 15 Feb 2008
Location: Grappenhall, UK
MS Office Version:Excel for Windows 2003, 2007, for Mac 2004, 2008
Posts: 3,351
Richard Buttrey is very confident of their ability Richard Buttrey is very confident of their ability Richard Buttrey is very confident of their ability
Re: Compare data in separate workbook or worksheet

Hi,

In Excel 2007

Code:
=IF(COUNTIFS('[Book1.xls]Sheet1'!$B:$B,$B$4,'[Book1.xls]Sheet1'!$C:$C,C2)=0,"New","")
Rgds
__________________
Richard Buttrey

If this was useful then please rate it appropriately.
Click the balance scales icon in the grey (or gray if you inhabit our former colony across the pond ) bar at the top of my post.
Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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

Forum Jump