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

  • Thread starter Thread starter neilcarden
  • Start date Start date
N

neilcarden

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.
 
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?
 
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","")))
 

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

Back
Top