+ Reply to Thread
Results 1 to 4 of 4

IF(ISNUMBER(SEARCH(Find Text, Within Text)),True, False)

  1. #1
    Registered User
    Join Date
    06-28-2011
    Location
    Essex, England
    MS-Off Ver
    Excel 2007
    Posts
    23

    Question IF(ISNUMBER(SEARCH(Find Text, Within Text)),True, False)

    Hello,

    I hope someone can shed some light on this for me.

    Why do you need to use ISNUMBER in the formula above?

    Thanks in advance.

    Lucraft.
    Last edited by lucraft; 11-21-2011 at 06:44 AM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: IF(ISNUMBER(SEARCH(Find Text, Within Text)),True, False)

    SEARCH() returns the position of the search string withing the string to be searched, i.e. a number, or a #VALUE! error if not found.

    Therefore if the string is found the function ISNUMBER() will return TRUE

    You probably don't need the IF() statement, this will return TRUE or FALSE
    Please Login or Register  to view this content.
    Last edited by Marcol; 11-14-2011 at 12:31 PM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: IF(ISNUMBER(SEARCH(Find Text, Within Text)),True, False)

    Did you have a look at XL's help and what SEARCH returns? Click F1 to find help

  4. #4
    Registered User
    Join Date
    06-28-2011
    Location
    Essex, England
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: IF(ISNUMBER(SEARCH(Find Text, Within Text)),True, False)

    I get it! SEARCH actually returns a number which relates to the location of the "Find_Text".

    Thanks for your help!


+ 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