If Statement - Help Needed

P

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!
 
M

Max

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)
 
B

BenjieLop

Portuga said:
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.
 
G

Guest

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

Does that help?

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

XL2002, WinXP-Pro
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top