Distributing Amount over Months by Criteria - Formula Help

RicardoCubed

Board Regular
Joined
Jul 10, 2013
Messages
206
Office Version
  1. 365
Platform
  1. Windows
Hi out there in excel land. I am looking for help with a formula (non VBA) for E2 copied down and across to distribute amount by criteria selected. Example below with results.
Appreciate in advance any help.
Thank you.

A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
Monthly
Monthly
Quarterly-End
Monthly
Quarterly-Beginning
Monthly
Quarterly-End

<tbody>
[TD="align: center"]1
[/TD]
[TD="align: center"]Months in Contract
[/TD]
[TD="align: center"]Month Start
[/TD]
[TD="align: center"]Payment Frequency
[/TD]
[TD="align: center"]Amount
[/TD]
[TD="align: center"]Jan
[/TD]
[TD="align: center"]Feb
[/TD]
[TD="align: center"]Mar
[/TD]
[TD="align: center"]Apr
[/TD]
[TD="align: center"]May
[/TD]
[TD="align: center"]Jun
[/TD]
[TD="align: center"]Jul
[/TD]
[TD="align: center"]Aug
[/TD]
[TD="align: center"]Sep
[/TD]
[TD="align: center"]Oct
[/TD]
[TD="align: center"]Nov
[/TD]
[TD="align: center"]Dec
[/TD]
[TD="align: center"]Total
[/TD]

[TD="align: center"]2
[/TD]
[TD="align: right"]1
[/TD]
[TD="align: right"]2
[/TD]

[TD="align: center"] 2,247.00
[/TD]
[TD="align: right"][/TD]
[TD="align: right"] 2,247
[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"] 2,247
[/TD]

[TD="align: center"]3
[/TD]
[TD="align: right"]6
[/TD]
[TD="align: right"]4
[/TD]

[TD="align: center"] 19,764.00
[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"] 3,294
[/TD]
[TD="align: right"] 3,294
[/TD]
[TD="align: right"] 3,294
[/TD]
[TD="align: right"] 3,294
[/TD]
[TD="align: right"] 3,294
[/TD]
[TD="align: right"] 3,294
[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"] 19,764
[/TD]

[TD="align: center"]4
[/TD]
[TD="align: right"]12
[/TD]
[TD="align: right"]1
[/TD]

[TD="align: center"] 45,444.00
[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"] 11,361
[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"] 11,361
[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"] 11,361
[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"] 11,361
[/TD]
[TD="align: right"] 45,444
[/TD]

[TD="align: center"]5
[/TD]
[TD="align: right"]3
[/TD]
[TD="align: right"]11
[/TD]

[TD="align: center"] 11,271.00
[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"] 3,757
[/TD]
[TD="align: right"] 3,757
[/TD]
[TD="align: right"] 7,514
[/TD]

[TD="align: center"]6
[/TD]
[TD="align: right"]11
[/TD]
[TD="align: right"]3
[/TD]

[TD="align: center"] 36,190.00
[/TD]
[TD="align: right"] 9,048
[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"] 9,048
[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"] 9,048
[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"] 9,048
[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"] 36,190
[/TD]

[TD="align: center"]7
[/TD]
[TD="align: right"]7
[/TD]
[TD="align: right"]5
[/TD]

[TD="align: center"] 19,992.00
[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"] 2,856
[/TD]
[TD="align: right"] 2,856
[/TD]
[TD="align: right"] 2,856
[/TD]
[TD="align: right"] 2,856
[/TD]
[TD="align: right"] 2,856
[/TD]
[TD="align: right"] 2,856
[/TD]
[TD="align: right"] 17,136
[/TD]

[TD="align: center"]8
[/TD]
[TD="align: right"]11
[/TD]
[TD="align: right"]6
[/TD]

[TD="align: center"] 36,190.00
[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"] 9,048
[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"] 9,048
[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"] 9,048
[/TD]
[TD="align: right"] 27,143
[/TD]

</tbody>
Sheet1
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
hi, there is a bit of inconsistency in the data provided

when you have either Quarter End or Quarter Beginning what does Month Start represent? for rows 6 and 8 it looks like it represents the month, for row 4 it represents the quarter number. Row 4 is what would make more sense...
 
Upvote 0
Thanks for the response. I was attempting to illustrate that in rows 6 & 8 payment is due at quarter beginning (row 6) or end (row 8) while the contract starts in month 3 (Mar) and 6 (Jun) respectively. Row 4 is straightforward as you stated with contract starts on month 1, payment due end of the first quarter March.
Make sense?
Appreciate your time and help!
 
Upvote 0
I believe that for a formula to work correctly, when column C is Quarterly, then column B should represent the Quarter Number

so for quarter beginning: 1(Jan) 2(apr) 3 (jul) 4(oct)
quarter end 1(march), 2(june) 3(sept) 4(dec)

or you can say that column B always represents a month, so when column C is quarterly, the formula will start inputting values starting on that month and then each 3 months
 
Upvote 0
Your last sentence is where my head is at and hoping for formula that could do just that.
Appreciate suggestions/help with formula to achieve same.

Thanks and looking forward to thoughts/approach/formula help.
 
Upvote 0
you can do it with this formula. also column A, when col C is Quarterly, it needs to be a multiple of 3 i assume

<b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: rgb(255,255,255);border-collapse: collapse; border-color: rgb(187,187,187)"><thead><tr style=" background-color: rgb(218,231,245);color: rgb(22,17,32)"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">E2</th><td style="text-align:left">=IF(<font color="Blue">AND(<font color="Red">COLUMNS(<font color="Green">$E2:E2</font>)>=$B2,COLUMNS(<font color="Green">$E2:E2</font>)<$A2+$B2</font>),IF(<font color="Red">AND(<font color="Green">LEFT(<font color="Purple">$C2,9</font>)="quarterly",MOD(<font color="Purple">COLUMNS(<font color="Teal">$E:E</font>)-$B2,3</font>)</font>),"",$D2/$A2*IF(<font color="Green">LEFT(<font color="Purple">$C2,9</font>)="quarterly",3,1</font>)</font>),""</font>)</td></tr></tbody></table></td></tr></table><br />



Excel 2013/2016
ABCDEFGHIJKLMNOPQ
1Months in ContractMonth StartPayment FrequencyAmountJanFebMarAprMayJunJulAugSepOctNovDecTotal
212Monthly2,247.002,2472,247
364Monthly19,764.003,2943,2943,2943,2943,2943,29419,764
4123Quarterly-End45,444.0011,36111,36111,36111,36145,444
5311Monthly11,271.003,7573,7577,514
6121Quarterly-Beginning36,190.009,0489,0489,0489,04836,190
775Monthly19,992.002,8562,8562,8562,8562,8562,8562,85617,136
8126Quarterly-End36,190.009,0489,0489,04827,143
Sheet1
 
Upvote 0
Thanks so much!
I was trying to time the quarters to fiscal quarters not 3 month increments, not that my data set was layout in that fashion.
However I think I can live with this and modify my approach.
Very much appreciate your time and help with this!!!!
Regards and have a wonderful day!!
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
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