Nesting IF's and AND's - a bit of help please...

Nesting IF's and AND's - a bit of help please...

Post by neilcarde » Thu, 20 Sep 2007 04:32:46



Hi. I have 3 formula's which I would like merging into one?

=IF(AND(C3<$B$1,C3>1/1/1,D3=""),"N","")

=IF(AND(C3>$B$1,D3=""),"M","")

=IF(AND(C3>1/1/1,D3>1/1/1),"Y","")

I would like all these as one formula in cell E3?

I've had a try myself but am not very good at nesting functions....

Thanks in advance.




--
neilcarden
 
 
 

Nesting IF's and AND's - a bit of help please...

Post by T. Valk » Thu, 20 Sep 2007 12:49:43

I think you've confused everyone with this expression:

1/1/1

As it's written in your formula, it evaluates to:

1 divided by 1 divided by 1

Which equals 1.

Is that really what you had in mind?

--
Biff
Microsoft Excel MVP

 
 
 

Nesting IF's and AND's - a bit of help please...

Post by UmF5YXNpb2 » Thu, 20 Sep 2007 18:10:02

Hi,
Try this:
=IF(AND(C3<$B$1,C3>1/1/1,D3=""),"N",IF(AND(C3>$B$1,D3=""),"M",IF(AND(C3>1/1/1,D3>1/1/1),"Y","")))