"(IF) Formulas"

Status
Not open for further replies.

Marwan69

Board Regular
Joined
Mar 14, 2018
Messages
80
[TABLE="width: 64"]
<tbody>[TR]
[TD="align: left"]
[TABLE="width: 567"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: left"]
Table 1
[/TD]
[TD="align: left"]
Table 2
[/TD]
[TD="align: left"]
Amount
[/TD]
[TD="align: left"]
% of Total Portfolio
[/TD]
[TD="align: left"]
% of Total Asset
[/TD]
[TD="align: left"]
Under/ Over %
[/TD]
[TD="align: left"]
Notes
[/TD]
[/TR]
[TR]
[TD]
2​
[/TD]
[TD]
>=20%​
[/TD]
[TD]
100%​
[/TD]
[TD]
15,292​
[/TD]
[TD]
4.70%​
[/TD]
[TD]
1.50%​
[/TD]
[TD]
-15.30%​
[/TD]
[TD]
I can't understand how this formula works. The value isn't true but still returns(D4-A4). It should return(0)​
[/TD]
[/TR]
[TR]
[TD]
3​
[/TD]
[TD]
>=20%​
[/TD]
[TD]
100%​
[/TD]
[TD]
23,585​
[/TD]
[TD]
7.20%​
[/TD]
[TD]
2.30%​
[/TD]
[TD]
-12.80%​
[/TD]
[TD]
Same as 1st note​
[/TD]
[/TR]
[TR]
[TD]
4​
[/TD]
[TD]
<=10%​
[/TD]
[TD]
5%​
[/TD]
[TD]
40,382​
[/TD]
[TD]
12.40%​
[/TD]
[TD]
3.90%​
[/TD]
[TD]
2.40%​
[/TD]
[TD]
I believe is correct​
[/TD]
[/TR]
[TR]
[TD]
5​
[/TD]
[TD]
<=10%​
[/TD]
[TD]
1%​
[/TD]
[TD]
0​
[/TD]
[TD]
0.00%​
[/TD]
[TD]
0.00%​
[/TD]
[TD]
0.00%​
[/TD]
[TD]
Correct​
[/TD]
[/TR]
[TR]
[TD]
6​
[/TD]
[TD]
<=5%​
[/TD]
[TD]
100%​
[/TD]
[TD]
8,709​
[/TD]
[TD]
2.70%​
[/TD]
[TD]
0.80%​
[/TD]
[TD]
-2.30%​
[/TD]
[TD]
Same as 1st note​
[/TD]
[/TR]
[TR]
[TD]
7​
[/TD]
[TD]
<=5%​
[/TD]
[TD]
5%​
[/TD]
[TD]
17,000​
[/TD]
[TD]
5.20%​
[/TD]
[TD]
1.70%​
[/TD]
[TD]
0.20%​
[/TD]
[TD]
Same as 1st note because 17000 >5%(B8), so it should return (0)​
[/TD]
[/TR]
[TR]
[TD]
8​
[/TD]
[TD]
<=5%​
[/TD]
[TD][/TD]
[TD]
21,751​
[/TD]
[TD]
6.70%​
[/TD]
[TD]
2.10%​
[/TD]
[TD]
1.70%​
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"][/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]
Cell Formula
D2 C2/325,405
E2 C2/1,027,949
F2 IF(AND(C2<>0,(E2<=D2>A2)),D2-A2,0)
[/TD]
[/TR]
</tbody>[/TABLE]
As you can see, I'm bound by these two boundaries(Table 1 & 2). The amount that I should invest shouldn't exceed the % of portfolio, nor should it exceed the % of total assets.
However, in certain circumstances
like: 15,292, I can invest as much as 100% of my total portfolio. 100% means no limit.
For another asset class, however, such as: 40,382, my investment should be between <=10 & 3.9%.

How can I build a formula to capture all of these parameters?

Many thanks,
Marwan
 
Last edited:

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Status
Not open for further replies.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
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