+ Reply to Thread
Results 1 to 3 of 3

Vlookup to find part of text string

  1. #1
    Registered User
    Join Date
    02-04-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    23

    Vlookup to find part of text string

    I am trying to use VLookup in my macro to search for a part of a text string, so far I have
    Range("C33").End(xlUp).Offset(1, 0).Select
    ActiveCell.Formula = "=VLOOKUP(B169&" * ",b169:D185,2,FALSE)"
    but keep getting a Type Mismatch error. Can anyone point out where I am going wrong?

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Vlookup to find part of text string

    Try it with double double-quotes around the asterisk, like this:

    Please Login or Register  to view this content.
    In future use CODE tags around any element of code (the # symbol in the editor).

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    02-04-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Vlookup to find part of text string

    Works, thank you :-)
    Will add CODE tags next time too, thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1