Microsoft Office Forums


Reply
Thread Tools Display Modes

Compare columns

 
 
TerryM
Guest
Posts: n/a

 
      06-18-2004, 03:34 PM
ok, I finally got it working being able to find duplicates from two
columns... now I want to know how I would do three?

So I have three columns and I want to know if any data in any column also
appears in either of the other two columns.

If I named the columns A, B, and C then the scenario would be is anything in
A in B or C, is anything in B in A or C and is anything in C in A or B.

Thanks,
Terry


 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a

 
      06-18-2004, 10:36 PM
I think I'd do a little more work.

I'd combine all the values into one giant list (and eliminate the duplicates
from that list).

Then I'd use 3 additional columns showing if the value was in only one, or two
or all three lists.

If that's ok:

Copy the first list to a new worksheet (include the header row with this one).
copy the second list to the bottom of the first list (no header row)
copy the third list to the bottom of the second list (no header row)
(paste all these as values--not formulas)

Now select that column and do Data|filter|Advanced filter
specify Unique Records only
and Copy to a new location (B1 of this worksheet is fine)

Now delete column A--it's served its purpose.

Sort the new column A if you want.

Now in B2, C2, D2, use formulas like:

=isnumber(match(a2,sheet1!a:a,0))
=isnumber(match(a2,sheet2!a:a,0))
=isnumber(match(a2,sheet3!a:a,0))
and drag down

(I assumed that the original lists were in sheet1 to sheet3 all in column A.
Adjust if required.)

Add headers in B1, C1, D1:
In List1
In List2
In List3

And maybe in E1
Count of Lists Used
In e2:
=countif(b2:d2,true)
(and drag down)

Now select column A to column E
apply data|filter|autofilter

Filter on column E (show 1, 2, 3) to see how things stack up.





TerryM wrote:
>
> ok, I finally got it working being able to find duplicates from two
> columns... now I want to know how I would do three?
>
> So I have three columns and I want to know if any data in any column also
> appears in either of the other two columns.
>
> If I named the columns A, B, and C then the scenario would be is anything in
> A in B or C, is anything in B in A or C and is anything in C in A or B.
>
> Thanks,
> Terry


--

Dave Peterson
(E-Mail Removed)
 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a

 
      06-18-2004, 10:39 PM
Oops.

I figured the lists were on separate sheets. I should learn to read the
questions!

=isnumber(match(a1,sheet1!a:a,0))
=isnumber(match(a1,sheet1!b:b,0))
=isnumber(match(a1,sheet1!c:c,0))



TerryM wrote:
>
> ok, I finally got it working being able to find duplicates from two
> columns... now I want to know how I would do three?
>
> So I have three columns and I want to know if any data in any column also
> appears in either of the other two columns.
>
> If I named the columns A, B, and C then the scenario would be is anything in
> A in B or C, is anything in B in A or C and is anything in C in A or B.
>
> Thanks,
> Terry


--

Dave Peterson
(E-Mail Removed)
 
Reply With Quote
 
 
 
Reply

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mapping Access-exported Data Columns to Project Columns GHF Project Newsgroup 1 03-08-2008 12:34 PM
Acess compare two columns t Access Newsgroup 6 08-30-2007 08:16 PM
Compare 2 columns if match insert data from 3rd col into new col GJ Access Newsgroup 4 02-11-2006 12:27 PM
Compare 2 columns and prints what not equal JOM Access Newsgroup 2 08-29-2005 08:52 PM
Compare data in columns Beth Excel Newsgroup 0 07-07-2003 05:33 PM



All times are GMT. The time now is 02:15 PM.