Using AND OR

G

Guest

Afternoon,

Sure just typed this, but anyway.

Scenario to explain.

I have a date in B11, with a value in F11 and another in L11 with more
values in O11:AA11.

So to explain my problem:

1. If there is a date in B11 AND OR
2. Cell F11 equals L11 but their values must not be zero

Then add O11:AA11

If all three of these criterias are meet then add up O11:AA11

I have this:

=IF(AND(B11="",F11=L11),0,(O11+Q11+S11+U11+W11+Y11+AA11))

Thanks
 
P

Pete_UK

Try this:

=IF(AND(B11>0,F11=L11,F11<>0),(O11+Q11+S11+U11+W11+Y11+AA11),0)

Hope this helps.

Pete
 
G

Guest

Thanks Pete.

Now I am getting greedy.

Want to add to the conditions. If cells F11 and L11 equal greater than
zero/nil but there is no data in O11+Q11+S11+U11+W11+Y11+AA11 or their sum
equals zero/nil, I want a message in the formula cell to say "Hey missing
some info here"

Thanks
 
P

PCLIVE

Maybe this:

=IF(AND(F11>=0,L11>=0,O11+Q11+S11+U11+W11+Y11+AA11=0),"Hey missing some info
here",IF(AND(B11>0,F11=L11,F11<>0),(O11+Q11+S11+U11+W11+Y11+AA11),0))
 
G

Guest

Great, works like a winner.

PCLIVE said:
Maybe this:

=IF(AND(F11>=0,L11>=0,O11+Q11+S11+U11+W11+Y11+AA11=0),"Hey missing some info
here",IF(AND(B11>0,F11=L11,F11<>0),(O11+Q11+S11+U11+W11+Y11+AA11),0))
 

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

Similar Threads

Evaluating more than 30 conditions using a formula 1
Repeat formula within a cell 5
If with countif or counta 3
If and Countif 2
efficiency 3
...lookup? 3
Cummulative Totals 4
find/replace 2

Top