'RIGHT', 'LEFT' in a VLOOKUP

R

RJB

I have a table of five digit SKU numbers that I need to cross-reference with
a list of UPC numbers and sales data.

The last five digits of the UPC number are the SKU number.

So my VLOOKUP is basically

VLOOKUP (SKU, 'Sheet with UPC information'! UPC column:price column, 2, false)

To make that work, I need to actually add a column BEFORE the UPC column
that's really RIGHT (UPC Column, 5).

But I have lots of files, and don't want to save changes to them (they're
not mine).

Is there a way to do the VLOOKUP in a way that's essentially,

VLOOKUP (SKU, 'Sheet with UPC information'! RIGHT (UPC Column,5):price
column, 2, false)?
 
P

Pete_UK

If your SKUs are unique (i.e. the last 5 digits of the UPC are also
unique), then you might be able to do it using wildcard characters
like this:

VLOOKUP ("*"&SKU, 'Sheet with UPC information'! UPC Column:price
column, 2, false)

It depends on whether your UPCs are proper numbers or text values.

Hope this helps.

Pete
 
A

Adilson Soledade

It's possible if you use the functions MATCH and INDEX togheter in an array
formulas (CRTL+SHIF+ENTER) as follow,
=INDEX(Return_Column,CORRESP(SKU,RIGHT(UPC_Column,5),0))
 
R

RJB

Do I sub "MATCH" for "CORRESP"?

Adilson Soledade said:
It's possible if you use the functions MATCH and INDEX togheter in an array
formulas (CRTL+SHIF+ENTER) as follow,
=INDEX(Return_Column,CORRESP(SKU,RIGHT(UPC_Column,5),0))
 
A

Adilson Soledade

Sorry for the mistake.
MATCH is the correcto form.
Different languages , different functions.
 
A

Adilson Soledade

One more quesntion.
If you'll have problems, probably you'll need to change the key search from
SKU to TEXT(SKU,"00000"). Sometimes the VLOOKUP doesn't recognize numbers as
search key.
 

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