New If problem
Closed
Fatdog
-
3 Nov 2009 à 20:33
venkat1926 Posts 1863 Registration date Sunday 14 June 2009 Status Contributor Last seen 7 August 2021 - 3 Nov 2009 à 21:51
venkat1926 Posts 1863 Registration date Sunday 14 June 2009 Status Contributor Last seen 7 August 2021 - 3 Nov 2009 à 21:51
1 response
venkat1926
Posts
1863
Registration date
Sunday 14 June 2009
Status
Contributor
Last seen
7 August 2021
811
3 Nov 2009 à 21:51
3 Nov 2009 à 21:51
what is meant by
Sum(P11-G11)*Q11
it is simply (P11-G11)*Q11
I presume there are only two choices for B11 Long or short in that case
use this formula
=if(B11="LONG",(G11-P11)*Q11,(P11-G11)*A11)
this means if B11 is "Long" then it is (G11-P11)*Q11
otherwise (P11-G11)*Q11
where are going to park this formula NOT in B11 otherwise it will give circular refrence error.
Sum(P11-G11)*Q11
it is simply (P11-G11)*Q11
I presume there are only two choices for B11 Long or short in that case
use this formula
=if(B11="LONG",(G11-P11)*Q11,(P11-G11)*A11)
this means if B11 is "Long" then it is (G11-P11)*Q11
otherwise (P11-G11)*Q11
where are going to park this formula NOT in B11 otherwise it will give circular refrence error.