Split payments over a range of numbered months (Not date ranges)

twilliamsli

New Member
Joined
Feb 22, 2019
Messages
8
[FONT=&quot]I am building a cash flow model. Standard income and expenses. the model has months 1-60. I need the expenses to me put in by range. for example taxes will be in month 13 to 33 and insurance will be in months 19 - 44. I am looking for a formula that will look up the ranges and return data in the appropriator field. any help would be great.


[/FONT]

ABCDEFGHIJKLMNOP
Annual MonthlyStart Term End TermMonthlyMonth 1Month 2Month 3Month 4Month 5Month 6Month 7Month 8Month 9Month 10
1Legal Fees5000.00416.67month 1month 1 416.67
2Taxes1250.00104.17Month 3Month 7104.17
3Ins300.0025.00Month 5Month 925.00
4Advance50041.67Month 1Month 441.67

<tbody>
</tbody>

<colgroup><col><col><col><col><col><col span="11"></colgroup><tbody>
</tbody>
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Put this formula in cell G2 and copy it across to the last column, then copy all those cells down to the bottom of your data...

=IF(AND(G$1>=$D2,G$1<=$E2),$F2/(MID($E2,7,99)-MID($D2,7,99)+1),"")
 
Upvote 0
In Column D & E I removed the text "Month" and also In your Row 1 Col G - P (to leave only numbers in those cells).

Then I enter into Cell G2 the Formula:
=IF(AND(G$1>=$D2,G$1<=$E2),$F2,0)

<tbody>
</tbody>
Copy Down and across
 
Last edited:
Upvote 0
Thank you again, the formula is repeating for some reason. If the starting month is 2-6 - the number keep populating ... ie, Start month - Month 5 end month month 9. The formula will properly populate months 5 thru 9. then start populating again at 50.

or if start is Month 25 and End is Month 36 - it properly populated 25 to 36 - but also populated month 3 (random)

I thought it may have something to do with text formatting - so i flatten all the text to text.

here is my formula formatted for my spread sheet - do you see any reference errors? thanks

=IF(AND(I$7>='Funding Sheet'!$H85,I$7<='Funding Sheet'!$I85),$C43/(MID('Funding Sheet'!$I85,7,99)-MID('Funding Sheet'!$H85,7,99)+1),0)
 
Upvote 0
Thank you again, the formula is repeating for some reason. If the starting month is 2-6 - the number keep populating ... ie, Start month - Month 5 end month month 9. The formula will properly populate months 5 thru 9. then start populating again at 50.

or if start is Month 25 and End is Month 36 - it properly populated 25 to 36 - but also populated month 3 (random)

I thought it may have something to do with text formatting - so i flatten all the text to text.

here is my formula formatted for my spread sheet - do you see any reference errors? thanks

=IF(AND(I$7>='Funding Sheet'!$H85,I$7<='Funding Sheet'!$I85),$C43/(MID('Funding Sheet'!$I85,7,99)-MID('Funding Sheet'!$H85,7,99)+1),0)
This modification will fix the problem with my formula (you can adjust it for your actual sheet and cell references)...

=IF(AND(0+MID(G$1,7,99)>=0+MID($D2,7,99),0+MID(G$1,7,99)<=0+MID($E2,7,99)),$F2/(MID($E2,7,99)-MID($D2,7,99)+1),"")

Note: The problem had to do with your having included the word "Month" in all of your cells. The formula would have been much easier if you put just numbers in the cells and Custom Formatted those cells with this Type pattern...

"Month "General

That way, the actual value in the cell would have been a number, such as 23, but the cell would display "Month 23" (without the quote marks). If you had done it that way, then my formula would have been much simpler...

=IF(AND(G$1>=$D2,G$1<=$E2),$F2/($E2-$D2+1),"")

I don't know whether you can make this change though or not as I don't know if you have any other formulas or VBA code that depends on the word "Month" being in the cells or not.
 
Last edited:
Upvote 0
Hey guys...
Do you recognize that I am even in the room? I think NOT. Oh well, it isn't the first time. LOL!!
Jim
 
Upvote 0
Hey guys...
Do you recognize that I am even in the room? I think NOT. Oh well, it isn't the first time. LOL!!
Jim
@Jim,

I saw your formula but interpreted the question differently than you did... but in thinking about it, your approach may have been correct, but I am not sure. Your formula simply repeated the monthly amount in the indicated monthly cells whereas I read the the OP's thread title as meaning that amount should be split across the indicated months. Also, your formula outputted 0 into cells outside of the month range rather than leave them blank (which may, in fact, be what the OP wanted as his original post was lacking in the specific output desired).

@twilliamsli,

Please read the above and clarify for us the exact output you are looking for (I am not sure anymore that what I posted is actually what you want).
 
Upvote 0

Forum statistics

Threads
1,213,558
Messages
6,114,297
Members
448,564
Latest member
ED38

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