• 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.

Nested if

Foxy17

New Member
Cell A1 has 10000 and cell A2 has 5000. B1 has the formula of =IF(A1>40040,(((A1-40040)*13.8%)+(((40040-7488)*10.4%)-(65.26))),(((A1-7488)*10.4%)-(65.26)))


Cel B2 has the same formula, but returns a negative number e.g. -324.012


What I want is if the number is negative return 0. I have tried this but cannot think where I'm going wrong.


=IF(IF(A1>40040,(((A1-40040)*13.8%)+(((40040-7488)*10.4%)-(65.26))),(((A1-7488)*10.4%)-(65.26)))<0,0,(((A1-40040)*13.8%)+(((40040-7488)*10.4%)-(65.26))))
 
Hi ,


Try this :


=IF(A2>40040,(A2-40040)*13.8%+(40040-7488)*10.4%-65.26,IF(((A2-7488)*10.4%-65.26)>0,(A2-7488)*10.4%-65.26,0))


Narayan
 
@Foxy17

Hi!

Sorry for intruding and even more at dessert time but I feel obliged...

... if the thought is enough for NARAYANK991 and you have that pint over there without knowing what to do with it... well, I'm here a little thirsty :)

Regards!
 
Back
Top