V-Lookup

Hello,

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.
STOCKFINAL.xlsx
jspcAsked:
Who is Participating?

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

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

Rgonzo1971Commented:
Hi,

pls try
=VLOOKUP(A2,A1Range,2,0)

Open in new window

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

Regards
0
jspcAuthor Commented:
I'm getting #N/A

I have converted to number
0
Rgonzo1971Commented:
Na where is no corresponding reference
STOCKFINALv1.xlsx
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

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
STOCKFIN-1-AL.xlsx
0
Rgonzo1971Commented:
if you want you could use
=IFERROR(VLOOKUP(A2,A1Range,2,0),"")
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
Roy CoxGroup Finance ManagerCommented:
I have added IFERROR to show if a code is missing.
0
jspcAuthor Commented:
Thank you, however if I copy your change down it doesn't reference the barcode number in the Datasource sheet
0
Roy CoxGroup Finance ManagerCommented:
Forgot the last attachment
STOCKFIN-1-AL.xlsx
0
jspcAuthor Commented:
Thank you
0
ShumsDistinguished Expert - 2017Commented:
Even this question is closed. Another approach would be to use:
=IFERROR(INDEX(DataSource!B:B,MATCH(A2,DataSource!A:A)),"")

Open in new window

Please find attached...
STOCKFINAL_v1.xlsx
0
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
STOCKFIN-1-AL.xlsx
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.