+ Reply to Thread
Results 1 to 7 of 7

if statement multiplying when the number is positive

  1. #1
    Registered User
    Join Date
    02-25-2006
    Posts
    13

    if statement multiplying when the number is positive

    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?
    Attached Files Attached Files

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,454

    Re: if statement multiplying when the number is positive

    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

  3. #3
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,520

    Re: if statement multiplying when the number is positive

    Quote Originally Posted by fernandosaez
    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.
    Assuming you mean 17 rather than -17 I would suggest:

    Please Login or Register  to view this content.
    If not change 0.17 to -0.17 and MAX to MIN.

    note: you may need to revert , to ; pending your regional settings

  4. #4
    Registered User
    Join Date
    02-25-2006
    Posts
    13

    Re: if statement multiplying when the number is positive

    Quote Originally Posted by Cutter View Post
    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
    Great!

    One thing, It returns a NOT > 0 or anything I change it to. Can it in some way return to the number 0?

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,454

    Re: if statement multiplying when the number is positive

    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.

  6. #6
    Registered User
    Join Date
    02-25-2006
    Posts
    13

    Re: if statement multiplying when the number is positive

    Quote Originally Posted by Cutter View Post
    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.
    Max and Min didnt work cause it just gives positive and negative numbers. What you said worked perfect. THANKS!

  7. #7
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,454

    Re: if statement multiplying when the number is positive

    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)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1