+ Reply to Thread
Results 1 to 9 of 9

Formula For If & Or Condition

  1. #1
    Registered User
    Join Date
    01-23-2006
    Posts
    35

    Formula For If & Or Condition

    Hi,
    I am having a column with different values in different cells. I want to populate the adjacent cell with either blank or a value for eg."Found". So if the cell has the values "A" or "B" then populate the adjacent cell with blank else if the values or anything other than "A" and "B" then populate it with "Found". I tried this formula
    IF(E7<>"A",IF(E7<>"B","FOUND","")), but this does not work.
    Could somebody help me with this formula.

    Thanks & REgards
    Anand

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    =IF(AND(E7<>"A",E7<>"B",E7<>""),"found","")

    --

    Quote Originally Posted by anandmr65
    Hi,
    I am having a column with different values in different cells. I want to populate the adjacent cell with either blank or a value for eg."Found". So if the cell has the values "A" or "B" then populate the adjacent cell with blank else if the values or anything other than "A" and "B" then populate it with "Found". I tried this formula
    IF(E7<>"A",IF(E7<>"B","FOUND","")), but this does not work.
    Could somebody help me with this formula.

    Thanks & REgards
    Anand

  3. #3
    Ardus Petus
    Guest

    Re: Formula For If & Or Condition

    =IF(OR(E7="A";E7="B");"";"FOUND")

    HTH
    --
    AP

    "anandmr65" <[email protected]> a écrit
    dans le message de
    news:[email protected]...
    >
    > Hi,
    > I am having a column with different values in different cells. I want
    > to populate the adjacent cell with either blank or a value for
    > eg."Found". So if the cell has the values "A" or "B" then populate the
    > adjacent cell with blank else if the values or anything other than "A"
    > and "B" then populate it with "Found". I tried this formula
    > IF(E7<>"A",IF(E7<>"B","FOUND","")), but this does not work.
    > Could somebody help me with this formula.
    >
    > Thanks & REgards
    > Anand
    >
    >
    > --
    > anandmr65
    > ------------------------------------------------------------------------
    > anandmr65's Profile:

    http://www.excelforum.com/member.php...o&userid=30728
    > View this thread: http://www.excelforum.com/showthread...hreadid=533366
    >




  4. #4
    Ken Johnson
    Guest

    Re: Formula For If & Or Condition

    Hi Arnand,

    The only thing you did wrong was leave out the second condition for the
    first IF.
    IF(E7<>"A",IF(E7<>"B""FOUND",""),"") works. However, Ardus' solution is
    a simpler and easier to follow solution.

    Ken Johnson


  5. #5
    Registered User
    Join Date
    01-23-2006
    Posts
    35
    tHANKS A LOT FOR THE HELP

    REGARDS
    ANAND

  6. #6
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Hi Ken,

    unfortunately it reports 'FOUND' for blanks, as does your version, I would think that where E7 were blank the 'found' should not be displayed.

    Hope this helps

    --

    Quote Originally Posted by Ken Johnson
    Hi Arnand,

    The only thing you did wrong was leave out the second condition for the
    first IF.
    IF(E7<>"A",IF(E7<>"B""FOUND",""),"") works. However, Ardus' solution is
    a simpler and easier to follow solution.

    Ken Johnson

  7. #7
    Ken Johnson
    Guest

    Re: Formula For If & Or Condition

    Hi Bryan,

    My "stuff up" frequency with Boolean is very high.
    Thanks for helping me monitor it:-/

    Ken Johnson


  8. #8
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Ken,

    I can write as badly as anyone, but this was just:

    If( cond , 'found' , blank)

    where condition was that E7 be not equal to 'A', and not equal to 'B', and not blank.

    I like the simple things, then I can get involved

    --

    Quote Originally Posted by Ken Johnson
    Hi Bryan,

    My "stuff up" frequency with Boolean is very high.
    Thanks for helping me monitor it:-/

    Ken Johnson

  9. #9
    Bob Phillips
    Guest

    Re: Formula For If & Or Condition

    =IF(AND(E7<>"A",E7<>"B"),"FOUND","")

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "anandmr65" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Hi,
    > I am having a column with different values in different cells. I want
    > to populate the adjacent cell with either blank or a value for
    > eg."Found". So if the cell has the values "A" or "B" then populate the
    > adjacent cell with blank else if the values or anything other than "A"
    > and "B" then populate it with "Found". I tried this formula
    > IF(E7<>"A",IF(E7<>"B","FOUND","")), but this does not work.
    > Could somebody help me with this formula.
    >
    > Thanks & REgards
    > Anand
    >
    >
    > --
    > anandmr65
    > ------------------------------------------------------------------------
    > anandmr65's Profile:

    http://www.excelforum.com/member.php...o&userid=30728
    > View this thread: http://www.excelforum.com/showthread...hreadid=533366
    >




+ 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