Excel Vlookup for finding the difference

wanted to compare difference in two columns in excel. I want to know which values in order2 column which are not there in order1 column.
so value ABL00004 in order2 in the below example is not there in order1 column.so the vlookup or anyother formula shoul give the value like N/A for example for this record

Order1                Order2
ABL00001      ABL00001
ABL00002      ABL00002
ABL00003      ABL00003
ABL00007      ABL00004

Many thanks
gvamsimbaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AlanConsultantCommented:
Hi,

Since you don't say, I will assume your data is in A1:B5.

Easiest option might be to enter this formula in C2 and copy down:

=ISERR(MATCH(B2, A$2:A$5,0))

The items that show TRUE are missing.


Hope that helps,

Alan.
0
gvamsimbaAuthor Commented:
Hi Alan, I tested the above sample data in question with your formula but its wrongly giving everything as False.Can you please check the formula once?

Order1                Order2            
ABL00001      ABL00001            FALSE
ABL00002      ABL00002            FALSE
ABL00003      ABL00003            FALSE
ABL00007      ABL00004            FALSE

Thanks
0
AlanConsultantCommented:
Apologies, I typed too fast :-)

Should have been:

=ISNA(MATCH(B2, A$2:A$5,0))


That should work.

Alan.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

gvamsimbaAuthor Commented:
Hi Alan, it still does not work.

Order1                Order2            
ABL00001      ABL00001            TRUE
ABL00002      ABL00002            TRUE
ABL00003      ABL00003            TRUE
ABL00007      ABL00004            TRUE
0
AlanConsultantCommented:
Seems to work for me - see attached.

Alan.
EE-29087623-Version1.xlsx
0
gvamsimbaAuthor Commented:
Hi Alan, its not working for me. could this be because I am using excel 2003 version ?

=ISNA(MATCH(B2, A$2:A$5,0))
0
AlanConsultantCommented:
I guess its possible.

I don't have access to Excel 2003 to test that, but I found Excel 2010, and have saved the file back as XLS version and attached here.

The formulae are the same.  I seem to recall ISNA and MATCH being around in Excel 97, but maybe I am wrong.

Does this one work?

Alan.
EE-29087623-Version2.xls
0
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
ISNA should work with Excel 2003.
What about this?
=IF(ISERROR(MATCH(B2,A:A,0)),"Not Found","Found")

Open in new window

You may replace "Not Found" and "Found" with "False" and "True" or something else if you wish.

OR this...
=NOT(ISNUMBER(MATCH(B2,A:A,0)))

Open in new window

0
Rob HensonFinance AnalystCommented:
Or.... you can use the COUNTIF function, starting in C2:

=COUNTIF(A:A,B2)

Copy down as far as required.

You will get a numerical result in all cells, those with 0 in column C shows that the value in column B doesn't occur in column A.
0
gvamsimbaAuthor Commented:
good
0
gvamsimbaAuthor Commented:
good
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.