I'm wondering if someone can please help me with a VLOOKUP in an Excel File?

I have 2 datasheets. Stock and Datasource.

I'm trying to reference the Sheet Stock Column J to the Sheet Datasource column b

Please see attached example.
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.


pls try

Open in new window

the first 2 cells in Datasource are text. pls convert to number to work

jspcAuthor Commented:
I'm getting #N/A

I have converted to number
Na where is no corresponding reference
Ensure Business Longevity with As-A-Service

Using the as-a-service approach for your business model allows you to grow your revenue stream with new practice areas, without forcing you to part ways with existing clients just because they don’t fit the mold of your new service offerings.

Roy CoxGroup Finance ManagerCommented:
For convenience of writing the formula I have converted the lookup table to a Table.

The formula is then =VLOOKUP(A2,Table1[#All],2,0)

However, your codes do not seem to match. See the result when I type in a dummy code - Test1
if you want you could use

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
Roy CoxGroup Finance ManagerCommented:
I have added IFERROR to show if a code is missing.
jspcAuthor Commented:
Thank you, however if I copy your change down it doesn't reference the barcode number in the Datasource sheet
Roy CoxGroup Finance ManagerCommented:
Forgot the last attachment
jspcAuthor Commented:
Thank you
ShumsExcel & VBA ExpertCommented:
Even this question is closed. Another approach would be to use:

Open in new window

Please find attached...
Roy CoxGroup Finance ManagerCommented:
The codes are definitely different, see the effect of matching codes from the main table with the Lookup Table, cells highlighted in yellow, the formula works
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.