+ Reply to Thread
Results 1 to 4 of 4

VLookup in column of text strings?

  1. #1
    Registered User
    Join Date
    06-25-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2003
    Posts
    9

    Exclamation VLookup in column of text strings?

    Hi Folks, could really use some help here.

    I've got 100 rows of 20-letter text strings like the list below
    How can i check if a specific number is the 8th character in one of text strings?
    "DOES this number in cellA1, once converted to text, match Mid(8,2) in any of the strings in this column range?

    eg: trying to lookup if the number 10 does appear in this list (shortened)

    20-letter text strings below:
    CQN CN 8 C48 Equity
    CQN CN 9 C50 Equity
    CQN CN 10 C50 Equity <-- here it is!
    CQN CN 11 C50 Equity

    many thanks to all. L.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: VLookup in column of text strings?

    a few options
    =IF(ISNUMBER(FIND("10 ",A2)),"found","not found")
    =IF(MID(A2,8,2)="10","found","not found")
    =VLOOKUP("*10 *",A2:C5,2, FALSE)
    or array entered with CTRL+SHIFT+ENTER
    =MATCH("10",MID(A2:A5,8,2),0)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    03-22-2010
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: VLookup in column of text strings?

    How would this be extended to look for one of 2 characters in the same place in a text string?
    i.e. look for a J or F in the 9th position of a text string and return Y or N

    Thanks

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: VLookup in column of text strings?

    Buzzpipaluk,

    If you are not providing a solution or querying the OP specifically about the original question, then do not ask a question in the thread of another member. Please start your own thread.. if relevant, add a link to this one.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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