Search : in
By :

New If problem

Last answer on Nov 4, 2009 2:51:52 am GMT Fatdog, on Nov 4, 2009 1:33:17 am GMT 
 Report this message to moderators

Hello,

Im having some real problems trying to get an if formula to work. Well i think its an if formula i need.

I want a sum to take place based on one word or another sum to take place based on another word all from the same cell.

my formula i have at present could be way off but please advise if anyone can

=if(B11=Long,=[Sum(P11-G11)*Q11],=[sum(G11-P11)*Q11])

so if the word is short i want the outcome to be the sum of (G11-P11)*Q11 but if the word is long i want the outcome to be the sum of (P11-G11)*Q11.

any assistnce wold be great

regards

Configuration: Windows Vista Internet Explorer 8.0

Best answers for « New If problem » in :
Error Message: Disk Boot failure ShowError Message: Disk Boot failure-insert system disk and press enter Solution 1: Ensure that your drives are empty Solution 2: BIOS set up Solution 3: New hard drive configuration Solution 4: Hard drive not properly plugged in Solution 5:...
Create a Skype account ShowCreate a Skype account How to create a Skype account? If you do not have Skype, download it and install it, the following window will appear after the installation finished: If Skype is already installed, run it and click Do not...
Forcing Internet Explorer 7 to open pages in a new tab ShowForcing Internet Explorer 7 to open pages in a new tab Issue Solution Issue When surfing through Internet Explorer 7, you notice that all pages are opened by default in a new window. Solution Below is a proposed solution...
Download Visual Task Tips ShowThe display of thumbnails of open windows in the taskbar is a new feature that was introduced in Vista. Visual Task Tips is a small program that lets you do so in XP. If you want your XP look like Vista, then you need this software. For more...

1

 venkat1926, on Nov 4, 2009 2:51:52 am GMT

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.

Reply to venkat1926