Need help with Pro-Rate Formula

ENAPo

New Member
Joined
May 16, 2013
Messages
23
What formula could I use to calculate the Total Amount based on the Price and Dates given? I am using Excel 2010. And the pro-rate within the same month, I can manage. It's the 2nd line that crosses multiple months that is not working.


[TABLE="width: 515"]
<colgroup><col><col span="7"></colgroup><tbody>[TR]
[TD]Customer[/TD]
[TD]Item[/TD]
[TD]Monthly
Rate[/TD]
[TD]Qty.[/TD]
[TD]Total Monthly
Price[/TD]
[TD]Start[/TD]
[TD]End[/TD]
[TD]Total Amount[/TD]
[/TR]
[TR]
[TD] Bert [/TD]
[TD] A5009 [/TD]
[TD]300.00[/TD]
[TD]1.00[/TD]
[TD]300.00[/TD]
[TD]7/1/14[/TD]
[TD]7/10/14[/TD]
[TD] ??[/TD]
[/TR]
[TR]
[TD] Bert [/TD]
[TD] A5009 [/TD]
[TD]300.00[/TD]
[TD]2.00[/TD]
[TD]600.00[/TD]
[TD]7/11/14[/TD]
[TD]6/30/15[/TD]
[TD] ??
[/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="width: 515"]
<colgroup><col><col span="7"></colgroup><tbody>[TR]
[TD]Thank you![/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Maybe this



Excel 2007
ABCDEFGH
1CustomerItemMonthlyQty.Total MonthlyStartEndTotal Amount
2RatePrice
3BertA500930013007/01/20147/10/20149
4BertA500930026007/11/201420/06/20157
Sheet3
Cell Formulas
RangeFormula
H3=(YEAR(G3)-YEAR(F3))*12+MONTH(G3)-MONTH(F3)
H4=(YEAR(G4)-YEAR(F4))*12+MONTH(G4)-MONTH(F4)
 
Upvote 0
Oops, missed a bit...



Excel 2007
ABCDEFGH
1CustomerItemMonthlyQty.Total MonthlyStartEndTotal Amount
2RatePrice
3BertA500930013007/01/20147/10/20142700
4BertA500930026007/11/201430/06/20154200
Sheet3
Cell Formulas
RangeFormula
H3=((YEAR(G3)-YEAR(F3))*12+MONTH(G3)-MONTH(F3))*E3
H4=((YEAR(G4)-YEAR(F4))*12+MONTH(G4)-MONTH(F4))*E4
 
Upvote 0
Oops, missed a bit...


Excel 2007
ABCDEFGH
CustomerItemMonthlyQty.Total MonthlyStartEndTotal Amount
RatePrice
BertA5009
BertA5009

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]

[TD="align: center"]2[/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: center"]3[/TD]

[TD="align: right"]300[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]300[/TD]
[TD="align: right"]7/01/2014[/TD]
[TD="align: right"]7/10/2014[/TD]
[TD="align: right"]2700[/TD]

[TD="align: center"]4[/TD]

[TD="align: right"]300[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]600[/TD]
[TD="align: right"]7/11/2014[/TD]
[TD="align: right"]30/06/2015[/TD]
[TD="align: right"]4200[/TD]

</tbody>
Sheet3

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: #E0E0F0"]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]H3[/TH]
[TD="align: left"]=((YEAR(G3)-YEAR(F3))*12+MONTH(G3)-MONTH(F3))*E3[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #E0E0F0"]H4[/TH]
[TD="align: left"]=((YEAR(G4)-YEAR(F4))*12+MONTH(G4)-MONTH(F4))*E4[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]

Thank you for your help but it does not calculate the Line#3 correctly. I need it to calculate the months as well as the days 7/11/2014 - 6/30/2015 =
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,964
Members
452,371
Latest member
Frana

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