+ Reply to Thread
Results 1 to 12 of 12

Loan drawdown and repayment - how to automate

  1. #1
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,060

    Loan drawdown and repayment - how to automate

    Dear All

    My company has a flexi loan where we can drawdown or repay anytime, but has to be made in the multiples of $50,000.

    We have cash inflows and outflows and any cash deficit will be covered by the loan drawdown. Any cash surplus will be used to repay the loan.

    All the same time, we have to maintain a minimum cash balance of $40,000 to $50,000.

    Currently, what I do is to manually enter the loan drawdown/repayment amounts year-by-year, and have to repeat the process whenever the cash flow changes.

    Appreciate your help to automate the process with formulas.

    Thank you!
    Joseph

    Loan Drawndown & Repayment.png
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,060

    Re: Loan drawdown and repayment - how to automate

    Sorry... there is an error to the above file. Amended file as follows:

    Loan Drawndown & Repayment.png
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,060

    Re: Loan drawdown and repayment - how to automate

    Anyone can help?

  4. #4
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,060

    Re: Loan drawdown and repayment - how to automate

    Any help would be greatly appreciated!

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,570

    Re: Loan drawdown and repayment - how to automate

    I am by no means an accountant, however I did come up with a method that yielded the values previously input in the range F10:N11. I started with column F based on the statement 2 ...From Year 1 onwards...
    The driving engine behind the automation is found in the helper table, range F28:N35, with explanations listed below. I attempted to use simple formulas so that the rational could be more easily followed (I didn't want to confuse myself).
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  6. #6
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,060

    Re: Loan drawdown and repayment - how to automate

    Tested the formulas with different sets of Cash Inflow and Cash Outflow, the results came out exactly what I expected, thanks JeteMc!

    Thanks for providing the explanations, however, I am still trying to understand the logic! Here is Rep for you, JeteMc!

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,570

    Re: Loan drawdown and repayment - how to automate

    You're Welcome and thank you for the feedback. The 'Evaluate Formula' tool is often helpful in understanding what a formula is doing, however feel free to ask about any formula you don't understand.
    The overall logic is to calculate the loan repayment/draw down that would be anticipated based on the previous years figures, then calculate the change in interest that will result due to potentially making that anticipated repayment/draw down and finally come up with a true repayment/draw down (I hope that makes sense).
    Please take a moment to mark the thread as 'Solved' using the thread tools link above your first post. I hope that you have a blessed day.

  8. #8
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,060

    Re: Loan drawdown and repayment - how to automate

    Thanks JeteMc.

    There seems to have a little snag... when the multiples in which loan can be drawndown or repaid (e.g. $50,000) is less than the minimum cash balance (e.g. $100,000), the results will not be correct. Can help to re-look at the formulas? Thanks!

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,975

    Re: Loan drawdown and repayment - how to automate

    Attach a version of the workbook that illustrates the new problem.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,570

    Re: Loan drawdown and repayment - how to automate

    That does change things, however I believe that the following modifications will account for the minimum cash balance now being more than the minimum draw down:
    1) F30 and across: =IF(F29<0,CEILING(-F29+$R2,$R3),IF(AND($R3<$R2,F29<$R2),$R2,IF(F29<$R2,$R3,0)))
    2) F34 and across: =IF(F33<0,CEILING(-F33+$R2,$R3),IF(AND(R2<R3,F33<$R2),$R2,IF(F33<$R2,$R3,0)))
    Note that instead of hard coding the min balance and draw down the formulas reference cells R2 (balance) and R3 (draw down) respectively.
    Let us know if you have any questions.
    Attached Files Attached Files

  11. #11
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,060

    Re: Loan drawdown and repayment - how to automate

    Thanks again JeteMc for your help. I am impressed with the methodological step-by-step approach you use to solve the problem.

    And, did you say you are not an accountant?! You certainly put a lot of accountants, myself included, to shame.

    I suspect there is a little bug somewhere... but I have still yet to sink in on your formulas. Nevertheless, I am going to mark this topic "Solved".

  12. #12
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,570

    Re: Loan drawdown and repayment - how to automate

    Thank You for the feedback and for marking the thread as 'Solved' (if problems arise you can reverse that action using the 'Thread Tools' link). A good way to see what a formula is doing is to select one of the cells using the formula then select/run the 'Evaluate Formula' tool on the 'Formulas' tab (2010 version of Excel). Let us know if you have any questions, and I hope that you have a blessed day.

+ 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. [SOLVED] Recalculation of loan repayment schedule
    By TZ Saic in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-15-2017, 11:35 AM
  2. Required loan repayment amount
    By leviathanjc in forum Excel General
    Replies: 1
    Last Post: 01-11-2017, 09:40 PM
  3. [SOLVED] Loan Repayment Formula
    By rentb23 in forum Excel General
    Replies: 14
    Last Post: 11-04-2012, 01:23 PM
  4. Computing loan repayment & Annuity,
    By howard101 in forum Excel General
    Replies: 1
    Last Post: 07-22-2012, 08:42 AM
  5. Unique Loan Repayment calculation
    By MegaD in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 06-22-2010, 10:40 PM
  6. Variable Loan Repayment Schedule
    By syoung7903 in forum Excel General
    Replies: 1
    Last Post: 05-08-2008, 04:30 PM
  7. [SOLVED] loan/lease repayment using IPMT/CUMIPMT
    By zardozoz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-18-2005, 11: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