+ Reply to Thread
Results 1 to 4 of 4

formula for 2 different scenarios

  1. #1
    Registered User
    Join Date
    11-30-2007
    Posts
    2

    Unhappy formula for 2 different scenarios

    Need to create a formula to capture 2 possible senarios
    1) if cell is greater than .8999% then a 2% bonus on overall total
    2) if cell is less than .8999% then a 2% penalty on overall total
    There is no problem with #1 as it reads =if b13> .8999, b23*.02
    I can't get # 2 to work on it's own or together.
    Help

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: formula for 2 different senarios

    Try

    Please Login or Register  to view this content.
    You don't say what should happen if B13 = 0.8999.
    Martin

  3. #3
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: formula for 2 different senarios

    What do you want to happen if it's exactly .8999%?
    =IF(B13>=.8999,.02,-.02)*B23
    This will apply the bonus if B13 is exactly .8999%. Remove the second = to get it to apply a penalty at exactly .8999%.

  4. #4
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: formula for 2 different senarios

    mrice, your formula will actually return a higher value if there's a penalty. It should be 1.02 rather than .02 with your logic, which make it the total value after either bonus or penalty.

+ 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