if statement 3 conditions-dumb question

engineer33

Board Regular
Joined
Sep 18, 2011
Messages
55
guys i know this might be a dumb question
here it is

basically i have 3 cells

3 conditions

cell 1: 23
cell 2: 40
cell 3: 4

cell 4: answer

=IF((cell2<0)*OR(cell1=0,cell3=""),"",cell4)

it is a bit tricky sorry if this is lame to you.

regards,
 
Last edited:

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
What are you trying to do exactly? I don't think the expression you've written here will give meaningful answers.

Cheers, :)
 
Upvote 0
i have 4 cells

i need to but 3 conditions

cell1:9
cell2:3
cell3:7


should display if criterial is met
cell4:5000

what i am trying to do is
if cell1 and cell2 are >0
and if cell3 is less <0

than display cell 4
 
Upvote 0
=IF((cell2<0)*OR(cell1=0,cell3=""),"",cell4)

You can't multiply something by the result of an or statement, I don't get that part. OR do you mean, (IF cell2 is less than zero, or cell1 = 0, or cell3 = "") ?? 3 tests within the or statement??

Then if the IF statement returns false, you want to return the value of cell4?
 
Upvote 0
=IF(AND(AND(Cell1>0,Cell2>0),Cell3<0),Cell4,"")

If false it will do nothing and show nothing, as written.
 
Upvote 0
what i am trying to do is
if cell1 and cell2 are >0
and if cell3 is less <0

than display cell 4

Based on what you say here, try:

=If(AND(A1>0,A2>0,A3<0),A4,"")

where A1,A2,A3 AND A4 are cells 1-4, respectively.

Cheers, :)
 
Upvote 0
HAHAHA...don't know why I nested the ANDs....loss of brain for a second.

Use shawnhet's formula.
 
Upvote 0

Forum statistics

Threads
1,216,743
Messages
6,132,461
Members
449,729
Latest member
davelevnt

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