+ Reply to Thread
Results 1 to 8 of 8

find string in array with similar data

  1. #1
    Forum Contributor
    Join Date
    12-18-2008
    Location
    Slovakia
    MS-Off Ver
    Office 2016
    Posts
    162

    find string in array with similar data

    hi,
    can you help me please?
    I search function, which help me find data from column B in data in column A
    f.e.
    column A
    1 car
    2 bad
    3 something
    4 fish

    column B
    1 fi
    2 play
    3 thing
    4 some

    i want something like vlookup, but i dont search exactly "equal to", but "contain"
    i want write to column C formula, that find in each row if is something similar in column B . In this example will be result something like:
    C
    1 YES
    2 N/A
    3 YES
    4 YES

    is this possible?

    thx
    ps. sorry for my very bad english

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Check a string exists in a range

    Using your example:
    Please Login or Register  to view this content.
    Copy that formula down.

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Contributor
    Join Date
    12-18-2008
    Location
    Slovakia
    MS-Off Ver
    Office 2016
    Posts
    162
    in this time i dont have a possibility to try your formula in excel 2003, because i want use it in work

    at home i have only open office 3, but there wote it error:508
    on monday a try it

    thanke you very much i will try it later

  4. #4
    Forum Contributor
    Join Date
    12-18-2008
    Location
    Slovakia
    MS-Off Ver
    Office 2016
    Posts
    162
    hi,
    this formula doesnt work for me:
    =IF(COUNTIF($A$1:$A$4,"*"&B1&"*"),"YES","n/a")

    When i give "enter" after i write it, it doesnt show any error, but it highlight in formula this part "$A$4,"" and thats all.

    if i escape it, formula is in cell, but only as text.

    can you help me?
    thx

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    Take a look at this sample workbook of your data. It appears to be working fine.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  6. #6
    Forum Contributor
    Join Date
    12-18-2008
    Location
    Slovakia
    MS-Off Ver
    Office 2016
    Posts
    162
    yes, this works great.
    OK, i try it based on this file.
    thanke you very much.


    this is very good web

  7. #7
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    find string in array with similar data

    I'm guessing there's a typo in your formula. If you copy the formula from the
    post, it should work.

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    If your problem is resolved, please EDIT your original post (Go Advanced) and change the PREFIX box to [SOLVED]

+ 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