Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Andyp95
 
Posts: n/a
Default Using ~ in VLookup function


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


--
Andyp95
------------------------------------------------------------------------
Andyp95's Profile: http://www.excelforum.com/member.php...o&userid=24708
View this thread: http://www.excelforum.com/showthread...hreadid=382736

  #2   Report Post  
 
Posts: n/a
Default

Hi

Use two tildes, instead of one! Try "~~".

--
Andy.


"Andyp95" wrote in
message ...

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


--
Andyp95
------------------------------------------------------------------------
Andyp95's Profile:
http://www.excelforum.com/member.php...o&userid=24708
View this thread: http://www.excelforum.com/showthread...hreadid=382736



  #3   Report Post  
Andyp95
 
Posts: n/a
Default


Thanks for the suggestion - still no joy . . . .


--
Andyp95
------------------------------------------------------------------------
Andyp95's Profile: http://www.excelforum.com/member.php...o&userid=24708
View this thread: http://www.excelforum.com/showthread...hreadid=382736

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

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.



Andyp95 wrote:

Thanks for the suggestion - still no joy . . . .

--
Andyp95
------------------------------------------------------------------------
Andyp95's Profile: http://www.excelforum.com/member.php...o&userid=24708
View this thread: http://www.excelforum.com/showthread...hreadid=382736


--

Dave Peterson
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
VLOOKUP Function Chris Manning Excel Discussion (Misc queries) 2 June 2nd 05 10:26 PM
How do I access data stored in a SQL server for vlookup function? M.Heer Excel Worksheet Functions 8 May 12th 05 09:51 PM
VLOOKUP Function using Data Ranges. Cal Excel Worksheet Functions 6 April 16th 05 03:26 PM
Array Function with VLOOKUP CoRrRan Excel Worksheet Functions 15 April 8th 05 05:54 PM
Simplify Vlookup function in Excel Budman Excel Worksheet Functions 7 March 27th 05 04:17 PM


All times are GMT +1. The time now is 10:44 PM.

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

About Us

"It's about Microsoft Excel"