Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Arjan
 
Posts: n/a
Default Compare range with another range in other workbook

I've a workbook with names in range A1:A10.
In another workbook there is a list (the length is every week different) and
I want to compare this list with the 10 names on my first worksheet.

I want a list of the people who are in that long list, but not in my default
10 names.

I started with

For Each c In Range("[document.xls]Sheet1!E1",
Range("[document.xls]Sheet1!E65535").End(xlUp))

but that doesn't work. I don't have any idea how to solve this.

Can somebody help me or is it not possible?

Regards,
Arjan

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default Compare range with another range in other workbook

I would use conditional formatting on the long list with a formula to test
if in the short list.

So assume the long list is Sheet2!A1:An, short list is Sheet1!A1:A10.

Select the long list, and in CF, add a formula of
=ISNUMBER(MATCH(A1,Sheet1!$A$1:$A$10,0)), and format with a colour on the
pattern tab.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Arjan" wrote in message
...
I've a workbook with names in range A1:A10.
In another workbook there is a list (the length is every week different)

and
I want to compare this list with the 10 names on my first worksheet.

I want a list of the people who are in that long list, but not in my

default
10 names.

I started with

For Each c In Range("[document.xls]Sheet1!E1",
Range("[document.xls]Sheet1!E65535").End(xlUp))

but that doesn't work. I don't have any idea how to solve this.

Can somebody help me or is it not possible?

Regards,
Arjan



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bruno Campanini
 
Posts: n/a
Default Compare range with another range in other workbook

"Arjan" wrote in message
...
I've a workbook with names in range A1:A10.
In another workbook there is a list (the length is every week different)
and
I want to compare this list with the 10 names on my first worksheet.

I want a list of the people who are in that long list, but not in my
default
10 names.

I started with

For Each c In Range("[document.xls]Sheet1!E1",
Range("[document.xls]Sheet1!E65535").End(xlUp))

but that doesn't work. I don't have any idea how to solve this.

Can somebody help me or is it not possible?

Regards,
Arjan


I have a VBA Sub which, given two ranges even in
two sheets, makes the following comparison:
A-B === elements in range A that are not in range B
B-A === elements in range B that are not in range A
A+B === elements of A plus elements of B
AB === elements that are common to A and B
Unique values only.

It is one page code. Do you think it is ok for you?

Ciao
Bruno


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
HOW DO I SUM TWO CELLS FROM ONE WORKBOOK TO ANOTHER WORKBOOK? Bill O'Neal Excel Worksheet Functions 8 August 14th 09 11:36 PM
Protect Workbook vs Worksheet?? Dan B Excel Worksheet Functions 3 November 7th 05 09:02 PM
keeping a toolbar attached to a workbook Paul Ponzelli Excel Discussion (Misc queries) 0 August 12th 05 11:39 PM
Compare range of dates and sum... SAL Excel Discussion (Misc queries) 5 March 22nd 05 02:59 PM
Unprotect Workbook Kent Excel Discussion (Misc queries) 1 February 4th 05 01:07 AM


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