+ Reply to Thread
Results 1 to 10 of 10

Find an specific text in a cell

  1. #1
    Registered User
    Join Date
    06-30-2015
    Location
    France
    MS-Off Ver
    2010
    Posts
    5

    Talking Find an specific text in a cell

    Hello Everybody,

    It's my first time in a Forum, and after looking around in different forums (and not finding the answer) i'm finally here asking for some help.

    I want to be able to find a specific text in a cell, and i've found several explanations, but not for my problem.

    The example:

    My cell has the following information:

    "0-IMDA046_Article (example) PACE->EPS" all that in just one single cell

    I want to be able to search inside this cell the text "MDA" and if the cell contains this text the answer is 1, otherwise it's empty or 0.


    I've tried: =IF(ISNUMBER(SEARCH("MDA",A1)),1,0)

    This was the closest i could get

    Could someone help me?


    Thank you

    Leandro

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,080

    Re: Find an specific text in a cell

    That formula works for me
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Find an specific text in a cell

    Worked for me too?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  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: Find an specific text in a cell

    Can you post an example of where that formula returns the wrong value?

    Also...If that formula actually does return correct values...this alternative is more efficient:
    B1: text to find.....MDA
    Please Login or Register  to view this content.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  5. #5
    Registered User
    Join Date
    06-30-2015
    Location
    France
    MS-Off Ver
    2010
    Posts
    5

    Re: Find an specific text in a cell

    My Office Excel is 2010, yours too?

  6. #6
    Registered User
    Join Date
    06-30-2015
    Location
    France
    MS-Off Ver
    2010
    Posts
    5

    Re: Find an specific text in a cell

    =IF(ISNUMBER(SEARCH("MDA",A1)),1,0)

    The error is at "MDA",A1 @Ron Coderre

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Find an specific text in a cell

    the office version should not make a difference. I have tested it in 2003 to 2013

  8. #8
    Registered User
    Join Date
    06-30-2015
    Location
    France
    MS-Off Ver
    2010
    Posts
    5

    Re: Find an specific text in a cell

    =IF(ISNUMBER(SEARCH("MDA";A1;1));1;0)

    I Just added a "1" after A1, changed some comas and it worked!

    Thank your your help!! :D

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Find an specific text in a cell

    Aaahh the problem was the regional settings. You needed ; instead of ,

    Good catch

  10. #10
    Registered User
    Join Date
    06-30-2015
    Location
    France
    MS-Off Ver
    2010
    Posts
    5

    Re: Find an specific text in a cell

    Thx FDibbins, so simple but still so difficult!

+ 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. [SOLVED] VBA to Find Specific Text, then Copy range to next open cell under specific text
    By Remotruker in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-24-2015, 10:59 AM
  2. [SOLVED] how to find specific text within a cell
    By Dena in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-17-2014, 01:26 PM
  3. Replies: 2
    Last Post: 08-05-2013, 07:32 PM
  4. How to find whether a cell contain specific text
    By bipin_chandarana in forum Excel General
    Replies: 3
    Last Post: 02-18-2012, 04:18 AM
  5. [SOLVED] Find text in specific cell??
    By Dewey in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-07-2006, 11:25 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