+ Reply to Thread
Results 1 to 5 of 5

If Statement - Help Needed

  1. #1
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852

    If Statement - Help Needed

    A1 B1 C1 D1
    A2 B2 C2 D2
    A3 B3 C3 D3

    How can I do the following in A1, A2, A3:

    If B1 AND B2 AND B3 are Blank the A1=YES.
    IF B1 OR B2 OR B3 have any values then A1= NO

    Thanks!

  2. #2
    Forum Contributor
    Join Date
    06-23-2004
    Location
    Houston, TX
    Posts
    571
    Quote Originally Posted by Portuga
    A1 B1 C1 D1
    A2 B2 C2 D2
    A3 B3 C3 D3

    How can I do the following in A1, A2, A3:

    If B1 AND B2 AND B3 are Blank the A1=YES.
    IF B1 OR B2 OR B3 have any values then A1= NO

    Thanks!
    In Cell A1, enter this formula:

    =if(and(B1="",B2="",B3=""),"YES","NO")

    Modify as required if you need the same/similar conditions for A2 and A3.


    Regards.
    BenjieLop
    Houston, TX

  3. #3
    Max
    Guest

    Re: If Statement - Help Needed

    One way which might suffice:
    In A1: =IF(COUNTBLANK(B1:B3)=3,"Yes","No")
    (I'm not sure what you want in A2 and A3)
    --
    Max
    Singapore
    http://savefile.com/projects/236895
    xdemechanik
    ---
    "Portuga" <[email protected]> wrote in
    message news:[email protected]...
    >
    > A1 B1 C1 D1
    > A2 B2 C2 D2
    > A3 B3 C3 D3
    >
    > How can I do the following in A1, A2, A3:
    >
    > If B1 _AND_ B2 _AND__B3 are Blank the A1=YES.
    > IF B1 _OR_ B2 _OR_ B3 have any values then A1= NO
    >
    > Thanks!
    >
    >
    > --
    > Portuga
    > ------------------------------------------------------------------------
    > Portuga's Profile:

    http://www.excelforum.com/member.php...fo&userid=6385
    > View this thread: http://www.excelforum.com/showthread...hreadid=504504
    >




  4. #4
    Dave Peterson
    Guest

    Re: If Statement - Help Needed

    In A1:
    =if(counta(b1:b3)=0,"Yes","no")

    would work if b1:B3 are really empty.

    Portuga wrote:
    >
    > A1 B1 C1 D1
    > A2 B2 C2 D2
    > A3 B3 C3 D3
    >
    > How can I do the following in A1, A2, A3:
    >
    > If B1 _AND_ B2 _AND__B3 are Blank the A1=YES.
    > IF B1 _OR_ B2 _OR_ B3 have any values then A1= NO
    >
    > Thanks!
    >
    > --
    > Portuga
    > ------------------------------------------------------------------------
    > Portuga's Profile: http://www.excelforum.com/member.php...fo&userid=6385
    > View this thread: http://www.excelforum.com/showthread...hreadid=504504


    --

    Dave Peterson

  5. #5
    Ron Coderre
    Guest

    RE: If Statement - Help Needed

    Try this:
    A1: =IF(COUNTA(B1:B3),"No","Yes")

    Does that help?

    ***********
    Regards,
    Ron

    XL2002, WinXP-Pro


    "Portuga" wrote:

    >
    > A1 B1 C1 D1
    > A2 B2 C2 D2
    > A3 B3 C3 D3
    >
    > How can I do the following in A1, A2, A3:
    >
    > If B1 _AND_ B2 _AND__B3 are Blank the A1=YES.
    > IF B1 _OR_ B2 _OR_ B3 have any values then A1= NO
    >
    > Thanks!
    >
    >
    > --
    > Portuga
    > ------------------------------------------------------------------------
    > Portuga's Profile: http://www.excelforum.com/member.php...fo&userid=6385
    > View this thread: http://www.excelforum.com/showthread...hreadid=504504
    >
    >


+ 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