• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Index+Match with special characters

farrusete

Member
Hi,

Im trying to get data from a different sheet table by matching IDs but im in troubles with values containing "~" character. For those the formula returns "#N/A"

=INDEX(Keywords[Description];MATCH([@Keyword];Keywords[Keyword];0))

How would you manage to get this working? (Id like to avoid manually replacing "~" character every time i update data tab.

Thank you in advance
 

Attachments

  • match.xlsx
    12.4 KB · Views: 17
@farrusete

"~" & "*" are wildcard character..
To actually denote "~" & "*", you have to type Double time it.. like "~~" or "**", Excel will assume, you are not using "~" as wildcard, but as a character.

Try this..
=INDEX(Keywords[[#All],[Description]],MATCH(SUBSTITUTE(Tabla2[[#This Row],[Keyword]],"~","~~"),Keywords[[#All],[Keyword]],0))

use Substitute to convert single time "~" to Double time "~~"

=INDEX(Keywords[Description];MATCH(SUBSTITUTE([@Keyword],"~","~~");Keywords[Keyword];0))
 
Back
Top