+ Reply to Thread
Results 1 to 6 of 6

Formula to find partial string in Cell (Please help)

Hybrid View

  1. #1
    Registered User
    Join Date
    03-08-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    13

    Formula to find partial string in Cell (Please help)

    Column A
    BKN
    NET
    CBT
    RJK
    FVS
    KLF
    KLFO
    KLMF


    Column B
    BKN - Body Kean North land #23899

    Column a has a list of reference cells, basically if Cell B1 contains any of the values is Column A. I want it to be marked true.
    I tried using index and search but no prevail please help

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Formula to find partial string in Cell (Please help)

    is the dash or space always there in column B strings
    =IF(COUNTIF(A2:A9,TRIM(LEFT(B2,FIND("-",B2,1)-1)))>0,TRUE,FALSE)
    or you can use the space replacing the dash inside the formula (bold part)
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Registered User
    Join Date
    06-20-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Formula to find partial string in Cell (Please help)

    If the first 3 positions always contain the value you wish to search for in your lookup table, then this can be handled with a vlookup. Set up a range name for your lookup table. For now, I will assume the lookup table is A1.a10.

    Then the formula in C1 is -- assuming the item to be looked up is in B1:

    =if(isna(vlookup(left(b1,3),a1:a10,1,false)),false, true)

  4. #4
    Registered User
    Join Date
    03-08-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Formula to find partial string in Cell (Please help)

    No the problem is that its not always the first 3 letters sometimes its within like below

    NORTH BKN Land kener brand

  5. #5
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Formula to find partial string in Cell (Please help)

    hi ckolawall, try:
    =ISNUMBER(LOOKUP(2^15,SEARCH($A$2:$A$9,B2)))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  6. #6
    Registered User
    Join Date
    03-08-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Formula to find partial string in Cell (Please help)

    @BENISHIRYO-
    Your a king among men

    Thank you all for the quick replies,

+ 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