Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
maxxwell2
 
Posts: n/a
Default Find a value in list 2 that is not in list 1

I have text values in column A and also in column B, most of which match. I
would like to take the values in column B that are not in column A and put
those values only in column C. Any help would be greatly appreciated.
  #2   Report Post  
Earl Kiosterud
 
Posts: n/a
Default

Maxxwell,

Put this formula in column C, and copy down.
=IF(ISERROR(MATCH(B2,$A$2:$A$20,0)),B2,"")

To get them contiguous, use Autofilter, filter on nonblanks in column C, and
copy/paste to somewhere.
--
Earl Kiosterud
mvpearl omitthisword at verizon period net
-------------------------------------------

"maxxwell2" wrote in message
...
I have text values in column A and also in column B, most of which match. I
would like to take the values in column B that are not in column A and put
those values only in column C. Any help would be greatly appreciated.



  #3   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Here's an alternative method that doesn't require the
extra steps.

Assume the lists are in the range A1:B10. Enter this
forumla in C1 with the key combo of CTRL,SHIFT,ENTER:

=IF(ISERROR(SMALL(IF(COUNTIF($A$1:$A$10,$B$1:$B$10 )=0,ROW
($A$1:$A$10)),ROW(1:1))),"",INDEX($B$1:$B$10,SMALL (IF
(COUNTIF($A$1:$A$10,$B$1:$B$10)=0,ROW($A$1:$A$10)) ,ROW
(1:1))))

Copy down until you get blanks.

OR, use the above formula without the error trap, array
entered:

=INDEX($B$1:$B$10,SMALL(IF(COUNTIF($A$1:$A$10,$B$1 :$B$10)
=0,ROW($A$1:$A$10)),ROW(1:1)))

Copy down until you get a #NUM! error.

Biff

-----Original Message-----
I have text values in column A and also in column B, most

of which match. I
would like to take the values in column B that are not in

column A and put
those values only in column C. Any help would be greatly

appreciated.
.

  #4   Report Post  
maxxwell2
 
Posts: n/a
Default



"Biff" wrote:

Hi!

Here's an alternative method that doesn't require the
extra steps.

Assume the lists are in the range A1:B10. Enter this
forumla in C1 with the key combo of CTRL,SHIFT,ENTER:

=IF(ISERROR(SMALL(IF(COUNTIF($A$1:$A$10,$B$1:$B$10 )=0,ROW
($A$1:$A$10)),ROW(1:1))),"",INDEX($B$1:$B$10,SMALL (IF
(COUNTIF($A$1:$A$10,$B$1:$B$10)=0,ROW($A$1:$A$10)) ,ROW
(1:1))))

Copy down until you get blanks.

OR, use the above formula without the error trap, array
entered:

=INDEX($B$1:$B$10,SMALL(IF(COUNTIF($A$1:$A$10,$B$1 :$B$10)
=0,ROW($A$1:$A$10)),ROW(1:1)))

Copy down until you get a #NUM! error.

Biff

-----Original Message-----
I have text values in column A and also in column B, most

of which match. I
would like to take the values in column B that are not in

column A and put
those values only in column C. Any help would be greatly

appreciated.
.


Thank very much for the formula, it works fine, I was just hoping there
might be a cleaner way to accomplish this task. Also my list is approximately
250 rows long and when I use your formula, it finds the proper values(the
first 45 rows) then the next 90 rows or so, it inserts a value of 0, and the
last 90 rows are blank. Do you know why I am getting a zero value in these
middle rows? THANKS AGAIN!
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
where can i find a list of excell formula's? macart New Users to Excel 2 February 15th 05 09:51 PM
How do I find duplicates in a list JimNC Excel Discussion (Misc queries) 1 February 6th 05 08:40 PM
How do I find data from a list (or table) and insert it in a row? Bobgolfs56 Excel Discussion (Misc queries) 1 February 3rd 05 12:51 AM
Find a duplicate value within a list? Arla M Excel Worksheet Functions 2 January 26th 05 10:04 PM
How do I find out what items are in one list but not in another l. Michelle Craig Excel Discussion (Misc queries) 2 December 22nd 04 08:32 PM


All times are GMT +1. The time now is 01:33 PM.

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"