excel - Vlookup returns #N/A if string contains a ' -


i using vlookup statement: =vlookup(b1232,sheet1!a:b,2,0). cell in b1232 contains string:

'you rawk!!~'

with "'" inside string want go , find, program retursn #n/a. believe vlookup command omitting opening single-quote when runs search, true? there way work around can run vlookup?

i don't think quote problem - excel uses "~" [tilde] "escape character" has problem values contain "~". can use substitute function within vlookup replace "~" "~~" - when using 2 tildes first 1 tells excel treat second literal "~", i.e. use

=vlookup(substitute(b1232,"~","~~"),sheet1!a:b,2,0)

that work whether b1232 contains "~" or not


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -