akumar61

A

akumar61

Cany anyone tell me how to phrase following

If value in cell1<2.2 and value in cell2 is 1, return
If value in cell1>2.2 and value in cell2 is 0, return
If value in cell1 is blank, return blan

Thank

anand
 
J

JE McGimpsey

one way:

=IF(A1="","",IF(AND(A1<2.2,A2=1),1,IF(AND(A1>2.2,A2=0),0,"doesn't
meet criteria")

Note that you've left these of potential cases undefined:

A1=2.2
A1<2.2, A2<>1
A1>2.2, A2<>0
 
N

Niek Otten

And what in all the possible other cases?

--

Kind Regards,

Niek Otten

Microsoft MVP - Excel
 

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