ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   If Statement - Help Needed (https://www.excelbanter.com/excel-discussion-misc-queries/67060-if-statement-help-needed.html)

Portuga

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!


--
Portuga
------------------------------------------------------------------------
Portuga's Profile: http://www.excelforum.com/member.php...fo&userid=6385
View this thread: http://www.excelforum.com/showthread...hreadid=504504


Max

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" wrote in
message ...

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

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

BenjieLop

If Statement - Help Needed
 

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!


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


------------------------------------------------------------------------
BenjieLop's Profile: http://www.excelforum.com/member.php...o&userid=11019
View this thread: http://www.excelforum.com/showthread...hreadid=504504


Ron Coderre

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




All times are GMT +1. The time now is 11:38 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com