+ Reply to Thread
Results 1 to 5 of 5

Return blank cell if 'find' statement not true

  1. #1
    Kanga 85
    Guest

    Return blank cell if 'find' statement not true

    I wish to search text in A1 for the word "div". If it is present I want
    cell A6 to equal A4. If absent, I want cell A6 to be blank.

    When '=IF(FIND("div",A1),A4,"")' is placed in cell A6 it gives '#Value'
    instead of blank if A1 does not contain"div".

    This seems trivial, but how do I remedy the situation?

    Thanks

  2. #2
    Biff
    Guest

    Re: Return blank cell if 'find' statement not true

    Hi!

    Try one of these:

    =IF(ISNUMBER(FIND("div",A1)),A4,"")

    =IF(ISERROR(FIND("div",A1)),"",A4)

    Note: FIND is case sensitive so if the cell does not contain the EXACT
    (sub)string: div, the formula will return "".

    Replace FIND with SEARCH if you do not want the formula to be case sensitve.

    Biff

    "Kanga 85" <[email protected]> wrote in message
    news:[email protected]...
    >I wish to search text in A1 for the word "div". If it is present I want
    > cell A6 to equal A4. If absent, I want cell A6 to be blank.
    >
    > When '=IF(FIND("div",A1),A4,"")' is placed in cell A6 it gives '#Value'
    > instead of blank if A1 does not contain"div".
    >
    > This seems trivial, but how do I remedy the situation?
    >
    > Thanks




  3. #3
    Kanga 85
    Guest

    Re: Return blank cell if 'find' statement not true

    Thanks Biff

    "Biff" wrote:

    > Hi!
    >
    > Try one of these:
    >
    > =IF(ISNUMBER(FIND("div",A1)),A4,"")
    >
    > =IF(ISERROR(FIND("div",A1)),"",A4)
    >
    > Note: FIND is case sensitive so if the cell does not contain the EXACT
    > (sub)string: div, the formula will return "".
    >
    > Replace FIND with SEARCH if you do not want the formula to be case sensitve.
    >
    > Biff
    >
    > "Kanga 85" <[email protected]> wrote in message
    > news:[email protected]...
    > >I wish to search text in A1 for the word "div". If it is present I want
    > > cell A6 to equal A4. If absent, I want cell A6 to be blank.
    > >
    > > When '=IF(FIND("div",A1),A4,"")' is placed in cell A6 it gives '#Value'
    > > instead of blank if A1 does not contain"div".
    > >
    > > This seems trivial, but how do I remedy the situation?
    > >
    > > Thanks

    >
    >
    >


  4. #4
    Biff
    Guest

    Re: Return blank cell if 'find' statement not true

    You're welcome!

    Biff

    "Kanga 85" <[email protected]> wrote in message
    news:[email protected]...
    > Thanks Biff
    >
    > "Biff" wrote:
    >
    >> Hi!
    >>
    >> Try one of these:
    >>
    >> =IF(ISNUMBER(FIND("div",A1)),A4,"")
    >>
    >> =IF(ISERROR(FIND("div",A1)),"",A4)
    >>
    >> Note: FIND is case sensitive so if the cell does not contain the EXACT
    >> (sub)string: div, the formula will return "".
    >>
    >> Replace FIND with SEARCH if you do not want the formula to be case
    >> sensitve.
    >>
    >> Biff
    >>
    >> "Kanga 85" <[email protected]> wrote in message
    >> news:[email protected]...
    >> >I wish to search text in A1 for the word "div". If it is present I
    >> >want
    >> > cell A6 to equal A4. If absent, I want cell A6 to be blank.
    >> >
    >> > When '=IF(FIND("div",A1),A4,"")' is placed in cell A6 it gives
    >> > '#Value'
    >> > instead of blank if A1 does not contain"div".
    >> >
    >> > This seems trivial, but how do I remedy the situation?
    >> >
    >> > Thanks

    >>
    >>
    >>




  5. #5

    RE: Return blank cell if 'find' statement not true



    "Kanga 85" wrote:

    > I wish to search text in A1 for the word "div". If it is present I want
    > cell A6 to equal A4. If absent, I want cell A6 to be blank.
    >
    > When '=IF(FIND("div",A1),A4,"")' is placed in cell A6 it gives '#Value'
    > instead of blank if A1 does not contain"div".
    >
    > This seems trivial, but how do I remedy the situation?
    >
    > Thanks


+ 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