+ Reply to Thread
Results 1 to 7 of 7

Vlookup LEFT of the "^" sign, IF "^" is present in the string

  1. #1
    Registered User
    Join Date
    01-02-2013
    Location
    New york
    MS-Off Ver
    Excel 2007
    Posts
    3

    Question Vlookup LEFT of the "^" sign, IF "^" is present in the string

    Hi,
    How can I write the Vlookup formula to look for data on Column B, that identifies all data that does not have the "^" present, and only data left of the "^", IF "^" is present?

    I am trying to run the lookup function on a field that may have the "^" sign in the "middle" of the B Column data. The "^" may not be present, but if it is, it can be positioned on the 6th, 7th, 8th, or 9th place. If it is present I need to lookup only the data to the LEFT of it.
    If/when I use the Left formula imbedded in the vlookup it works. However I have to manually adjust the formula according to the place of the "^" sign. When the list/table is very long that this solution is not practical.

    This works =VLOOKUP((LEFT($B4,8)),[Source_Data_Sample.xlsx]Source_Data_Sample!$A$2:$V$24,5,0)

    Here is a sample of the data on my table 1 :

    4968.OS
    4968.T
    4968.KAB^K11
    ACM.L^I08
    ACM.PO^I08

    and this is the data on "Surce_Data...table:
    4968.OS
    4968.T
    4968.KAB
    ACM.L
    ACM.PO

    Thank you,
    Constantin

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Vlookup LEFT of the "^" sign, IF "^" is present in the string

    Try this for your look up

    Please Login or Register  to view this content.
    (assuming the text is in A1)
    The Importance of INDEX - A GUIDE TO INDEX'S OTHER USES
    <--- If a post helps hit the star

  3. #3
    Registered User
    Join Date
    01-02-2013
    Location
    New york
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Vlookup LEFT of the "^" sign, IF "^" is present in the string

    ...no words, just a big smile; you're the man.
    Thank you

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Vlookup LEFT of the "^" sign, IF "^" is present in the string

    A bit shorter..

    Please Login or Register  to view this content.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Vlookup LEFT of the "^" sign, IF "^" is present in the string

    Shorter and elegant version:

    =LEFT(A1,FIND("^",A1&"^")-1)

  6. #6
    Registered User
    Join Date
    01-02-2013
    Location
    New york
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Vlookup LEFT of the "^" sign, IF "^" is present in the string

    nicely done; thank you

  7. #7
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Vlookup LEFT of the "^" sign, IF "^" is present in the string

    You're Welcome!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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