LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default Finding unique data between 2 columns

One way, via non-array formulas ..

A sample construct is available at:
http://cjoint.com/?ccdO3RQFok
Finding unique data between 2 cols_Joshua_wks.xls

Source data in cols A and B, from row1 down as posted

In D1:
=IF(ISERROR(SMALL(E:E,ROW(A1))),"",
INDEX(A:A,MATCH(SMALL(E:E,ROW(A1)),E:E,0)))

In E1:
=IF(A1="","",IF(ISNUMBER(MATCH(A1,B:B,0)),ROW(),"" ))

In F1:
=IF(ISERROR(SMALL(G:G,ROW(A1))),"",
INDEX(A:A,MATCH(SMALL(G:G,ROW(A1)),G:G,0)))

In G1:
=IF(A1="","",IF(ISNUMBER(MATCH(A1,B:B,0)),"",ROW() ))

Select D1:G1, fill down until the last row of data in col A

Col D returns items common to both cols A and B
Col F returns items in col A not found in col B
(Results will be neatly bunched at the top)

In H1:
=IF(ISERROR(SMALL(I:I,ROW(A1))),"",
INDEX(B:B,MATCH(SMALL(I:I,ROW(A1)),I:I,0)))

In I1:
=IF(B1="","",IF(ISNUMBER(MATCH(B1,A:A,0)),"",ROW() ))

Select H1:I1, fill down until the last row of data in col B

Col H returns items in col B not found in col A
(Results will be neatly bunched at the top)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Joshua" wrote in message
...
I have a spread sheet as such:

column 1 column 2

a a
b b
c e
d

What I need to do is compare the 2 columns and figure out which entries

are
unique to both columns and which are only in column1 or column 2. The

data
will be alphanumeric.





 
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 can you sum the last 5 columns of data from a range of data By-Tor New Users to Excel 5 January 10th 06 04:21 AM
Data in narrow columns truncated when saving as DBF Ben Amada Excel Discussion (Misc queries) 2 October 11th 05 11:23 PM
Sort pages? David Excel Discussion (Misc queries) 15 May 13th 05 11:33 PM
Finding common data in multiple columns and rows in Excel sparham Excel Worksheet Functions 3 February 12th 05 04:11 AM
How do i copy columns of data in notepad into microsoft excel? Jason Excel Discussion (Misc queries) 1 February 10th 05 09:20 PM


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