I have been given the data below which has credit scores as well as ratings. the whole point is to write a code that will assign a rating to a credit score. Im not sure if im making sense but its much easier to understand when looking at the data. I have been told that you could use select case but im not entirely sure how. Would select case be the best method? Im using Excel 2010.
[TABLE="width: 500"]
<tbody>[TR]
[TD]
<colgroup><col width="87"></colgroup><tbody>
[TD="width: 87"]Credit Score
[/TD]
[TD="width: 87"] Rating
[/TD]
</tbody>[/TD]
[TD]
<colgroup><col width="64"></colgroup><tbody>
[TD="width: 64"]Scale[/TD]
</tbody>[/TD]
[TD]
<colgroup><col width="64"></colgroup><tbody>
[TD="width: 64"]Rating[/TD]
</tbody>[/TD]
[/TR]
[TR]
[TD]14
[/TD]
[TD]
<colgroup><col width="64"></colgroup><tbody>
[TD="class: xl65, width: 64"]20 to 16[/TD]
</tbody>[/TD]
[TD]AAA
[/TD]
[/TR]
[TR]
[TD]15
[/TD]
[TD]
<colgroup><col width="64"></colgroup><tbody>
[TD="width: 64"]15 to 11[/TD]
</tbody>[/TD]
[TD]AA
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]
<colgroup><col width="64"></colgroup><tbody>
[TD="width: 64"]10 to 7[/TD]
</tbody>[/TD]
[TD]A
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD]
<colgroup><col width="64"></colgroup><tbody>
[TD="width: 64"]7 to 4[/TD]
</tbody>[/TD]
[TD]BBB
[/TD]
[/TR]
[TR]
[TD]10
[/TD]
[TD]
<colgroup><col width="64"></colgroup><tbody>
[TD="width: 64"]3 to 1[/TD]
</tbody>[/TD]
[TD]BB
[/TD]
[/TR]
[TR]
[TD]20
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]14
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]14
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]19
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]18
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]20
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]18
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]
<colgroup><col width="87"></colgroup><tbody>
[TD="width: 87"]Credit Score
[/TD]
[TD="width: 87"] Rating
[/TD]
</tbody>
[TD]
<colgroup><col width="64"></colgroup><tbody>
[TD="width: 64"]Scale[/TD]
</tbody>
[TD]
<colgroup><col width="64"></colgroup><tbody>
[TD="width: 64"]Rating[/TD]
</tbody>
[/TR]
[TR]
[TD]14
[/TD]
[TD]
<colgroup><col width="64"></colgroup><tbody>
[TD="class: xl65, width: 64"]20 to 16[/TD]
</tbody>
[TD]AAA
[/TD]
[/TR]
[TR]
[TD]15
[/TD]
[TD]
<colgroup><col width="64"></colgroup><tbody>
[TD="width: 64"]15 to 11[/TD]
</tbody>
[TD]AA
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]
<colgroup><col width="64"></colgroup><tbody>
[TD="width: 64"]10 to 7[/TD]
</tbody>
[TD]A
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD]
<colgroup><col width="64"></colgroup><tbody>
[TD="width: 64"]7 to 4[/TD]
</tbody>
[TD]BBB
[/TD]
[/TR]
[TR]
[TD]10
[/TD]
[TD]
<colgroup><col width="64"></colgroup><tbody>
[TD="width: 64"]3 to 1[/TD]
</tbody>
[TD]BB
[/TD]
[/TR]
[TR]
[TD]20
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]14
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]14
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]19
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]18
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD][/TD]
[TD][/TD]
[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