IF statements

gmackk

New Member
Joined
Nov 1, 2018
Messages
9
Hello all,

I am working on a cash flow model and am scratching my head trying to get a formula right, I would be grateful for some advice.

My business collects cash from customers and pays out expenses to vendors. At the end of each month if there is excess collections (i.e. monthly collections minus monthly expenses) available I would like to allocate 10% of this to a reserve account.

In months where there is excess collections the reserve account will be topped up by 10% of excess collections. Once this reserve account hits a maximum amount (e.g. 7,500,000) then the top ups will stop.

In months where there is negative collections (i.e. monthly expenses exceeds monthly collections) then reserve account will be reduced by the shortfall.


Test formula.xlsx
ABCDEFGHIJKLMNOPQRSTUV
1Annual Amort %31-Dec-2231-Mar-2330-Jun-2330-Sep-2331-Dec-2331-Mar-2430-Jun-2430-Sep-2431-Dec-2431-Mar-2530-Jun-2530-Sep-2531-Dec-2531-Mar-2630-Jun-2630-Sep-2631-Dec-2631-Mar-2730-Jun-2730-Sep-2731-Dec-27
2Collections (1 quarter lag)7,723,5187,745,5187,756,5187,756,5187,756,5187,756,5187,756,5187,510,5187,510,5187,510,5187,510,5187,324,3547,463,9777,071,9776,959,9776,974,5097,017,4357,148,3487,148,3486,803,348
3Principal- 2,864,086- 2,864,086- 2,864,086- 2,864,086- 2,645,214- 2,645,214- 2,645,214- 2,645,214- 2,443,485- 2,443,485- 2,443,485- 2,443,485- 2,257,525- 2,257,525- 2,257,525- 2,257,525- 2,086,070- 2,086,070- 2,086,070- 15,089,007
4Interest- 2,860,670- 2,807,337- 2,754,005- 2,700,672- 2,647,339- 2,598,082- 2,548,825- 2,499,568- 2,450,311- 2,404,810- 2,359,310- 2,313,809- 2,268,309- 2,226,271- 2,184,233- 2,142,195- 2,100,157- 2,061,312- 2,022,467- 1,983,622
5Other fees- 579,264- 580,914- 581,739- 581,739- 581,739- 581,739- 581,739- 563,289- 563,289- 563,289- 563,289- 549,327- 559,798- 530,398- 521,998- 523,088- 526,308- 536,126- 536,126- 510,251
6[Misc]--------------------
7Liquidity reserve- 141,950- 149,318- 155,669- 161,002- 188,223- 193,148- 198,074- 180,245- 205,343- 209,893- 214,443- 201,773- 237,835- 205,778
8 Excess cash at end of waterfall 1,277,5481,343,8621,401,0191,449,0191,694,0031,738,3351,782,6661,622,2021,848,0901,889,0401,929,9911,815,9602,140,5111,852,0051,996,2212,051,7012,304,9002,464,8392,503,684- 10,779,532
9
10Liquidity reserve
11Opening5,000,0005,141,9505,291,2685,446,9375,607,9395,796,1615,989,3106,187,3846,367,6286,572,9726,782,8656,997,3087,199,0827,436,9167,642,6957,642,6957,642,6957,642,6957,642,6957,642,695
12Movement141,950149,318155,669161,002188,223193,148198,074180,245205,343209,893214,443201,773237,835205,778
13Closing5,141,9505,291,2685,446,9375,607,9395,796,1615,989,3106,187,3846,367,6286,572,9726,782,8656,997,3087,199,0827,436,9167,642,6957,642,6957,642,6957,642,6957,642,6957,642,6957,642,695
14
15
16
17Liquidity reserve
18Initial amount5,000,000
19Target7,500,000
20Available collections10%
21
Overview
Cell Formulas
RangeFormula
D1:V1D1=EOMONTH(C1,3)
C7:V7C7=IF(C11<$B$19,-SUM(C2:C5)*$B$20,"")
C8:V8C8=SUM(C2:C7)
C11C11=B18
D11:V11D11=C13
C12:V12C12=IF(C11<$B$19,-C7,"")
C13:V13C13=SUM(C11:C12)
M17M17=IF(SUM($Q$2:$Q$6)<0,-SUM($Q$2:$Q$6),"")
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Just to follow up on this, cell P12 should only be topped up by $63,083.71 (i.e. to bring the balance up to the $7,500,000 maximum size), with the remaining amount going back into "Excess cash at end of waterfall"
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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