MrExcel Publishing
Your One Stop for Excel Tips & Solutions

can this be added to formula?

Posted by Jim on June 15, 2001 9:42 AM

I have a formula:
What i need to do is tweak it with:
If B17=1 then A17*G17 or
If B17>1 then A17*B17
Any thoughts?

Posted by g on June 15, 2001 9:44 AM

Posted by Russell on June 15, 2001 9:45 AM

What exactly do you need to tweak - the first part (G6*B17*A17)?

Posted by Tuc on June 15, 2001 10:01 AM

Something like
=Sum(G6* (IF(B17=1, A17*g17, IF (B17>1, A17*b17, b17))), If(E28=E17,-G28),(If(E29=E17,-G29*B29)))

Posted by thomas venn on June 15, 2001 12:10 PM

your formula is not correct for Excel. your formula needs to be like this:


I am not quite sure what you are trying to do with the "Sum(g6*". The point here is, that you must use a new IF statement for each argument. you may have up to seven IF THEN statements, but no matter how many IF THEN statements you make, you can have only one ELSE statement.