how to do i use a function if cells contain grades A B C f print.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

suppose cells contain A, B, C and D which function do I have to use to print
"pass" or "fail"
 
Hi!

It depends on which letters correspond to "Pass" or "Fail".

Using A, B, C and D. "D" is a failing grade. Assuming that a cell may only
contain either an A, B, C or D and nothing else.

A1= letter grade

=IF(A1="","",IF(A1="D","Fail","Pass"))

Biff
 
It depends on what pass and fail are, is A and B pass and C and D fail?

=IF(OR(A1="A",A1="B"),"Pass","Fail")

--
Regards,

Peo Sjoblom

(No private emails please)
 
Care to be more specific, if not, possibly you are talking about student test grades.
IF Worksheet Function

=IF(OR(A1="A", A1="B", A1="C", A1="D"), "pass", "fail")

=IF(A1>"D", "fail","pass")

=IF(AND(A1>="A",A1<="F"),IF(A1>"D", "fail","pass"),"")

More on grading, not necessarily related to your question.
http://www.mvps.org/dmcritchie/excel/vlookup.htm#grading
 

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