if statement - Excel nesting error -


another question! i'm using excel 2013 , have had create if statement chooses students grade depending on mark number (obviously nesting needed) here if statement created

=if(e2<=20,"n", if(or(e2>=21,e2<=25),4,     if(or(e2>=26,e2<=32),"5c",         if(or(e2>=33,e2<=38),"5b",              if(or(e2>=39, e2<=44), "5a",                  if(or(e2>=45, e2<=53), "6c",                      if(or(e2>=54, e2<=61), "6b",                          if(or(e2>=62, e2<=71), "6a",                              if(or(e2>=72, e2<=87), "7c",                                  if(or(e2>=88, e2<=103), "7b",                                      if(or(e2>=104, e2<=120), "7a"))))))))))) 

the error recieve "the specified formula cannot entered because uses more levels of nesting allowed in current file format" question is, how shorten statement allow excel use it?

place logic in spreadsheet cells. 1 column minimum score, , 1 column grade-:

           b  1      0     n 2      21    4 3      26    5c 4      33    5b 5      39    5a 6      45    6c 7      54    6b 8      72    7c 9      88    7b 10    104    7a 

then vlookup grade actual score. vlookup find highest value in column less lookup value of 38.

in example vlookup below 38 score, a1:b10 lookup table 2 2nd column (in case b column) contains result (the grade).

=vlookup(38, a1:b3, 2, true) 

Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -