+ Reply to Thread
Results 1 to 5 of 5

=IF ( FIND ( xxx gives a #VALUE! so the 'Not True' is not executed

Hybrid View

  1. #1
    Registered User
    Join Date
    10-23-2012
    Location
    Belgium
    MS-Off Ver
    Excel 2007
    Posts
    4

    Thumbs up =IF ( FIND ( xxx gives a #VALUE! so the 'Not True' is not executed

    Hello Forum,
    I am quit experienced in Excel one say, but I probably forgot how to tacle next problem.

    =IF(FIND("DATE";A2;1) > 0; MID(A2;1;FIND("DATE";A2;1)-2); A2)

    A2 is "Are you available at DATE : xxxx" end gives the right result, but....

    if A2 is i.e. "Are you available at xxxx" then the result is #VALUE!

    How to check on #VALUE! (TRUE or another check ???) or how to change my FIND clause

    Thanks for your help if possible
    Regards Frank / Fschou

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

    Re: =IF ( FIND ( xxx gives a #VALUE! so the 'Not True' is not executed

    You would normally use it like this:

    =IF(ISNUMBER(FIND(...)), action_if_found, action_if_not_present)

    SEARCH might be better than FIND, as it is not case-sensitive.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    10-23-2012
    Location
    Belgium
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: =IF ( FIND ( xxx gives a #VALUE! so the 'Not True' is not executed

    Thanks Pete, it works and also the solution from "ConnectionLost" (IFERROR) works perfect

    Regards Fschou / Frank

  4. #4
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: =IF ( FIND ( xxx gives a #VALUE! so the 'Not True' is not executed

    How about:

    =IFERROR(MID(A2;1;FIND("DATE";A2;1)-2);A2)
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  5. #5
    Registered User
    Join Date
    10-23-2012
    Location
    Belgium
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: =IF ( FIND ( xxx gives a #VALUE! so the 'Not True' is not executed

    Thanks Forum Guru,
    Yes its so simple and IT WORKS ...

    Pete send me the "IF(ISNUMBER(FIND(...)), solution that works also.

    OK Regards Frank / Fschou

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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