Microsoft Office Forums


Reply
Thread Tools Display Modes

How to replace ~ with other value ?

 
 
moonhkt
Guest
Posts: n/a

 
      03-08-2010, 06:34 AM
Hi Reader

I have some cell have ~ in order number column, How to replace ~ to
two -- ?
Due vlookup can not handle ~.

Moonhkt
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a

 
      03-08-2010, 09:00 AM
Double them up, that is use ~~

--

HTH

Bob

"moonhkt" <(E-Mail Removed)> wrote in message
news:c79e71a9-95f0-4f39-aa68-(E-Mail Removed)...
> Hi Reader
>
> I have some cell have ~ in order number column, How to replace ~ to
> two -- ?
> Due vlookup can not handle ~.
>
> Moonhkt



 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a

 
      03-08-2010, 11:45 AM
* and ? are wildcards for lots of excel functions (as well as the Edit|Find's).

The ~ character is the escape character that tells excel to not use them as
wildcards.

~* and ~?

And you use ~~ to tell excel not to use ~ as that escape character.

So if your data has the possibility of having *, ? or ~ in and each should not
be treated like wildcards/escape characters, then you could modify your
=vlookup() formula to something like:

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

If you don't care about the * and ? wildcards, you could use:

=VLOOKUP(SUBSTITUTE(A1,"~","~~"),Sheet2!$A:$B,2,FA LSE)



moonhkt wrote:
>
> Hi Reader
>
> I have some cell have ~ in order number column, How to replace ~ to
> two -- ?
> Due vlookup can not handle ~.
>
> Moonhkt


--

Dave Peterson
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Replace Text Based on Variable Search Sharkbyte Access Newsgroup 8 03-17-2010 12:48 PM
How to not allow entry of "Special Characters " in a data entry fo chris@ocelco.com Access Newsgroup 20 03-17-2010 12:28 PM
Help w/ Advanced Find and Replace VirtuAllin Excel Newsgroup 1 02-19-2010 12:13 PM



All times are GMT. The time now is 02:10 PM.