• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Can a logical test work for this?

jakefh

New Member
Hello.

I have 4 possible outcomes from 2 cells. I've tried logical test combinations without success.

I would like column C to return "E&M", "None", "Need English" or "Need maths" based on the references in columns A and B.

The A and B columns only have "Y" or "N" in them, so I've listed the possible combinations and what I would like to be returned in column C.

I have 2007 at work, but could use 2010 at home if needed.

Thanks in advance to anyone who can help.

Jake
 

Attachments

Hi Jakefh....

Based on the possible output provided by you in file...place this formula in C2 and copy down.

Code:
=IF(AND(A2="N",B2="N"),"None",IF(AND(A2="Y",B2="Y"),"E&M",IF(AND(A2="Y",B2="N"),"Need E",IF(AND(A2="N",B2="Y"),"Need M"))))

Tell if you want anything different from this.

Somendra.
 
I can't get it less than 62 characters
But heres another go also at 62 Characters
=INDEX({"E&M";"Need M";"Need E";"None"},(A2="N")+2*(B2="N")+1)
 
IT'S A FORMULA WALK OFF!
walkoff.jpg
 
I can't get it less than 62 characters
But heres another go also at 62 Characters
=INDEX({"E&M";"Need M";"Need E";"None"},(A2="N")+2*(B2="N")+1)
Maybe this will help ;):
Code:
="Need "&INDEX({"E&M";"M";"E";"None"},(A2="N")+2*(B2="N")+1)

Only 60 chars!
 
Back
Top