Forum Discussion

Deleted's avatar
Deleted
Aug 20, 2018
Solved

Vlookup with '*' wildcard character

Hello Experts ,

 

Could you please help me with trick or method to use v-lookup on 'wildcard' character.

e.g. 7K_*1 should return '3' using v-lookup.

 

7K_111
7K_122
7K_*13
7K_*24

 

Regards,

Rajiv

 

9 Replies

    • Lorenzo Kim's avatar
      Lorenzo Kim
      Bronze Contributor

      Mr. Mickle

      good day!

      why substitute with "~*"  ?

      many thanks

      • Matt Mickle's avatar
        Matt Mickle
        Bronze Contributor
        Excel interprets the asterisk is a wildcard. In order to interpret it as a literal you need to put a tilde in front of it.

        The same behavior is true for Find and Replace. If you want to replace a literal asterisk, you have to used the tilde symbol.
  • Lorenzo Kim's avatar
    Lorenzo Kim
    Bronze Contributor

    try: Vlookup(A2,sheet1!(range),2,TRUE)
    the true will search for 'almost match'
    while FALSE will find EXACT match..
    HTH

    • Deleted's avatar
      Deleted
      Its giving '1' not '3'
      • Lorenzo Kim's avatar
        Lorenzo Kim
        Bronze Contributor

        try sorting the list -- the answer will be correct

        this time I think it shoud be set to FALSE

        HTH

Resources