ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Need formula for: if A6=100 thru 125, then "A", etc thru "S" (https://www.excelbanter.com/excel-worksheet-functions/20908-need-formula-if-a6%3D100-thru-125-then-%22%22-etc-thru-%22s%22.html)

Lynn Marie

Need formula for: if A6=100 thru 125, then "A", etc thru "S"
 
Since nesting doesn't exceed 7 ... for scoring purposes, I need a formula
that will allow results through "S" for "IF A6 = 100 through 125, then "A";
IF A6 = 126 through 150, then "B"; etc through the letter "S"

ΊΌΦέΘΛ

use VBA
select case



Peo Sjoblom

One way

=IF(A6<100,"No
Score",VLOOKUP(A6,{100,"S";126,"A";151,"B";176,"C" ;201,"D";226,"E";251,"F";276,"G";301,"H";326,"I";3 51,"J";376,"K";401,"L";426,"M";451,"N";476,"O";501 ,"P";526,"Q";551,"R"},2))

Beware of line wrapping

--
Regards,

Peo Sjoblom


"Lynn Marie" <Lynn wrote in message
...
Since nesting doesn't exceed 7 ... for scoring purposes, I need a formula
that will allow results through "S" for "IF A6 = 100 through 125, then
"A";
IF A6 = 126 through 150, then "B"; etc through the letter "S"




Lynn Marie

Thank you so much! It worked perfectly!

"Peo Sjoblom" wrote:

One way

=IF(A6<100,"No
Score",VLOOKUP(A6,{100,"S";126,"A";151,"B";176,"C" ;201,"D";226,"E";251,"F";276,"G";301,"H";326,"I";3 51,"J";376,"K";401,"L";426,"M";451,"N";476,"O";501 ,"P";526,"Q";551,"R"},2))

Beware of line wrapping

--
Regards,

Peo Sjoblom


"Lynn Marie" <Lynn wrote in message
...
Since nesting doesn't exceed 7 ... for scoring purposes, I need a formula
that will allow results through "S" for "IF A6 = 100 through 125, then
"A";
IF A6 = 126 through 150, then "B"; etc through the letter "S"






All times are GMT +1. The time now is 03:41 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com