Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
akmccarthy
 
Posts: n/a
Default How do I get unique values from 2 columns?

I need to get the unique values between 2 columns. For example, if A has
2,3,4,5 & 7 and B has 1,2,3,4,and 5, I need something to tell me that B
doesn't have 7. I expect to run through it again so that I see that A doesn't
have 1. I do not wish to enter in the data to search for, but rather have a
column comparison and kickout the differences (similar to a diff command on
Unix for those that know it).

Any help would be appreciated. The advanced filter doesn't do what I need
as it would give me all values.
Thanks,
Kelly
  #2   Report Post  
Jason Mori
 
Posts: n/a
Default

How about coloring the cells in col. A where the number
is not found in col. B and vice-versa?

1. Select col. A.
2. Go to Format Conditional Formatting
3. Select "Formula Is" on the drop-down arrow.
4. Insert:
=ISNA(MATCH($A1,$B:$B,0))
5. Click on the "Format" button and format as desired.
6. OK out and select col. B.
7. Follow the same steps above except use:
=ISNA(MATCH($B1,$A:$A,0))

HTH
Jason
Atlanta, GA

-----Original Message-----
I need to get the unique values between 2 columns. For

example, if A has
2,3,4,5 & 7 and B has 1,2,3,4,and 5, I need something to

tell me that B
doesn't have 7. I expect to run through it again so that

I see that A doesn't
have 1. I do not wish to enter in the data to search

for, but rather have a
column comparison and kickout the differences (similar

to a diff command on
Unix for those that know it).

Any help would be appreciated. The advanced filter

doesn't do what I need
as it would give me all values.
Thanks,
Kelly
.

  #3   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

You would need 2 help columns, in one use

=IF(ISERROR(MATCH(A2,B:B,0)),A2,"")

copy down

in the other use

=IF(ISERROR(MATCH(B2,A:A)),B2,"")

will return 7 in the first and 1 in the second

Regards,

Peo Sjoblom



"akmccarthy" wrote:

I need to get the unique values between 2 columns. For example, if A has
2,3,4,5 & 7 and B has 1,2,3,4,and 5, I need something to tell me that B
doesn't have 7. I expect to run through it again so that I see that A doesn't
have 1. I do not wish to enter in the data to search for, but rather have a
column comparison and kickout the differences (similar to a diff command on
Unix for those that know it).

Any help would be appreciated. The advanced filter doesn't do what I need
as it would give me all values.
Thanks,
Kelly

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
Zero values in a log chart Joelle_Smith Charts and Charting in Excel 2 May 8th 23 03:42 AM
Second serie doesn't use X-as values JackRnl Charts and Charting in Excel 1 January 20th 05 01:04 AM
Missing values in Excel Line Chart mw55309 Charts and Charting in Excel 1 January 19th 05 12:10 PM
Creating a chart with values from two columns Ivan Charts and Charting in Excel 2 December 12th 04 07:31 PM
interchange columns with rows Herman Excel Discussion (Misc queries) 2 December 8th 04 05:40 PM


All times are GMT +1. The time now is 02:11 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"