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
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.


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,

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

Apologies, I typed too fast :-)

Should have been:

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

That should work.


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
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

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

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

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))
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?

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...

Open in new window

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


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.
gvamsimbaAuthor Commented:
gvamsimbaAuthor Commented:
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.