vlookup with search?

G

Guest

On one sheet I have a list of complete UPC codes. On another sheet, the UPC
codes are only partial numbers. I need to do a look up to match the partial
UPC with the full UPC.
 
G

Guest

When using VLookups, if you leave the final field blank instead of saying
false, it will find fields that are close. See if this helps.
 
G

Guest

Thanks - I tried that - it doesn't work. It does not always bring in the
correct result.
 
G

Guest

Do you have any other fields that would match exactly? Perhaps you could do
the Vlookup using one of those.
 
G

Guest

I wish there was another field to use.
--
maryj


Iskus23 said:
Do you have any other fields that would match exactly? Perhaps you could do
the Vlookup using one of those.
 
S

SteveG

Mary,

Try this.

=SUMPRODUCT((ISNUMBER(SEARCH(A1,Sheet3!$A$1:$A$4,1)))*(Sheet3!$A$1:$A$4))

This is where A1 is your partial code and Sheet3!A1:A4 is your complete
codes. Copy this down your list of partials. This also assumes that
your partials will be unique to only one complete code.

Does that help?

Steve
 

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