Please help with this if statement.
I need c3 to multiply by c2 if the number is positive. In the actual case with a -13,642,000 the rsult in c3 should be 0. If it were 100 it would be -17 since it is a tax.
Help?
Please help with this if statement.
I need c3 to multiply by c2 if the number is positive. In the actual case with a -13,642,000 the rsult in c3 should be 0. If it were 100 it would be -17 since it is a tax.
Help?
I think this is what you mean:
In C3 place this formula: =IF(C2>0,C2*0.17,"")
change the double " at the end to whatever you want when C2 is NOT > 0
Assuming you mean 17 rather than -17 I would suggest:Originally Posted by fernandosaez
If not change 0.17 to -0.17 and MAX to MIN.Please Login or Register to view this content.
note: you may need to revert , to ; pending your regional settings
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
You were supposed to replace the "" with whatever you wanted so:
=IF(C2>0,C2*0.17,0)
but following DonkeyOte's advice would be the better way to go.
You're welcome.
But the formula that DonkeyOte gave you (in Post #3): =MAX(0,C2*0.17)
will give you the exact same results.
Anyway, don't forget to mark your thread as SOLVED (click FAQ in menu bar at top of this page for directions)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks