Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
TWC
 
Posts: n/a
Default Excel recognize "~"

I am using the "vlookup" function and it does not recognize the "~" tilde
symbol in the data I'm looking up. How do I get Excel to recognize the
symbol?
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Escape it with another ~, like

=VLOOKUP("~~",K1:N9,2,FALSE)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"TWC" wrote in message
...
I am using the "vlookup" function and it does not recognize the "~" tilde
symbol in the data I'm looking up. How do I get Excel to recognize the
symbol?



  #3   Report Post  
TWC
 
Posts: n/a
Default

The "~" symbol should be proceeded by "~" in the function, for example if I
was looking for "123~" or "123?", etc., I would list this as "123~~" or
"123~?" in my function.

"TWC" wrote:

I am using the "vlookup" function and it does not recognize the "~" tilde
symbol in the data I'm looking up. How do I get Excel to recognize the
symbol?

  #4   Report Post  
Dave Peterson
 
Posts: n/a
Default

One way is to have your =vlookup() fix any wild card characters (* and ?) and
the character that's used to indicate that it shouldn't be treated like a wild
card (~):

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

===
And yep, what you wrote is correct.

TWC wrote:

The "~" symbol should be proceeded by "~" in the function, for example if I
was looking for "123~" or "123?", etc., I would list this as "123~~" or
"123~?" in my function.

"TWC" wrote:

I am using the "vlookup" function and it does not recognize the "~" tilde
symbol in the data I'm looking up. How do I get Excel to recognize the
symbol?


--

Dave Peterson
  #5   Report Post  
KL
 
Posts: n/a
Default

I tried it on my spreadsheet and it looks like, for some reason, ? needs no
special treatment in VLOOKUP, but ~ and * do.

KL

--
Saludos,
KL
(XL 97, 2000, 2002)
------------
Ojo - mi separador de argumentos en las formulas es la coma ",".
Puede q necesites cambiarla por punto y coma ";".

Para usar mi direccion de correo electronico privada
borra "NOSPAM" y "PLEASE" antes de usarla.
------------
"Dave Peterson" wrote in message
...
One way is to have your =vlookup() fix any wild card characters (* and ?)
and
the character that's used to indicate that it shouldn't be treated like a
wild
card (~):

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

===
And yep, what you wrote is correct.

TWC wrote:

The "~" symbol should be proceeded by "~" in the function, for example if
I
was looking for "123~" or "123?", etc., I would list this as "123~~" or
"123~?" in my function.

"TWC" wrote:

I am using the "vlookup" function and it does not recognize the "~"
tilde
symbol in the data I'm looking up. How do I get Excel to recognize the
symbol?


--

Dave Peterson





  #6   Report Post  
Dave Peterson
 
Posts: n/a
Default

Try putting this in A1:
asdf?asdf

Then in C1:C2
asdfqasdf
asdf?asdf
and in D1:D2
333
444

Then in B1:
=vlookup(a1,c:d,2,false)

I would expect you to get 333 instead of 444 that I would want.


KL wrote:

I tried it on my spreadsheet and it looks like, for some reason, ? needs no
special treatment in VLOOKUP, but ~ and * do.

KL

--
Saludos,
KL
(XL 97, 2000, 2002)
------------
Ojo - mi separador de argumentos en las formulas es la coma ",".
Puede q necesites cambiarla por punto y coma ";".

Para usar mi direccion de correo electronico privada
borra "NOSPAM" y "PLEASE" antes de usarla.
------------
"Dave Peterson" wrote in message
...
One way is to have your =vlookup() fix any wild card characters (* and ?)
and
the character that's used to indicate that it shouldn't be treated like a
wild
card (~):

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

===
And yep, what you wrote is correct.

TWC wrote:

The "~" symbol should be proceeded by "~" in the function, for example if
I
was looking for "123~" or "123?", etc., I would list this as "123~~" or
"123~?" in my function.

"TWC" wrote:

I am using the "vlookup" function and it does not recognize the "~"
tilde
symbol in the data I'm looking up. How do I get Excel to recognize the
symbol?


--

Dave Peterson


--

Dave Peterson
  #7   Report Post  
KL
 
Posts: n/a
Default

Thanks Dave.

KL

"Dave Peterson" wrote in message
...
Try putting this in A1:
asdf?asdf

Then in C1:C2
asdfqasdf
asdf?asdf
and in D1:D2
333
444

Then in B1:
=vlookup(a1,c:d,2,false)

I would expect you to get 333 instead of 444 that I would want.


KL wrote:

I tried it on my spreadsheet and it looks like, for some reason, ? needs
no
special treatment in VLOOKUP, but ~ and * do.

KL

--
Saludos,
KL
(XL 97, 2000, 2002)
------------
Ojo - mi separador de argumentos en las formulas es la coma ",".
Puede q necesites cambiarla por punto y coma ";".

Para usar mi direccion de correo electronico privada
borra "NOSPAM" y "PLEASE" antes de usarla.
------------
"Dave Peterson" wrote in message
...
One way is to have your =vlookup() fix any wild card characters (* and
?)
and
the character that's used to indicate that it shouldn't be treated like
a
wild
card (~):

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

===
And yep, what you wrote is correct.

TWC wrote:

The "~" symbol should be proceeded by "~" in the function, for example
if
I
was looking for "123~" or "123?", etc., I would list this as "123~~"
or
"123~?" in my function.

"TWC" wrote:

I am using the "vlookup" function and it does not recognize the "~"
tilde
symbol in the data I'm looking up. How do I get Excel to recognize
the
symbol?

--

Dave Peterson


--

Dave Peterson



  #8   Report Post  
KL
 
Posts: n/a
Default

Excel treats a single ~ as a wildcard character. Use another tilde to make
Excel understand it as a normal character:

=VLOOKUP("~~",A1:B5,2,FALSE)

the same will happen with another wildcard character - * (asterisk)

=VLOOKUP("~*",A1:B5,2,FALSE)

For more info see Help for "wildcard"

Regards,
KL
(XL 97, 2000, 2002)

"TWC" wrote in message
...
I am using the "vlookup" function and it does not recognize the "~" tilde
symbol in the data I'm looking up. How do I get Excel to recognize the
symbol?



  #9   Report Post  
TWC
 
Posts: n/a
Default

Thank you everybody. You all were a great help. Before I found this
discussion area, I spent hours looking on the Microsoft website, as well as
on the general internet trying to find an answer. I even tried calling
Microsoft support, who directed me to my computers manufacturer, which was no
help. Thanks again.

"TWC" wrote:

I am using the "vlookup" function and it does not recognize the "~" tilde
symbol in the data I'm looking up. How do I get Excel to recognize the
symbol?

  #10   Report Post  
Harald Staff
 
Posts: n/a
Default

"TWC" skrev i melding
...
I even tried calling
Microsoft support, who directed me to my computers manufacturer,


With an Excel formula problem ????????
Just when you thought you heard it all...

Best wishes Harald




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
How do I isolate my Excel server (automation) from other Excel instances? Joseph Geretz Excel Discussion (Misc queries) 5 July 19th 13 03:18 PM
Smart Tag in Excel does not recognize some stock symbols Chambersteacher Excel Discussion (Misc queries) 0 January 20th 05 11:13 PM
sharing/using/saving Excel 2002 files in Excel 2003 maze2009 Excel Discussion (Misc queries) 0 January 20th 05 07:27 PM
Excel 2002 and 2000 co-install. Control Which Starts ? cnuk Excel Discussion (Misc queries) 2 January 17th 05 08:07 PM


All times are GMT +1. The time now is 08:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"