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
Post a Comment