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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
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
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,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

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