# If Statement - Help Needed

1. ## 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. 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.

3. ## 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" <Portuga.225c61_1138118403.7266@excelforum-nospam.com> wrote in
message news:Portuga.225c61_1138118403.7266@excelforum-nospam.com...
>
> 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
>

4. ## 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

--

Dave Peterson

5. ## 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
>
>

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

#### 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