rudebwoyrohan
New Member
- Joined
- Jul 4, 2015
- Messages
- 2
I need a formula in B7 to pick the lesser of B5 and B6. I keep getting a circular reference. Please assist if you can. Thank you.
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Rate 1[/TD]
[TD]0.57[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Rate 2[/TD]
[TD]0.75[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Rate 3[/TD]
[TD]200[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Rate 4[/TD]
[TD]0.001[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Cap[/TD]
[TD]=ROUND(IF(ROUND(B3*B4,6)>B8*30%,B8*30%,ROUND(B3*B4,6)),6)[/TD]
[TD][TABLE="width: 378"]
<tbody>[TR]
[TD]B3 x B4 cannot be >30% of B8 so capped at 30% of B8[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Calculated Fee[/TD]
[TD]=B3*B4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Admin Fee[/TD]
[TD][/TD]
[TD][TABLE="width: 378"]
<tbody>[TR]
[TD]This should be the lesser of B5 and B6[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Rate A[/TD]
[TD]=B1-B7[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]Rate B[/TD]
[TD][TABLE="width: 438"]
<tbody>[TR]
[TD]=ROUND(B8/B2,6)[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Rate 1[/TD]
[TD]0.57[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Rate 2[/TD]
[TD]0.75[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Rate 3[/TD]
[TD]200[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Rate 4[/TD]
[TD]0.001[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Cap[/TD]
[TD]=ROUND(IF(ROUND(B3*B4,6)>B8*30%,B8*30%,ROUND(B3*B4,6)),6)[/TD]
[TD][TABLE="width: 378"]
<tbody>[TR]
[TD]B3 x B4 cannot be >30% of B8 so capped at 30% of B8[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Calculated Fee[/TD]
[TD]=B3*B4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Admin Fee[/TD]
[TD][/TD]
[TD][TABLE="width: 378"]
<tbody>[TR]
[TD]This should be the lesser of B5 and B6[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Rate A[/TD]
[TD]=B1-B7[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]Rate B[/TD]
[TD][TABLE="width: 438"]
<tbody>[TR]
[TD]=ROUND(B8/B2,6)[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]