PC Review Forums Newsgroups Microsoft Excel Microsoft Excel Discussion Finding differences between two tables

Reply

Finding differences between two tables

 
Thread Tools Rate Thread
Old 30-06-2003, 07:36 PM   #1
Anne
Guest
 
Posts: n/a
Default Finding differences between two tables


Who can help me?

I have 2 tables with mainly the same names. I want to find the names that
are not in both list.

I managed to do it the following way, but I think that it can be done
easier.

I did:
Advances filter: as criterium range one of the 2 tables.
With Edit - Go To - I highlighted the visible cells and coloured them.
Removed the filter
With Edit - Find - Format - I highlighted the noncoloured cells.

Thanks Anne


  Reply With Quote
Old 01-07-2003, 08:47 PM   #2
Otto Moehrbach
Guest
 
Posts: n/a
Default Re: Finding differences between two tables

Here are two ways you can do that but I wouldn't say they are much easier
than what you did. Put both lists on the same sheet in the same column, one
under the other, say in column A.
Data is in column A starting at A1.

Formula in B1 is =If(Countif(A:A,A1)=1,True,False) Drag this to bottom of

table. Values appearing more than once appear as false. This can be modified

easily to show dups, triplicates etc.



Also:

Format - Conditional Formatting

Formula is:

=COUNTIF(A:A,A1)>1

Set the format as you wish.



HTH Otto


"Anne" <aaschouten@hotmail.nl> wrote in message
news:3f007393$0$76764$1b62eedf@news.wanadoo.nl...
> Who can help me?
>
> I have 2 tables with mainly the same names. I want to find the names that
> are not in both list.
>
> I managed to do it the following way, but I think that it can be done
> easier.
>
> I did:
> Advances filter: as criterium range one of the 2 tables.
> With Edit - Go To - I highlighted the visible cells and coloured them.
> Removed the filter
> With Edit - Find - Format - I highlighted the noncoloured cells.
>
> Thanks Anne
>
>



  Reply With Quote
Old 02-07-2003, 11:33 AM   #3
Anne
Guest
 
Posts: n/a
Default Re: Finding differences between two tables

Thanks Otto, these are useful alternatives.

Anne


"Otto Moehrbach" <ottomnospam@worldnet.att.net> wrote in message
news:exZN8EAQDHA.1072@TK2MSFTNGP10.phx.gbl...
> Here are two ways you can do that but I wouldn't say they are much easier
> than what you did. Put both lists on the same sheet in the same column,

one
> under the other, say in column A.
> Data is in column A starting at A1.
>
> Formula in B1 is =If(Countif(A:A,A1)=1,True,False) Drag this to bottom of
>
> table. Values appearing more than once appear as false. This can be

modified
>
> easily to show dups, triplicates etc.
>
>
>
> Also:
>
> Format - Conditional Formatting
>
> Formula is:
>
> =COUNTIF(A:A,A1)>1
>
> Set the format as you wish.
>
>
>
> HTH Otto
>
>
> "Anne" <aaschouten@hotmail.nl> wrote in message
> news:3f007393$0$76764$1b62eedf@news.wanadoo.nl...
> > Who can help me?
> >
> > I have 2 tables with mainly the same names. I want to find the names

that
> > are not in both list.
> >
> > I managed to do it the following way, but I think that it can be done
> > easier.
> >
> > I did:
> > Advances filter: as criterium range one of the 2 tables.
> > With Edit - Go To - I highlighted the visible cells and coloured them.
> > Removed the filter
> > With Edit - Find - Format - I highlighted the noncoloured cells.
> >
> > Thanks Anne
> >
> >

>
>



  Reply With Quote
Old 04-07-2003, 12:17 AM   #4
Michael Goodwin
Guest
 
Posts: n/a
Default Re: Finding differences between two tables

How about . . .

Sort both Tables by Name order (Important!)

Take first Table
Complete a new Column with this formula (assumes Name is in Col A)
If(vlookup(a1,Range_in second_table,1)=a1,"Matched","Not in Table 2")

Take the second Table
Complete a new Column with this formula (assumes Name is in Col A)
If(vlookup(a1,Range_in first_table,1)=a1,"Matched","Not in Table 1")

It may not report perfect matches for first names in the lists
so if your still with me
add a false name "aaaa" as to each Table before sorting. This ensure that
the first items will return "Matched"

M.

"Anne" <aaschouten@hotmail.nl> wrote in message
news:3f007393$0$76764$1b62eedf@news.wanadoo.nl...
> Who can help me?
>
> I have 2 tables with mainly the same names. I want to find the names that
> are not in both list.
>
> I managed to do it the following way, but I think that it can be done
> easier.
>
> I did:
> Advances filter: as criterium range one of the 2 tables.
> With Edit - Go To - I highlighted the visible cells and coloured them.
> Removed the filter
> With Edit - Find - Format - I highlighted the noncoloured cells.
>
> Thanks Anne
>
>



  Reply With Quote
Old 09-07-2003, 08:36 PM   #5
Anne
Guest
 
Posts: n/a
Default Re: Finding differences between two tables

Thanks Michael,
I think this is a very good solution.
Anne

"Michael Goodwin" <goodwinm@oceanfree.net> wrote in message
news:%230tWGCbQDHA.3088@TK2MSFTNGP10.phx.gbl...
> How about . . .
>
> Sort both Tables by Name order (Important!)
>
> Take first Table
> Complete a new Column with this formula (assumes Name is in Col A)
> If(vlookup(a1,Range_in second_table,1)=a1,"Matched","Not in Table 2")
>
> Take the second Table
> Complete a new Column with this formula (assumes Name is in Col A)
> If(vlookup(a1,Range_in first_table,1)=a1,"Matched","Not in Table 1")
>
> It may not report perfect matches for first names in the lists
> so if your still with me
> add a false name "aaaa" as to each Table before sorting. This ensure that
> the first items will return "Matched"
>
> M.
>
> "Anne" <aaschouten@hotmail.nl> wrote in message
> news:3f007393$0$76764$1b62eedf@news.wanadoo.nl...
> > Who can help me?
> >
> > I have 2 tables with mainly the same names. I want to find the names

that
> > are not in both list.
> >
> > I managed to do it the following way, but I think that it can be done
> > easier.
> >
> > I did:
> > Advances filter: as criterium range one of the 2 tables.
> > With Edit - Go To - I highlighted the visible cells and coloured them.
> > Removed the filter
> > With Edit - Find - Format - I highlighted the noncoloured cells.
> >
> > Thanks Anne
> >
> >

>
>



  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off