+ Reply to Thread
Results 1 to 11 of 11

Calculate of interest with different interest rates per

  1. #1
    Registered User
    Join Date
    12-29-2013
    Location
    athens
    MS-Off Ver
    Excel 2003
    Posts
    6

    Calculate of interest with different interest rates per

    Dear All,

    I have a problem calculating a total interest for an input period that has different interest rates. You can see the attached file: INTEREST.xls

    I have used a function but the result comes out wrong. Can I fine tune it or do I have to change my method of calculating.

    Can anyone help?

    Thanks in advance
    Last edited by nikosbox; 12-29-2013 at 09:38 AM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Calculate of interest with different interest rates per

    you seem to have 2 errors
    01/01/1993 15/06/1993 37.00% 165
    16/06/1993 30/09/1993 31.00% 107
    01/10/1993 25/10/1993 34.00% 25
    26/10/1993 31/12/1993 32.00% 67
    the formula =I5-H5 is not inclusive so ok for first range as you seem to want to ignore day 1
    but the rest need 1 day added to be inclusive
    =(I6-H6)+1

    as you don't count the first day i assume that's what the -1 in the lookup is supposed to do
    but that would need to be
    =SUMPRODUCT(LOOKUP(ROW(INDIRECT(A24+1&":"&B24)),A2:C11))/365*C24 ignoring the first day
    that would give both methods a total of
    34.016438
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    12-29-2013
    Location
    athens
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Calculate of interest with different interest rates per

    Thank you for your answer but the correct value is 33,84. That is my target number.
    Last edited by nikosbox; 12-29-2013 at 12:00 PM.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Calculate of interest with different interest rates per

    if you dont count all the days how will it be correct?
    you show
    16/06/1993 30/09/1993 as 106 days
    it is not it is 107 days

  5. #5
    Registered User
    Join Date
    12-29-2013
    Location
    athens
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Calculate of interest with different interest rates per

    I would not argue with this. The result that I have is from an online calculator that everyone uses here and after I input the from to to dates it gives me back as a result 33,84. I do not know the reasoning behind this but in order to agree with the online result I have to have an answer of 33,84. If it is to count 1 less day so be it. How to make the =SUMPRODUCT formula correct I have a problem cause even if you subtract or add a day I cannot get 33,84 like in the step by step method.
    Last edited by nikosbox; 12-29-2013 at 11:59 AM.

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Calculate of interest with different interest rates per

    well you'll have to find the logic the on line calculator uses
    the formula is calculating correctly
    this bit
    LOOKUP(ROW(INDIRECT(A24&":"&B24) grabs all the values for each date between your first date and last date
    LOOKUP(ROW(INDIRECT(A24+1&":"&B24) starts a day later
    Last edited by martindwilson; 12-29-2013 at 11:13 AM.

  7. #7
    Registered User
    Join Date
    12-29-2013
    Location
    athens
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Calculate of interest with different interest rates per

    yes but with the step by step method that I have as you say 1 day less I can agree with the online calculator so I know how it is calculated. With 1 day less. The problem is how to adjust the =SUMPRODUCT formula or use another method altogether.

  8. #8
    Registered User
    Join Date
    12-29-2013
    Location
    athens
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Calculate of interest with different interest rates per

    You are right. I have checked again the online calculator and the correct answer is 33,84 this is calculated by adding 1 more day at the last interval 26/10-31/12/1993. But again dead end. How to make =SUMPRODUCT formula correct? Maybe I have to use another method of calculating?

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Calculate of interest with different interest rates per

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    gives
    33.83835616
    or rounded
    33.84

  10. #10
    Registered User
    Join Date
    12-29-2013
    Location
    athens
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Calculate of interest with different interest rates per

    Thank you.
    You are the best!

  11. #11
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Calculate of interest with different interest rates per

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 08-11-2011, 12:51 AM
  2. Comparing interest charges with fixed and variable interest rates.
    By carloski6 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-23-2010, 08:53 AM
  3. Replies: 3
    Last Post: 01-16-2010, 02:14 AM
  4. Replies: 3
    Last Post: 02-14-2008, 11:27 AM
  5. [SOLVED] How do I calc interest using 2 interest rates in 1 calendar year
    By MrTaxGuy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-19-2005, 10:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1