logic (IF) functions

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"))))))))
 
F

Franz Verga

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
 
B

Bearacade

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
 
N

Nick Hodge

Franz

Petty, but it's until XL2007, in case anyone tries more in XL2003

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
www.nickhodge.co.uk
(e-mail address removed)
 
R

Ragdyer

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})
 

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

Top