PC Review


Reply
Thread Tools Rate Thread

compare IP lists

 
 
syd_p
Guest
Posts: n/a
 
      19th Nov 2010
Hello,

Have ecel 2010 and I have two columns of IP addresses. 3 000 or so.
they are nearly the same - but I want to highlight the differences.
So if one IP exists in both lists that is good.
But if one exists in the left hand col but not the right I want to
identify this IP
And also if one IP exists in the right but not in the left I want to
identify that one too.
Any ideas?

-Syd
 
Reply With Quote
 
 
 
 
Don Guillett Excel MVP
Guest
Posts: n/a
 
      19th Nov 2010
On Nov 19, 2:59*pm, syd_p <sydneypue...@yahoo.com> wrote:
> Hello,
>
> Have ecel 2010 and I have two columns of IP addresses. 3 000 or so.
> they are nearly the same - but I want to highlight the differences.
> So if one IP exists in both lists that is good.
> But if one exists in the left hand col but not the right I want to
> identify this IP
> And also if one IP exists in the right but not in the left I want to
> identify that one too.
> Any ideas?
>
> -Syd


A looping macro to compare and highlight or delete the cell. Or, I
don't like a lot of conditional formatting but it would also probably
work.
 
Reply With Quote
 
Pete_UK
Guest
Posts: n/a
 
      20th Nov 2010
Assume IP addresses in columns A and B. To test each column A entry to
see if it occurs anywhere in column B use this (eg in C1):

=IF(ISNA(MATCH(A1,B:B,0)),"absent","good")

then copy down. Similarly, to test each column B entry to see if it
occurs anywhere in column A, use this (eg in D1):

=IF(ISNA(MATCH(B1,A:A,0)),"absent","good")

and copy this down.

Hope this helps.

Pete

On Nov 19, 8:59*pm, syd_p <sydneypue...@yahoo.com> wrote:
> Hello,
>
> Have ecel 2010 and I have two columns of IP addresses. 3 000 or so.
> they are nearly the same - but I want to highlight the differences.
> So if one IP exists in both lists that is good.
> But if one exists in the left hand col but not the right I want to
> identify this IP
> And also if one IP exists in the right but not in the left I want to
> identify that one too.
> Any ideas?
>
> -Syd


 
Reply With Quote
 
syd_p
Guest
Posts: n/a
 
      22nd Nov 2010
On 20 Nov, 03:29, Pete_UK <pashu...@auditel.net> wrote:
> Assume IP addresses in columns A and B. To test each column A entry to
> see if it occurs anywhere in column B use this (eg in C1):
>
> =IF(ISNA(MATCH(A1,B:B,0)),"absent","good")
>
> then copy down. Similarly, to test each column B entry to see if it
> occurs anywhere in column A, use this (eg in D1):
>
> =IF(ISNA(MATCH(B1,A:A,0)),"absent","good")
>
> and copy this down.
>
> Hope this helps.
>
> Pete
>
> On Nov 19, 8:59*pm, syd_p <sydneypue...@yahoo.com> wrote:
>
> > Hello,

OK I am a bit further now.
Looking macro - thanks
use ISNA (google explains IS Not Available)
Not sure what is meant with copy down?
Probably I need to generate a 3 rd column - not found in Column1
and a 4 th column - not found in Column 2
Can I do that?
Sorry I am a newbie.
Please ignore if this is too simple..

-Syd


>
> > Have ecel 2010 and I have two columns of IP addresses. 3 000 or so.
> > they are nearly the same - but I want to highlight the differences.
> > So if one IP exists in both lists that is good.
> > But if one exists in the left hand col but not the right I want to
> > identify this IP
> > And also if one IP exists in the right but not in the left I want to
> > identify that one too.
> > Any ideas?

>
> > -Syd


 
Reply With Quote
 
zvkmpw
Guest
Posts: n/a
 
      22nd Nov 2010
> Have ecel 2010 and I have two columns of IP addresses. 3 000 or so.
> they are nearly the same - but I want to highlight the differences.
> So if one IP exists in both lists that is good.
> But if one exists in the left hand col but not the right I want to
> identify this IP
> And also if one IP exists in the right but not in the left I want to
> identify that one too.


One way to start is to put this in C1:
=IF(OR(A1="",COUNTIF(B:B,A1)>0),"", A1&" missing from column B.
")&
IF(OR(B1="",COUNTIF(A:A,B1)>0),"", B1&" missing from column A. ")

Then select C1 and use
Edit > Copy

Then select the column C1 to 4000 (past the end of the data) and use
Edit > Paste

Then
- if columns A and B of a row are good then column C would be blank.
- if column A of a row is missing in B, then column C would identify
it.
- if column B of a row is missing in A, then column C would identify
it.
- if both A and B are missing, column C would identify both.

Modify to suit.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compare Lists. How to? shapper Microsoft C# .NET 7 3rd Jul 2008 06:18 AM
compare two lists lark Microsoft Excel Worksheet Functions 3 6th May 2008 02:12 AM
compare two lists rob p Microsoft Excel Worksheet Functions 3 10th Oct 2005 07:01 PM
Re: Compare two lists Don Guillett Microsoft Excel Programming 2 30th Apr 2004 12:08 AM
Compare Lists David Willey Microsoft Excel Programming 3 8th Aug 2003 03:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:36 PM.