EXCEL Wild Cards

N

NPVSRUS

I'm having a problem with wild cards (*,?,!) when doing the vlookup function.
Unfortunately, my comparison data contains these characters so I end up
picking up the wrong data most of the time. Is there any way to turn these
wild cards off?

Thank you in advance,

Scott
 
D

Dave Peterson

My favorite!

=VLOOKUP(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"~","~~"),"?","~?"),"*","~*"),
Sheet2!$A:$B,2,FALSE)

! isn't a wildcard.

~ is used as an "escape" character to mean the next character shouldn't be
treated as a wildcard.
 
N

NPVSRUS

Thank You Sir!

Dave Peterson said:
My favorite!

=VLOOKUP(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"~","~~"),"?","~?"),"*","~*"),
Sheet2!$A:$B,2,FALSE)

! isn't a wildcard.

~ is used as an "escape" character to mean the next character shouldn't be
treated as a wildcard.
 

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