• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

To many arguments in formula but not sure why.

=IF(E7>0,SUM(E38+E18-E33),IF(E7,D38<0,SUM(D39+E18-E33),IF(D38>0,SUM(D38+E18-E33,0)))


The above formula seems to not want to work. It tells me to many arguments but I am not sure why.


If cell E7 is >0 sum E38+E18-E33


If cell E7 and D38 is <0 sum D39+E18-E33


If cell D38 >0 sum D38+E18-E33


Why is this not working. What am I missing?
 
Good day drewszone32


try this


=IF(E7>0,SUM(E38+E18-E33,IF(E7,D38<0,SUM(D39+E18-E33,IF(D38>0,SUM(D38+E18-E33,0))))))
 
try this:


Code:
=IF(E7>0,SUM(E38+E18-E33),IF(AND(E7<0,D38<0),SUM(D39+E18-E33),IF(D38>0,SUM(D38+E18-E33,0))))
 
When I add an amount in E7 is <0 the formula works. Once I add an amount in E7 it changes to false.


Can someone tell me why
 
Hi,


Try this one


=IF(E7>0,SUM(E38+E18-E33),IF(AND(E7<0,D38<0),SUM(D39+E18-E33),IF(D38>0,SUM(D38+E18-E33),0)))


The last zero needs to be on the outer parentheses
 
Back
Top