Nested IF to calculate credit rating

Bee82

New Member
Joined
May 22, 2014
Messages
6
Hi,
I saw one of your posts and tried to apply that for my IF statement to determine credit rating but i am sure there is something i am not doing right. Can you please help??

I need to to achieve the following:

If score is less then 0 then customer to get credit rating of NO RATING
If score is more then 1 or equals to 10 then customer to get credit rating of D-
If score is more then 11 or equals to 20 then customer to get credit rating of D
If score is more then 21 or equals to 30 then customer to get credit rating of C-
If score is more then 31 or equals to 40 then customer to get credit rating of C
If score is more then 41 or equals to 50 then customer to get credit rating of B-
If score is more then 51 or equals to 60 then customer to get credit rating of B
If score is more then 61 or equals to 70 then customer to get credit rating of A-
If score is more then 71 or equals to 80 then customer to get credit rating of A
If score is more then 81 or equals to 90 then customer to get credit rating of AA
If score is more then 91 or equals to 100 then customer to get credit rating of AAA

I was trying to apply the following statement but it's giving me a false value.
=IF(B2>91=100,”AAA”,IF(B2>81=<wbr style="font-family: arial, sans-serif; ">90,”AA”,IF(B2>71=80,”A”,IF(B2><wbr style="font-family: arial, sans-serif; ">61=70,”A-”,IF(B2>51=60,”B”,IF(<wbr style="font-family: arial, sans-serif; ">B2>41=50,”B-”,IF(B2>31=40,”C”,<wbr style="font-family: arial, sans-serif; ">IF(B2>21=30,”C-”,IF(B2>11=20,”<wbr style="font-family: arial, sans-serif; ">D”,IF(B2>1=10,”D-”,IF(B2<0,"<wbr style="font-family: arial, sans-serif; ">NOT RATED")))))))))))

Please if someone can help me with this
 
Last edited:

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
what you need is a LOOKUP formula, or a vlookup with false.

example:
=LOOKUP(Score,{0;1;11;21;31},{"No Rating";"D-";"D";"C-";"C"})

or a vlookup with false.

[TABLE="width: 119"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]0[/TD]
[TD]No Rating[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]D-[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]21[/TD]
[TD]C-[/TD]
[/TR]
[TR]
[TD]31[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Score[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]25[/TD]
[TD]C-[/TD]
[/TR]
</tbody>[/TABLE]

In B8,
=VLOOKUP(A8,$A$1:$B$5,2)

for reference:
vlookup – True or False?? | wmfexcel
 
Upvote 0

Forum statistics

Threads
1,223,099
Messages
6,170,107
Members
452,302
Latest member
TaMere

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top