+ Reply to Thread
Results 1 to 4 of 4

Simulating A LIKE or CONTAINS Function in excel

  1. #1
    Registered User
    Join Date
    12-16-2008
    Location
    Phoenix
    Posts
    12

    Simulating A LIKE or CONTAINS Function in excel

    If I have a column with records of text (approximately 15 words each record) and I want column B to display TRUE or FALSE (or a paramter of my choosing) if it contains a word of my choice how do I do this?

    Is their a way of simulating a LIKE or CONTAINS function in excel.

    Thanks for any help in adavance.
    Last edited by smylod; 02-09-2009 at 05:10 PM.

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

    Re: Simulating A LIKE or CONTAINS Function in excel

    Try SEARCH() or FIND()

    Find() is case-sensitive

    e.g. =Search("Dog",A1) will look for Dog in A1 and show it's position...

    you can add to it... =Isnumber(Search("Dog",A1)) will return TRUE/FALSE or

    =If(Isnumber(Search("Dog",A1)),"Yes","No") to return your chosen words...
    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.

  3. #3
    Registered User
    Join Date
    12-16-2008
    Location
    Phoenix
    Posts
    12

    Re: Simulating A LIKE or CONTAINS Function in excel

    Thank you so much! Very helpful-

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

    Re: Simulating A LIKE or CONTAINS Function in excel

    With
    D1: (a word to search other cells for.....eg frisbee)
    Try something like this:

    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

+ 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