ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Using ~ in VLookup function (https://www.excelbanter.com/excel-worksheet-functions/32802-using-%7E-vlookup-function.html)

Andyp95

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



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




Andyp95


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

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


All times are GMT +1. The time now is 10:27 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com