Looking up interest rate to create blended rate

Paul_dont_know

New Member
Joined
Jan 18, 2023
Messages
2
Office Version
  1. 2007
Platform
  1. Windows
I have used Excel for many years and I don't know why I can't figure this out. I am needing to determine an interest rate for payment given the historical bank rate (shown columns E and F). If the bank changed the interest rate at some point between payment dates then an appropriate blended rate would be calculated. In the image shown, I am looking for the formulas to put in B3..B14. It should calculate out to approx the values that are shown in column C (which I calculated by hand so that I could verify if my B column formulas are correct). The data here is simplified for easy of use. The actual date/data ranges are much longer. Hence not wanting to do it all by hand. ;)
excel.png


The blended rate is just the rate before the bank rate hike, prorated for the number of days before the rate hike + the rate after the rate hike prorated for the number of days after the hike.
I can't figure out how to look up the values and blend the rates.

Any help would be appreciated.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Welcome to the Forum!

Try this:

ABCDE
1PaymentHistory
2Dec-01-2021Mar-30-20202.45%
3Jan-01-20222.45%Mar-03-20222.70%
4Feb-01-20222.45%Apr-14-20223.20%
5Mar-01-20222.45%Jun-02-20223.70%
6Apr-01-20222.68%Jul-14-20224.70%
7May-01-20222.98%Sep-08-20225.45%
8Jun-01-20223.20%Oct-27-20225.95%
9Jul-01-20223.68%
10Aug-01-20224.28%
11Sep-01-20224.70%
12Oct-01-20225.28%
13Nov-01-20225.53%
14Dec-01-20225.95%
15
Sheet4
Cell Formulas
RangeFormula
B3:B14B3=(MIN(A3-VLOOKUP(A3,History,1),A3-A2)*VLOOKUP(A3,History,2)+(A3-A2-MIN(A3-VLOOKUP(A3,History,1),A3-A2))*VLOOKUP(A2,History,2))/(A3-A2)
A4:A14A4=EDATE(A3,1)
Named Ranges
NameRefers ToCells
History=Sheet4!$D$2:$E$8B3:B14

Note that this formula allows only for zero or one change of interest rate between successive payments. The formula could be generalised if you needed to allow for more?
 
Upvote 0
Solution

Forum statistics

Threads
1,214,968
Messages
6,122,509
Members
449,089
Latest member
RandomExceller01

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