+ Reply to Thread
Results 1 to 5 of 5

Searching for text in a string

  1. #1
    Registered User
    Join Date
    09-10-2012
    Location
    France
    MS-Off Ver
    Excel 2007
    Posts
    9

    Searching for text in a string

    Hi All

    Can anyone help, this one might be a bit of a challange...... i'm trying to find a formula that looks into a cell for certain text, so for instance in the example below there is a text range in cell B1 "OSNO NOTE OSTS NOPT INT" i want to search in this text range for the words "INT or EXT or INIT", then i want to display the text found in cell C, does anyone know if this is possible ?

    Presentation1.jpg

    Thanks

    Jedski
    Last edited by Jedski; 09-10-2012 at 01:05 PM.

  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

    Re: Searching for text in a string

    With your sample data in B1:B3
    AND...
    This list in G1:G3
    INT
    EXT
    INIT

    This regular formula returns the last Col_G list word that is found in Col_B
    C1: =IFERROR(LOOKUP(10^99,SEARCH($G$1:$G$3,B1),$G$1:$G$3),"No Match")

    Copy thatformula down through C3

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

  3. #3
    Registered User
    Join Date
    09-10-2012
    Location
    France
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Searching for text in a string

    Thanks Ron

    I've added a simple attachment showing what i'm trying to do, from this and my description do you think this could work ?

  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: Searching for text in a string

    There's no native Excel formula that will highlight specific text within a cell.
    What you're looking for could be done with VBA.

  5. #5
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: Searching for text in a string

    This appears to be the same question that you're asking here: http://www.excelforum.com/excel-form...ther-cell.html
    Brendan.


    __________________________________________________________________________________________________
    Things to consider:

    1) You can thank any poster by clicking the * at the left of a helpful post.
    2) You can help to keep the forum tidy by marking your thread as "Solved", if it has been answered to your satisfaction.
    3) Help us to help you, by uploading a sample workbook, showing the type of data you're dealing with, and clearly indicating what the results should be.

+ 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