+ Reply to Thread
Results 1 to 4 of 4

function IF to return text based if text contains exact text

  1. #1
    Registered User
    Join Date
    11-05-2013
    Location
    Europe
    MS-Off Ver
    Excel 2007
    Posts
    6

    Question function IF to return text based if text contains exact text

    Hi guys, newbie here.

    Looking for formula that, in row "Description" I have comments like this: "OPPOSITE TAB SIDE DISCHARGE REED AND BOOSTER FRACTURED" or "TAB SIDE DISCHARGE RETAINING BOLT/NUT ASSEMBLY LOOSE IN"
    This comments are always different, but always contains Opposite tab and/or Tab side

    I need a formula that will dump information type: Opposite tab or Tab side, but in case that that description doesn't contain any of them return "Not found"

    I have tried this one:
    =IF(ISNUMBER(SEARCH("OPPOSITE TAB";O2));"OPP SIDE";"TAB SIDE")

    Any idea?

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: function IF to return text based if text contains exact text

    Try this:

    =IF(ISNUMBER(SEARCH("OPPOSITE TAB";O2));"OPP SIDE";IF(ISNUMBER(SEARCH("TAB SIDE";O2));"TAB SIDE";"Not found"))

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    11-05-2013
    Location
    Europe
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: function IF to return text based if text contains exact text

    Great dude ! Thanks bro

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: function IF to return text based if text contains exact text

    Glad to help.

    If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, I would like to inform you that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. If cell contains certain text and certain text then return predefined text
    By fuzzhead in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-25-2014, 02:18 PM
  2. [SOLVED] Exact text match within a SUMIF function
    By afgoody in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-17-2013, 11:35 PM
  3. [SOLVED] nested if function trying to find text and return text in different cell
    By shelbyleighh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-14-2013, 12:16 PM
  4. Comparing two text columns and return data based on an exact match
    By AShah33 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-04-2013, 04:23 PM
  5. Replies: 4
    Last Post: 04-02-2012, 07:37 AM

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