New If problem
Closed
Fatdog
-
Nov 3, 2009 at 08:33 PM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Nov 3, 2009 at 09:51 PM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Nov 3, 2009 at 09:51 PM
1 response
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Nov 3, 2009 at 09:51 PM
Nov 3, 2009 at 09:51 PM
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.