Complicated (for me) excel issue

bill3kradio

New Member
Joined
Jul 22, 2008
Messages
5
Here's my problem:

I have a grid to determine interest rates. The are add ons to the rate that are dependent on two factors - the credit score and the Loan to Value percent or LTV, both of which are shown in terms of ranges (720-739, etc). See the screen shot below.

I have already written formulas for converting the score and LTV to the ranges as they appear on the sheet (ie, if you type in a score of 722, the formula converts it to the range of 720-739.

What I need to do is this - when the score and LTV are input and determine which set of add ons come into play, I need the sheet to take those add-ons, identified by an x next to it at the top of the page, and add them to the base interest rate, giving me the final rate. Again, see below to make this more clear.

I've thought of using VLookup, but I don' think that would be applicable here.

What's the best method, and can you give me an example of what a formula might look like?

Thanks,

Bill

<table x:str="" style="border-collapse: collapse; width: 534pt;" border="0" cellpadding="0" cellspacing="0" width="714"><col style="width: 78pt;" width="104"> <col style="width: 56pt;" width="75"> <col style="width: 64pt;" width="85"> <col style="width: 56pt;" span="6" width="75"> <tbody><tr style="height: 12.75pt;" height="17"> <td style="height: 12.75pt; width: 78pt;" height="17" width="104">
</td> <td colspan="3" style="width: 176pt;" width="235">Loan Level Pricing Adjustments</td> <td class="xl29" style="width: 56pt;" width="75">
</td> <td class="xl29" style="width: 56pt;" width="75">
</td> <td class="xl29" style="width: 56pt;" width="75">
</td> <td class="xl29" style="width: 56pt;" width="75">
</td> <td class="xl29" style="width: 56pt;" width="75">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td style="height: 12.75pt;" height="17">
</td> <td>
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td style="height: 12.75pt;" height="17">
</td> <td>
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td style="height: 12.75pt;" height="17">
</td> <td>Base Rate</td> <td class="xl29" x:num="">6.25</td> <td class="xl29" x:num="" x:fmla="=C4">6.25</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td style="height: 12.75pt;" height="17">
</td> <td>Credit Score</td> <td class="xl35" x:num="">741</td> <td class="xl29" x:fmla="=IF(C5<621,"<620",IF(C5<640,"620-639",IF(C5<660,"640-659",IF(C5<680,"660-679",IF(C5<700,"680-699",IF(C5<720,"700-719",IF(C5<740,"720-739",IF(C5>739.99,">740","0"))))))))">>740</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td style="height: 12.75pt;" height="17">
</td> <td>LTV</td> <td class="xl29" x:num="">60</td> <td class="xl29" x:fmla="=IF(C6<60.01,"<60.00",IF(C6<70.01,"60.01-70.00",IF(C6<75.01,"70.01-75.00",IF(C6<80.01,"75.01-80.00",IF(C6<85.01,"80.01-85.00",IF(C6<90.01,"85.01-90.00",IF(C6<95.01,"90.01-95.00",IF(C6>95,"Check LTV","0"))))))))"><=60.00</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td style="height: 12.75pt;" height="17">
</td> <td>
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl36" style="height: 12.75pt;" height="17">Add-ons</td> <td>
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td style="height: 12.75pt;" height="17">
</td> <td>All</td> <td class="xl29">x</td> <td class="xl29" x:num="">-0.25</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td style="height: 12.75pt;" height="17">
</td> <td>Cash Out</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td style="height: 12.75pt;" height="17">
</td> <td>Invest</td> <td class="xl29">x</td> <td class="xl29" x:num="">1.5</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td style="height: 12.75pt;" height="17">
</td> <td>2 unit</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td style="height: 12.75pt;" height="17">
</td> <td>3-4 unit</td> <td class="xl29">x</td> <td class="xl29" x:num="">1</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td style="height: 12.75pt;" height="17">
</td> <td>
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td style="height: 12.75pt;" height="17">
</td> <td>Final Rate</td> <td class="xl29">
</td> <td class="xl29" x:num="" x:fmla="=C4+D9+D10+D12+D11+D13">8.5</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td style="height: 12.75pt;" height="17">
</td> <td>
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td style="height: 12.75pt;" height="17">
</td> <td>
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl30" style="height: 12.75pt;" height="17">
</td> <td class="xl30" style="border-left: medium none;">
</td> <td colspan="7" class="xl24" style="border-left: medium none;">LTV RATIOS</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl28" style="height: 12.75pt;" height="17">CREDIT SCORE</td> <td class="xl28" style="border-left: medium none;">Add-ons</td> <td class="xl33" style="border-top: medium none; border-left: medium none;"><=60.00</td> <td class="xl33" style="border-top: medium none;">60.01-70.00</td> <td class="xl33" style="border-top: medium none;">70.01-75.00</td> <td class="xl33" style="border-top: medium none;">75.01-80.00</td> <td class="xl33" style="border-top: medium none;">80.01-85.00</td> <td class="xl33" style="border-top: medium none;">85.01-90.00</td> <td class="xl24" style="border-top: medium none;">90.01-95.00</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl27" style="height: 12.75pt;" height="17">>740</td> <td class="xl26" style="border-top: medium none; border-left: medium none;">all</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">-0.25</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">0</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">0</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">0</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">0</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">0</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">0</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl27" style="height: 12.75pt;" height="17">>740</td> <td class="xl26" style="border-top: medium none; border-left: medium none;">Cash Out</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">0</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">0</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">0</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">0.25</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="0.375">0.375</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="0.375">0.375</td> <td class="xl34" style="border-top: medium none; border-left: medium none;">n/a</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl27" style="height: 12.75pt;" height="17">>740</td> <td class="xl26" style="border-top: medium none; border-left: medium none;">Investment</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">1.5</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">1.5</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">1.5</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">2</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">2.5</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">2.5</td> <td class="xl34" style="border-top: medium none; border-left: medium none;">n/a</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl27" style="height: 12.75pt;" height="17">>740</td> <td class="xl26" style="border-top: medium none; border-left: medium none;">2-unit</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">0.5</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">0.5</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">0.5</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">0.5</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">0.5</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">0.5</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">0.5</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl27" style="height: 12.75pt;" height="17">>740</td> <td class="xl26" style="border-top: medium none; border-left: medium none;">3-4 unit</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">1</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">1</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">1</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">1</td> <td class="xl34" style="border-top: medium none; border-left: medium none;">n/a</td> <td class="xl34" style="border-top: medium none; border-left: medium none;">n/a</td> <td class="xl34" style="border-top: medium none; border-left: medium none;">n/a</td> </tr> <tr style="height: 12.75pt;" height="17"> <td style="height: 12.75pt;" height="17">
</td> <td class="xl31" style="border-top: medium none;">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl32" style="height: 12.75pt;" height="17">
</td> <td class="xl32" style="border-top: medium none; border-left: medium none;">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl25" style="border-top: medium none; height: 12.75pt;" height="17">720-739</td> <td class="xl26" style="border-top: medium none; border-left: medium none;">all</td> <td class="xl34" style="border-left: medium none;" x:num="">-0.25</td> <td class="xl34" style="border-left: medium none;" x:num="">0</td> <td class="xl34" style="border-left: medium none;" x:num="">0</td> <td class="xl34" style="border-left: medium none;" x:num="">0</td> <td class="xl34" style="border-left: medium none;" x:num="">0</td> <td class="xl34" style="border-left: medium none;" x:num="">0</td> <td class="xl34" style="border-left: medium none;" x:num="">0</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl25" style="border-top: medium none; height: 12.75pt;" height="17">720-739</td> <td class="xl26" style="border-top: medium none; border-left: medium none;">Cash Out</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">0</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="0.125">0.125</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="0.125">0.125</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="0.375">0.375</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">0.5</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">0.5</td> <td class="xl34" style="border-top: medium none; border-left: medium none;">n/a</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl25" style="border-top: medium none; height: 12.75pt;" height="17">720-739</td> <td class="xl26" style="border-top: medium none; border-left: medium none;">Investment</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">1.5</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">1.5</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">1.5</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">2</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">2.25</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">2.5</td> <td class="xl34" style="border-top: medium none; border-left: medium none;">n/a</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl25" style="border-top: medium none; height: 12.75pt;" height="17">720-739</td> <td class="xl26" style="border-top: medium none; border-left: medium none;">2-unit</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">0.5</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">0.5</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">0.5</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">0.5</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">0.5</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">0.5</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">0.5</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl25" style="border-top: medium none; height: 12.75pt;" height="17">720-739</td> <td class="xl26" style="border-top: medium none; border-left: medium none;">3-4 unit</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">1</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">1</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">1</td> <td class="xl34" style="border-top: medium none; border-left: medium none;" x:num="">1</td> <td class="xl34" style="border-top: medium none; border-left: medium none;">n/a</td> <td class="xl34" style="border-top: medium none; border-left: medium none;">n/a</td> <td class="xl34" style="border-top: medium none; border-left: medium none;">n/a</td> </tr> <tr style="height: 12.75pt;" height="17"> <td style="height: 12.75pt;" height="17">
</td> <td class="xl31" style="border-top: medium none;">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> <td class="xl29">
</td> </tr> </tbody></table>

-
 

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.
Excel Workbook
ABCD
1Loan Level Pricing Adjustments
2
3
4Base Rate6.256.25
5Credit Score741>740
6LTV60
7
8Add-ons
9Allx-0.25
10Cash Out
11Investx1.5
122 unit
133-4 unitx1
14
15Final Rate8.5
Sheet1
 
Upvote 0
Bill, you may find your life is made a lot easier if you create a unique field in your data table based on concatenation of credit range (A) and Add-ons (B).

Let's say we add column of data in J (concatenation of A:B) and name your range "datatable".

Then we can use this new column to retrieve your rates etc without need for SUMPRODUCT / Array formulae.

See below for ex. of Data Table setup
(Note it is important that each Add-on is listed in identical format to the summary table else you won't be able to find the relevant values)

Excel Workbook
ABCDEFGHIJ
4CREDIT SCOREAdd-ons60.01-70.0070.01-75.0075.01-80.0080.01-85.0085.01-90.0090.01-95.00CONCAT
5>740All-0.25000000a>740 :bAll
6>740Cash Out0000.250.3750.375n/aa>740 :bCash Out
7>740Investment1.51.51.522.52.5n/aa>740 :bInvestment
8>7402-unit0.50.50.50.50.50.50.5a>740 :b2-unit
9>7403-4 unit1111n/an/an/aa>740 :b3-4 unit
10
11720-739All-0.25000000a720-739 :bAll
12720-739Cash Out00.1250.1250.3750.50.5n/aa720-739 :bCash Out
13720-739Investment1.51.51.522.252.5n/aa720-739 :bInvestment
14720-7392-unit0.50.50.50.50.50.50.5a720-739 :b2-unit
15720-7393-4 unit1111n/an/an/aa720-739 :b3-4 unit
Sheet1


Then here is your summary table (again note to ensure the Add-ons are identical values in text to those in your datatable)

Excel Workbook
ABCD
20Loan Level Pricing Adjustments
21
22Base Rate6.256.25
23Credit Score741>740
24LTV60
25
26Add-ons
27
28All-0.25
29Cash Out0
30Investment1.5
312-unit0.5
323-4 unit1
33Final Rate9.00
Sheet1


Note: I got result of 9 rather than 8.5 as per your example so I may be missing something but this should point you in the right direction.

HTH
 
Last edited:
Upvote 0
Ha, dafan has just posted which makes sense to me... I think the prior posts (mine included) had misinterpreted the requirements... doh.
 
Upvote 0
I had to read it a couple of times too but I think the only issue is summing amounts where an 'x' is present.
 
Upvote 0
Nice approach. You get 9 because you are not using 'x' next to the cells in the summary.
In this case you are basically copying C5:C9 from the datatable. You get 9 instead of 8.5 cuz in the example 2-unit is not summed because it has no 'x' next to it.
 
Upvote 0
Yes, once I saw your post re: SUMIF(...) it made sense... I thought OP wanted to return values instead of x (and values in D were to show what the values should be)... oops... hey, it is like 6:50am over here... :)
 
Upvote 0
Thanks to all for the help and suggestions. The thing I'm struggling with is that there are so many combinations of credit score and LTV ratios, combined with the add-ons for each.

I need to have the sheet recognize that subset of add-ons unique to the credit score/LTV combo. For example, if the score is 669 and the LTV is 80, the add ons would be different than the example I used originally, so the sheet has to recognize that.

Thanks again for the help. I'll give the suggestions a try.

If you think of anything else, I'd appreciate letting me know.

Bill
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,120
Members
451,399
Latest member
alchavar

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