Using the ~ character in Excel

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Anytime I use the ~ character in Excel, I am unable to use
functions such as VLOOKUP. Excel seems unable to identify
the ~ character during it's LOOKUP function.
Any suggestions ???

Thanks
 
Excel supports wild cards:
* = any string of characters
? = any one character

and the way you tell excel that you want to use an asterisk is to prefix it with
~ (~*).

And since that ~ is a special character, you have to tell excel to use two when
you want to use 1. ~ becomes ~~.

So this could be a formula that "fixes" all 3 of those special characters:

=VLOOKUP(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"~","~~"),"?","~?"),"*","~*"),
Sheet2!$A$1:$E$999,4,FALSE)
 

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