Using ~ in VLookup function

  • Thread starter Thread starter Andyp95
  • Start date Start date
A

Andyp95

Does anyone know if VLOOKUP will recognise a ~ symbol? My datasource
contains them, and I am not having any luck getting the function to
work

Thanks
 
I'd try it again. Maybe something like this, too:

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

* and ? are wildcard characters.

The tilde tells excel to treat the asterisk as an asterisk and the question mark
as a question mark--not as wild cards.

To tell excel to treat this "escape character" as itself, you double it up.
 

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

Back
Top