multicondition if

J

jade

Hi !

How could I do this:

I have numbers in cells a1,b1 and c1. If 2 of those
numbers are greater than 10, I want 12 in d1. In all other
cases d1 is 0. Thanx !
 
B

Bob Phillips

In D1

=IF(OR(AND(A1>10,B1>10),AND(B1>10,C1>10),AND(A1>10,C1>10)),12,0)

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
B

Bob Phillips

or even

=IF(COUNTIF(A1:C1,">10")>1,12,0)

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
G

Guest

Thanx Bob !

But if all three numbers are greater than 10, the result
in D1 should be 0.

Greetings

J
 
M

Max

Think that should be >=IF(COUNTIF(A1:C1,">10")>=2,12,0)

This won't return 0 (it returns 12) if all 3 numbers are greater than 10,
which was the OP's specs in response to Bob's earlier suggestion, re:
 

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

Top