+ Reply to Thread
Results 1 to 3 of 3

If statements that need help!

  1. #1
    Registered User
    Join Date
    02-22-2013
    Location
    USA
    MS-Off Ver
    2007
    Posts
    2

    If statements that need help!

    Here's my dilema.

    I'm trying to make a formula that if the end result number results in a negative number, then it would automatically go to 0

    For instance, this is what I have written so far...

    =IF(D2="Yes",2.25*(E2-180)+350,IF(K2<=0,0))

    I can't figure out how to tell it to say 0 if it's below 0..

    So as you can see above, if D2 cell says yes, it will multiply 2.25 by e2-180+350. But I want it to also state that if it's NO then it will say 0 in that cell(k2). ALSO wanting to keep it at 0 because it's of mileage and certain loads.

    So from 0-180 it will result in a negative number. After 180 I want it to start calculating the IF="YES" statements.

    Any help?

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: If statements that need help!

    =max(IF(D2="Yes",2.25*(E2-180)+350,IF(K2<=0,0)),0)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    02-22-2013
    Location
    USA
    MS-Off Ver
    2007
    Posts
    2

    Re: If statements that need help!

    My god you saved my day. Thank you SO much!

+ 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