If Statement multiple condition cells

vanther

New Member
Joined
Dec 8, 2011
Messages
24
Hi everyone I wonder if excel can do this. I have a conditions want to make like
Like if any of this cells A2,B2,C2,D2 and E2 has a value of "0" (zero) then F2 will put zero otherwise F2 will become 1..

Sorry I am new for this I am learning some basic functions..

THanks in advance....
 
Hi,

maybe in F2

Code:
=--(PRODUCT(A2:E2)>0)

or

Code:
=--(COUNTIF(A2:E2,0)<1)

Hope it helps
 
Last edited:
Upvote 0
This will go in F2

=if(and(a2=0,b2=0,c2=0,d2=0,e2=0),0,1) if all A2,B2,C2,D2 and E2 has a value of "0"
=if(or(a2=0,b2=0,c2=0,d2=0,e2=0),0,1) if either one A2,B2,C2,D2 and E2 has a value of "0"
 
Upvote 0
thanks for the quick reply... how about the conditions is what if
one of the cells get zero then F2 will be zero.. who to treat for that??
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top