+ Reply to Thread
Results 1 to 4 of 4

If And

  1. #1
    Registered User
    Join Date
    06-01-2006
    Posts
    1

    If And

    Trying to build a small function as follows:

    AND(IF D2 <> "#NA", IF (E2 <> "#NA", "INACTIVE", ""))

    So, If D2 and E2 contains #NA, do nothing; If D2 or E2 contain #NA, do nothing; If D2 AND E2 contain anything other than #NA, then current cell = "INACTIVE".

  2. #2
    Bernie Deitrick
    Guest

    Re: If And

    ggriffis,

    =IF(OR(ISNA(D2),ISNA(E2)),"","INACTIVE")

    HTH,
    Bernie
    MS Excel MVP


    "ggriffis" <[email protected]> wrote in message
    news:[email protected]...
    >
    > Trying to build a small function as follows:
    >
    > AND(IF D2 <> "#NA", IF (E2 <> "#NA", "INACTIVE", ""))
    >
    > So, If D2 and E2 contains #NA, do nothing; If D2 or E2 contain #NA, do
    > nothing; If D2 *AND* E2 contain anything other than #NA, then current
    > cell = "INACTIVE".
    >
    >
    > --
    > ggriffis
    > ------------------------------------------------------------------------
    > ggriffis's Profile: http://www.excelforum.com/member.php...o&userid=35009
    > View this thread: http://www.excelforum.com/showthread...hreadid=547479
    >




  3. #3
    Marcelo
    Guest

    RE: If And

    try

    if(and((d2<>"#NA"),(E2<>"#NA")),"INACTIVE","")

    Hope its help
    Regards from Brazil
    Marcelo

    "ggriffis" escreveu:

    >
    > Trying to build a small function as follows:
    >
    > AND(IF D2 <> "#NA", IF (E2 <> "#NA", "INACTIVE", ""))
    >
    > So, If D2 and E2 contains #NA, do nothing; If D2 or E2 contain #NA, do
    > nothing; If D2 *AND* E2 contain anything other than #NA, then current
    > cell = "INACTIVE".
    >
    >
    > --
    > ggriffis
    > ------------------------------------------------------------------------
    > ggriffis's Profile: http://www.excelforum.com/member.php...o&userid=35009
    > View this thread: http://www.excelforum.com/showthread...hreadid=547479
    >
    >


  4. #4
    Ardus Petus
    Guest

    Re: If And

    =IF(OR(ISNA(D2),ISNA(E2)),"","INACTIVE")

    HTH
    --
    AP

    "ggriffis" <[email protected]> a écrit
    dans le message de news:
    [email protected]...
    >
    > Trying to build a small function as follows:
    >
    > AND(IF D2 <> "#NA", IF (E2 <> "#NA", "INACTIVE", ""))
    >
    > So, If D2 and E2 contains #NA, do nothing; If D2 or E2 contain #NA, do
    > nothing; If D2 *AND* E2 contain anything other than #NA, then current
    > cell = "INACTIVE".
    >
    >
    > --
    > ggriffis
    > ------------------------------------------------------------------------
    > ggriffis's Profile:
    > http://www.excelforum.com/member.php...o&userid=35009
    > View this thread: http://www.excelforum.com/showthread...hreadid=547479
    >




+ 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