logic (IF) functions

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

Guest

I have the following function that I am using to replace letter grades with
grade points. Excel will not allow me to enter more than seven nested
functions. Is there another way?
=IF(D3="a","4",IF(D3="b+","3.5",
IF(D3="b","3",IF(D3="c+","2.5",IF(D3="C","2",IF(D3="D+","1.5",IF(D3="D","1",IF(D3="F","0"))))))))
 
Nel post *elaine* ha scritto:
I have the following function that I am using to replace letter
grades with grade points. Excel will not allow me to enter more than
seven nested functions. Is there another way?
=IF(D3="a","4",IF(D3="b+","3.5",
IF(D3="b","3",IF(D3="c+","2.5",IF(D3="C","2",IF(D3="D+","1.5",IF(D3="D","1",IF(D3="F","0"))))))))

Till Excel 2003 there's a limit of 7 level of nested functions.
You can solve using a table and the VLOOKUP function.

--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy
 
Or if you insist of doing a long if statement, try to following:

=IF(LEFT(E9,1)="a",4,IF(LEFT(E9,1)="b",3,IF(LEFT(E9,1)="c",2,IF(LEFT(E9,1)="d",1,IF(LEFT(E9,1)="f","0","OUT
OF RANGE"))))) & IF(RIGHT(E9,1)="+",".5","")

HTH
 
You could try this:

=LOOKUP(D3,{"A","B","B+","C","C+","D","D+","F";4,3,3.5,2,2.5,1,1.5,0})
 
Back
Top