Comparing two columns of numbers for differences

R

Rescueme

I am working with Excel 97 and have two columns A and B. Column A has 2016
rows of numbers in the column. Column B has 1994 rows of numbers (72 less).
I need an easy way to extract all the numbers in column A that are not in
Column B. The majority of the numbers are in both columns but 72 are only
in Column A.

Help Appreciated.
Karen
(e-mail address removed)
 
A

A.W.J. Ales

Karen,

I'm not sure whether this will work for you.
If however your numbers in column A are unique (in column A) and if the same
applies to the numbers in column B this might help.

Assuming your numbers are in A1:A2016 and in B1:B1994, put in C1 the formula
IF(ISNA(VLOOKUP(A1,$B$1:$B$1994,1,1)),1,0) and copy this formula down to
C2016.

Depending on whether there is a copy of the number in the A column in the B
column you now get either a 0 or a 1 in column C.

--
Regards,
Auk Ales

* Please reply to this newsgroup only *
* I will not react on unsolicited e-mails *
 
A

A.W.J. Ales

Oops,

Formula should be : IF(ISNA(VLOOKUP(A1,$B$1:$B$1994,1,0)),1,0)

--
Regards,
Auk Ales

* Please reply to this newsgroup only *
* I will not react on unsolicited e-mails *
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top