Model Help - Dynamic revolving credit facility

How can I build a dynamic revolving credit facility in excel that once a min cash balance is set the revolver and cash balances increase to meet the minimum required balance? The problem is a circular reference when I calculate the required draw from the revolver, add it to the revolver, and add it to cash. Is there a particular cell I should be putting a circuit breaker in or setup that I should be using? Thank you very much for your help.

9 Comments
 
Best Response

You'll need to do a few things:

1- In your cash flow statement, have a separate line in CF from financing for Revolver drawdown (paydown) 2- In your cash flow statement, but off the screen create a line item called "Cash surplus deficit before revolver drawdown (paydown)"; this should be: =Sum(CF from ops, CF from investing and CF from financing (excluding the "Revolver drawdown (paydown)" line you added in step #1, minimum cash balance - current beginning cash balance) 3- In your debt schedule, in your Revolver section, where you increase/decrease borrowings your formula should be the following: =MIN(-MIN(Cash_Surplus_Deficit_Before_Revolver_Paydown_Drawdown,Beginning_Revolver_Balance), Revolver_Limit-Beginning_Revolver_Balance)
 

I now have two lines in my debt schedule that I would like to link to the model - my new ending cash balance and new ending revolver balance. How can I do this without producing a circular error or in what cells would I have to put circuit breakers? Again, thank you.

 

Marcus, in my debt tab I have a revolver balance (which is equal to beg bal + increase/decrease in borrowings) and a cash balance (which is equal to beg balance + change in cash from cf + change in borrowings from revolver). I am now back in the balance sheet and link the total debt to include the revolver balance and set the cash amount on the bs to equal the balance that was on the debt tab.

I have my excel set to calculate automatically with 1,000 iterations.

But when I do this linking and the circularity occurs, nothing happens (the revolver does not change). And then the balance sheet is completely unbalanced. Is there something that is off or that I am missing?

 

This convo has turned waaaayyyy too complicated...

CF From Ops (-) Capex (-) Mandatory Repayments (revolver isnt mandatory, only Term Loan amortizatons / maturities) (-) min cash balance (plug here or in your assumptions page) (+) cash on balance sheet = Excess Cash Available for Debt Service

From here, if this is negative, you get your revolver to auto draw the shortfall. If its a surplus, you can sweep it or let it accumulate as a cash balance. This will ensure you have your minimum cash balance and the revolver draws and paysdown around this balance. Try it and you'll see you cash balance will always equal that min cash balance plug.

 

When I change the new revolver balance in my b/s, I get the circularity problem again. What cell can I put a circuit breaker in to fix the problem?

 

Quia fugiat officiis neque placeat. Dolor et illo fugit quia sunt minima soluta.

Velit harum ut labore cumque minima. Numquam voluptatem aspernatur nam nihil. Rerum qui voluptatibus non consectetur ut.

Nisi maxime natus dolores veritatis qui. Vel aliquam optio quasi molestiae ipsum. Ut dolor fugit aut velit expedita itaque adipisci sit.

Career Advancement Opportunities

June 2026 Investment Banking

  • Evercore 01 99.4%
  • Moelis & Company 01 98.8%
  • JPMorgan 01 98.2%
  • Guggenheim Partners 01 97.7%
  • Morgan Stanley 07 97.1%

Overall Employee Satisfaction

June 2026 Investment Banking

  • Moelis & Company No 99.4%
  • Morgan Stanley 01 98.8%
  • Evercore 01 98.2%
  • BMO Capital Markets 12 97.6%
  • Banco Santander 01 97.1%

Professional Growth Opportunities

June 2026 Investment Banking

  • Moelis & Company No 99.4%
  • Evercore No 98.8%
  • Morgan Stanley 05 98.2%
  • JPMorgan No 97.7%
  • BMO Capital Markets 12 97.1%

Total Avg Compensation

June 2026 Investment Banking

  • Vice President (14) $434
  • Associates (43) $259
  • 3rd+ Year Analyst (8) $210
  • 2nd Year Analyst (22) $179
  • Intern/Summer Associate (13) $156
  • 1st Year Analyst (75) $151
  • Intern/Summer Analyst (66) $101
notes
16 IB Interviews Notes

“... there’s no excuse to not take advantage of the resources out there available to you. Best value for your $ are the...”

Leaderboard

1
redever's picture
redever
99.2
2
Secyh62's picture
Secyh62
99.0
3
BankonBanking's picture
BankonBanking
99.0
4
kanon's picture
kanon
99.0
5
DrApeman's picture
DrApeman
98.9
6
dosk17's picture
dosk17
98.9
7
CompBanker's picture
CompBanker
98.9
8
GameTheory's picture
GameTheory
98.9
9
Betsy Massar's picture
Betsy Massar
98.9
10
numi's picture
numi
98.8
success
From 10 rejections to 1 dream investment banking internship

“... I believe it was the single biggest reason why I ended up with an offer...”