+ Reply to Thread
Results 1 to 5 of 5

Find Formula Problem

  1. #1
    Registered User
    Join Date
    02-27-2006
    Posts
    3

    Find Formula Problem

    I have a user that is trying to find whether a cell contains a certain string (example, 2110) and then evaluate whether it does or not on a True/False basis. This is the formula he is trying to use:

    =IF(FIND("1220",B1),TRUE,FALSE)

    The problem arises when the FIND function does not find that value. It returns a #VALUE error, which is unable to be evaluated as true or false.

    Is there a way to do what he'd like to?

  2. #2
    Kevin Vaughn
    Guest

    RE: Find Formula Problem

    This formula seems to work:

    =IF(ISNUMBER(FIND(2110,B1)), TRUE, FALSE)

    --
    Kevin Vaughn


    "thigley986" wrote:

    >
    > I have a user that is trying to find whether a cell contains a certain
    > string (example, 2110) and then evaluate whether it does or not on a
    > True/False basis. This is the formula he is trying to use:
    >
    > =IF(FIND("1220",B1),TRUE,FALSE)
    >
    > The problem arises when the FIND function does not find that value. It
    > returns a #VALUE error, which is unable to be evaluated as true or
    > false.
    >
    > Is there a way to do what he'd like to?
    >
    >
    > --
    > thigley986
    > ------------------------------------------------------------------------
    > thigley986's Profile: http://www.excelforum.com/member.php...o&userid=31967
    > View this thread: http://www.excelforum.com/showthread...hreadid=516927
    >
    >


  3. #3
    Registered User
    Join Date
    02-27-2006
    Posts
    3
    Thanks, you're a life saver!

  4. #4
    CLR
    Guest

    RE: Find Formula Problem

    With the search string in A1,
    =IF(ISERR(FIND(A1,B1,1)),"String Not Found",IF(FIND(A1,B1,1),"TRUE","FALSE"))

    Vaya con Dios,
    Chuck, CABGx3


    "thigley986" wrote:

    >
    > I have a user that is trying to find whether a cell contains a certain
    > string (example, 2110) and then evaluate whether it does or not on a
    > True/False basis. This is the formula he is trying to use:
    >
    > =IF(FIND("1220",B1),TRUE,FALSE)
    >
    > The problem arises when the FIND function does not find that value. It
    > returns a #VALUE error, which is unable to be evaluated as true or
    > false.
    >
    > Is there a way to do what he'd like to?
    >
    >
    > --
    > thigley986
    > ------------------------------------------------------------------------
    > thigley986's Profile: http://www.excelforum.com/member.php...o&userid=31967
    > View this thread: http://www.excelforum.com/showthread...hreadid=516927
    >
    >


  5. #5
    Kevin Vaughn
    Guest

    Re: Find Formula Problem

    You're welcome!
    --
    Kevin Vaughn


    "thigley986" wrote:

    >
    > Thanks, you're a life saver!
    >
    >
    > --
    > thigley986
    > ------------------------------------------------------------------------
    > thigley986's Profile: http://www.excelforum.com/member.php...o&userid=31967
    > View this thread: http://www.excelforum.com/showthread...hreadid=516927
    >
    >


+ 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