Prorate amount based on multiple conditions

duh!boy

New Member
Joined
Feb 5, 2012
Messages
10
Would greatly appreciate it if someone could provide a prorating formula. What I want is to prorate the amounts in D2 over the values in C2.
There are multiple transactions in column A and for each transaction, there can be anywhere from 1 to several lines (column B), with each
line having value a in C. The prorate amts are always on the first line of each transaction. Lines (B) are not necessarily unique within a given transaction
and I'm not even sure if they play a part in the equation. I'm looking for results as per column E.


ABCDE
1Transaction #
Transaction LineValueProrate Amt
Expected Results
213284634688276
116891.69422.09422.09
31328463483290911241.26233.7229.59
41328463483290927191.41171.44
51328463483290931371.2932.69
61328463483802816477.89313.34313.34
71328463483810814332.22522.52176.18
81328463483810816755.89274.74
91328463483810811760.6371.60
101328463483825511888.81070.8826.85
111328463483825522102.2329.89
121328463483825525618.3979.88
131328463483825538999.02127.94
141328463483825542272.3332.31
1513284634838255514910.33211.98
1613284634838255639533.46562.04

<colgroup><col style="mso-width-source:userset;mso-width-alt:2450;width:50pt" width="67"> <col style="mso-width-source:userset;mso-width-alt:4388;width:90pt" width="120"> <col style="mso-width-source:userset;mso-width-alt:4352;width:89pt" width="119"> <col style="mso-width-source:userset;mso-width-alt:2852;width:59pt" width="78"> <col style="mso-width-source:userset;mso-width-alt:3657;width:75pt" width="100"> <col style="mso-width-source:userset;mso-width-alt:4278;width:88pt" width="117"> </colgroup><tbody>
</tbody>
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Given the format of the data, it should be OK to use SUMIF:


Book1
ABCDE
1Transaction #Transaction LineValueProrate AmtExpected Results
213284634688276116891.69422.09422.09
31328463483290911241.26233.7229.59
41328463483290927191.41171.44
51328463483290931371.2932.69
61328463483802816477.89313.34313.34
71328463483810814332.22522.52176.18
81328463483810816755.89274.74
91328463483810811760.6371.60
101328463483825511888.81070.8826.85
111328463483825522102.2329.89
121328463483825525618.3979.88
131328463483825538999.02127.94
141328463483825542272.3332.31
1513284634838255514910.33211.98
1613284634838255639533.46562.04
Sheet1
Cell Formulas
RangeFormula
E2=SUMIF($A$2:$A$16,$A2,$D$2:$D$16)*$C2/SUMIF($A$2:$A$16,$A2,$C$2:$C$16)


WBD
 
Upvote 0
Awesome! Thank you so much WBD. 896 lines prorated in 2 seconds. Commerce would come a screeching halt without you guys.
 
Upvote 0

Forum statistics

Threads
1,216,075
Messages
6,128,667
Members
449,462
Latest member
Chislobog

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