+ Reply to Thread
Results 1 to 10 of 10

Set aside an amount for interest and payment on debit (without having a fixed term)

  1. #1
    Registered User
    Join Date
    01-10-2023
    Location
    Mexico
    MS-Off Ver
    365
    Posts
    18

    Question Set aside an amount for interest and payment on debit (without having a fixed term)

    Hello!

    I have been creating an excel for loan management for several days. So far I have the layout on the "Diseño actual" sheet.

    It is quite simple and so far the idea is to have one sheet for each person (unless you propose me something better). Well, the point is that with the current layout it is not difficult to automate the last three columns nor the conditional formatting rules, but here comes the fun part: although it is unnecessary, I wondered if it is possible to combine columns D and E in just one.

    So I've spent about five days trying to figure out a way to, for example and based on the data in the attached file, be able to separate the amounts put in column D into the amount of interest for that month (10% of the balance due from the previous month) and, if greater, the amount going to the balance due. That is, separate the 2,000 that would be put in D3 into 1,000 of the month's interest and the 1,000 that would be credited to the total debt.

    So far, I always run into the problem of not being able to separate the amount of D3 into "interest" and "payment" or getting into a loop because two pieces of information are mutually dependent. Another detail is that I don't want that if one month they pay less than the 10% due, the shortfall is added to the balance to be paid and the following month interest is also charged on that shortfall.

    I don't know if I explained myself well, but in summary I am trying to have the data in red on the "Diseño deseado" sheet automatically calculated.

    Again, I know that the simplest thing to do is to keep the Interest and Payments columns, but I want to see if my idea is possible

    In advance thank you very much for your time and attention, I look forward to your reply!
    Attached Files Attached Files
    Last edited by apoh07; 01-12-2023 at 02:49 PM. Reason: Columns correction

  2. #2
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    MS365
    Posts
    604

    Re: Set aside an amount for interest and payment on debit (without having a fixed term)

    I think my formulae might be too simple because I'm not sure where the cyclic bit is.

    I put "=C2*10%" into cell D3 and "=MAX('Diseño deseado'!D3-D3,0)" into cell D4.

  3. #3
    Registered User
    Join Date
    01-10-2023
    Location
    Mexico
    MS-Off Ver
    365
    Posts
    18

    Re: Set aside an amount for interest and payment on debit (without having a fixed term)

    Thank you very much for your reply!

    In the file I attached I only filled in a few lines to have data to work on, but in practice I will be adding lines every time I lend or receive money.

    Note that in column D I will have to enter data, and only the last three columns are automated.

    Basically, I want to not have to separate interest and payment. In my current design for everything to work, if one month I get paid 2,000 (1,000 interest and 1,000 to credit the debt balance), I have to put that amount separately in columns D and E. My goal is to be able to put 2,000 directly in one column and have it all automatically calculated.

    Let's take an example:

    If I lend 10,000, every month I should be paid 1,000 in interest. This is not a fixed term, so they could be like this for a year and, although they would have already paid me 12,000 in interest, they would still owe me the 10,000 of the original balance. This is because the original balance only decreases when one month I am paid an amount greater than the interest due.

    In other words, if one month I am paid 2,000, the original balance would decrease to 9,000 and the following month I would only be paid 900. To achieve this, in my current design I should put the interest payment in column D and, if I am overpaid to reduce the original balance, put that excess amount in column E. So my goal is to not have to use two columns.

    But, as I comment in the publication, in case my idea is possible, I also want to avoid that, if in the first month I only get paid 500, the missing 500 is taken as part of the debt and the following month it is calculated that I should be paid 1,050 of interest (10,500/10).

  4. #4
    Registered User
    Join Date
    01-10-2023
    Location
    Mexico
    MS-Off Ver
    365
    Posts
    18

    Re: Set aside an amount for interest and payment on debit (without having a fixed term)

    Quote Originally Posted by Beamernsw View Post
    I think my formulae might be too simple because I'm not sure where the cyclic bit is.

    I put "=C2*10%" into cell D3 and "=MAX('Diseño deseado'!D3-D3,0)" into cell D4.
    Thank you very much for your reply!

    In the file I attached I only filled in a few lines to have data to work on, but in practice I will be adding lines every time I lend or receive money.

    Note that in column D I will have to enter data, and only the last three columns are automated.

    Basically, I want to not have to separate interest and payment. In my current design for everything to work, if one month I get paid 2,000 (1,000 interest and 1,000 to credit the debt balance), I have to put that amount separately in columns D and E. My goal is to be able to put 2,000 directly in one column and have it all automatically calculated.

    Let's take an example:

    If I lend 10,000, every month I should be paid 1,000 in interest. This is not a fixed term, so they could be like this for a year and, although they would have already paid me 12,000 in interest, they would still owe me the 10,000 of the original balance. This is because the original balance only decreases when one month I am paid an amount greater than the interest due.

    In other words, if one month I am paid 2,000, the original balance would decrease to 9,000 and the following month I would only be paid 900. To achieve this, in my current design I should put the interest payment in column D and, if I am overpaid to reduce the original balance, put that excess amount in column E. So my goal is to not have to use two columns.

    But, as I comment in the publication, in case my idea is possible, I also want to avoid that, if in the first month I only get paid 500, the missing 500 is taken as part of the debt and the following month it is calculated that I should be paid 1,050 of interest (10,500/10).

  5. #5
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    MS365
    Posts
    604

    Re: Set aside an amount for interest and payment on debit (without having a fixed term)

    Hi again, I've had a look and totally changed the way you were working it out (hope that's ok).
    I think I have it doing what you are asking.

    For an explanation for how I used the lookup function, I grabbed it from here:-
    https://trumpexcel.com/find-last-occurrence/
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    01-10-2023
    Location
    Mexico
    MS-Off Ver
    365
    Posts
    18

    Re: Set aside an amount for interest and payment on debit (without having a fixed term)

    Quote Originally Posted by Beamernsw View Post
    Hi again, I've had a look and totally changed the way you were working it out (hope that's ok).
    I think I have it doing what you are asking.
    Thank you very much for your interest! I think you liked the challenge xD

    Your approach is pretty good, but it still doesn't quite achieve what I'm looking for. Maybe it's because I'm not explaining myself well enough.

    Let's take an example and calculate four rows of columns E, F and G! (E=balance payable, F=interest on debt, G=profit).

    If in C3 I put that I lent 10,000 and the following month in D4 I put that I was paid 2,000, the values should be:
    E4:9,000 (The 10,000 from the original loan - the 1,000 surplus from this month's payment).
    F4:0 (this month the 1,000 of interest was paid)
    G4:1,000 (so far, this is the total amount of interest paid in full, and is counted as profit because it is not reduced from the original loan).

    The next month the interest payment should be 900 (10% of 10,000 - 1,000), if in D5 I put that I was paid 400, then the values should be:
    E5:9,000 (the balance to be paid does not change because this month there was no 10% overage).
    F5:500 (the 10% that corresponded to this month [900] - the 400 that were paid out
    G5:1,400

    Now I will just put the values to go faster and not be redundant. If D6:400, then:
    E6:9,000
    F6:1,000
    G6:1,800

    If D7:2,900 (900 of current interest, 1,000 of interest owed, 1,000 to reduce the balance due), then
    E7:8,000
    F7:0
    G7:3,700

    I hope I have explained myself well and that the example helps you!

  7. #7
    Registered User
    Join Date
    01-10-2023
    Location
    Mexico
    MS-Off Ver
    365
    Posts
    18

    Exclamation Re: Set aside an amount for interest and payment on debit (without having a fixed term)

    I share how I solved the situation! The key was to realize that I could apply another logic to calculate what was the total amount of interest to be paid in the current month, and from there use logical conditions. For those who are interested, these are the formulas I used:

    (The function names may be incorrect because I translated everything from Spanish, but I attach the final file).

    E2: =LET(INTEREST,SEARCHX($A2,$A$1:$A1,$E$1:$E1,0,0,-1)/10,CREDIT,IF(($D2-SEARCHX($A2,$A$1:$A1,$F$1:$F1,0,0,-1))>=INTEREST,$D2-INTEREST,0)-SEARCHX($A2,$A$1: $A1,$F$1:$F1,0,0,-1),PAYMENT,IF(((($D2-SEARCHX($A2,$A$1:$A1,$F$1:$F1,0,0,0,-1)))<=INTEREST,$D2,$D2-CREDIT),(SEARCHX($A2,$A$1:$A1,$E$1:$E1,0,0,0,-1)+$C2)-CREDIT)

    F2: =LET(INTEREST,FINDX($A2,$A$1:$A1,$E$1:$E1,0,0,-1)/10,PAGONET,IF(($D2-FINDX($A2,$A$1:$A1,$F$1:$F1,0,0,-1)<INTEREST),$D2-FINDX($A2,$A$1:$A1,$F$1:$F1,$F1,0,0,-1),INTEREST+FINDX($A2,$A$1: $A1,$F$1:$F1,0,0,-1)),IF(PAGONET<INTEREST,SEARCHX($A2,$A$1:$A1,$F$1:$F1,0,0,0,-1)+(INTEREST-$D2),SEARCHX($A2,$A$1:$A1,$F$1:$F1,$F$1:$F1,0,0,-1)-(PAGONET-INTEREST))))

    G2: =SUM.SI($A$1:$A1,$A2,$E$1:$E1)/10-$F2
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    01-10-2023
    Location
    Mexico
    MS-Off Ver
    365
    Posts
    18

    Re: Set aside an amount for interest and payment on debit (without having a fixed term)

    Quote Originally Posted by apoh07 View Post
    I share how I solved the situation! The key was to realize that I could apply another logic to calculate what was the total amount of interest to be paid in the current month, and from there use logical conditions. For those who are interested, these are the formulas I used:

    (The function names may be incorrect because I translated everything from Spanish, but I attach the final file).

    E2: =LET(INTEREST,SEARCHX($A2,$A$1:$A1,$E$1:$E1,0,0,-1)/10,CREDIT,IF(($D2-SEARCHX($A2,$A$1:$A1,$F$1:$F1,0,0,-1))>=INTEREST,$D2-INTEREST,0)-SEARCHX($A2,$A$1: $A1,$F$1:$F1,0,0,-1),PAYMENT,IF(((($D2-SEARCHX($A2,$A$1:$A1,$F$1:$F1,0,0,0,-1)))<=INTEREST,$D2,$D2-CREDIT),(SEARCHX($A2,$A$1:$A1,$E$1:$E1,0,0,0,-1)+$C2)-CREDIT)

    F2: =LET(INTEREST,FINDX($A2,$A$1:$A1,$E$1:$E1,0,0,-1)/10,PAGONET,IF(($D2-FINDX($A2,$A$1:$A1,$F$1:$F1,0,0,-1)<INTEREST),$D2-FINDX($A2,$A$1:$A1,$F$1:$F1,$F1,0,0,-1),INTEREST+FINDX($A2,$A$1: $A1,$F$1:$F1,0,0,-1)),IF(PAGONET<INTEREST,SEARCHX($A2,$A$1:$A1,$F$1:$F1,0,0,0,-1)+(INTEREST-$D2),SEARCHX($A2,$A$1:$A1,$F$1:$F1,$F$1:$F1,0,0,-1)-(PAGONET-INTEREST))))

    G2: =SUM.SI($A$1:$A1,$A2,$E$1:$E1)/10-$F2
    I had to correct the formula in column E.

    E2: =LET(INTEREST,(SEARCHX($A2,$A$1:$A1,$E$1:$E1,0,0,-1)/10)+SEARCHX($A2,$A$1:$A1,$F$1:$F1,0,0,0,-1),CREDIT,IF($D2>INTEREST,$D2-INTEREST,0),SEARCHX($A2,$A$1:$A1,$E$1:$E1,0,0,-1)+$C2-CREDIT)

  9. #9
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    MS365
    Posts
    604

    Re: Set aside an amount for interest and payment on debit (without having a fixed term)

    Sorry I didn't get back to you before, I've been sick but all good now.
    I'm glad you got it sorted out though
    Last edited by Beamernsw; 01-13-2023 at 05:11 AM.

  10. #10
    Registered User
    Join Date
    01-10-2023
    Location
    Mexico
    MS-Off Ver
    365
    Posts
    18

    Re: Set aside an amount for interest and payment on debit (without having a fixed term)

    Quote Originally Posted by Beamernsw View Post
    Sorry I didn't get back to you before, I've been sick but all good now.
    I'm glad you got it sorted out though
    I'm glad that you're better!

+ 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. Formula required for matching Debit amount and Credit amount
    By malikp04 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-07-2022, 12:06 PM
  2. Replies: 2
    Last Post: 02-14-2021, 12:49 PM
  3. One Fixed Loan Payment for X Periods Where Loans Have Different Interest Rates
    By COlonewolf in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-25-2019, 12:47 AM
  4. [SOLVED] Payment + interest = what total amount borrowed?
    By vill in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-19-2018, 11:57 AM
  5. Replies: 1
    Last Post: 02-04-2016, 01:03 PM
  6. Replies: 0
    Last Post: 05-19-2012, 05:56 PM
  7. Loan amount fx if interest rate, payment and amortization know
    By Kevin. in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-17-2005, 06:05 PM

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