VLOOKUP data missed

G

Guest

I am trying to determine if what I have is an Excel bug or is there another
way around the formula.

I am trying to have VLOOKUP collect some data from another worksheet and
place it on a cell of the worksheet I am on. All works great except that a
few of the inquiries I have it find come back with the wrong answer.
I am using the formula =IF(H2<>"",VLOOKUP(H2,MASTER,3,FALSE),0).

H2 is a steel Section (ex F75*5). The Master is in another worksheet
(A2:A8900) going 6 columns long. I need the exact number, but VLOOKUP keeps
grabbing the number F75*25. There are a few numbers it does this one. The
Master is sorted, so I dont understand the problem.

Any help would be greatly appricated.
 
T

T. Valko

The probelm is that Excel is evaluating the "*" as a wildcard.

Try it like this:

=IF(H2<>"",VLOOKUP(SUBSTITUTE(H2,"*","~*"),MASTER,3,0),0)
 
G

Guest

Thanks. That solved a big problem I had. :)


T. Valko said:
The probelm is that Excel is evaluating the "*" as a wildcard.

Try it like this:

=IF(H2<>"",VLOOKUP(SUBSTITUTE(H2,"*","~*"),MASTER,3,0),0)
 

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