+ Reply to Thread
Results 1 to 4 of 4

Nested if/and formulas in one cell to calculate bonus pay out

  1. #1
    Registered User
    Join Date
    01-02-2015
    Location
    United States
    MS-Off Ver
    2010
    Posts
    2

    Nested if/and formulas in one cell to calculate bonus pay out

    Hello,

    I am new to this, I am looking for some help with a formula that will generate a payout amount based on a percentage goal.
    Example.xlsx
    This is what I came up with, I am so lost.

    Basically I want to generate a formula that has several ranges and calculates the payout based on these values. I have included an example spreadsheet, please help. Thanks


    =IF(AND(G21>G12, G21<=G10), G6*0.5, G6*0) IF(AND(G21>G14, G21<=G12), G6*1, G6*0) IF(AND(G21>G16, G21<=G14), G6*1.15, G6*0) IF(G21<=G16, G6*1.25, G6*0)

    Example.xlsx

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Nested if/and formulas in one cell to calculate bonus pay out

    How about:

    =G6*CHOOSE(MATCH(G21,G10:G16,-1),0.5,0,1,0,1.15,0,1.25)
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,599

    Re: Nested if/and formulas in one cell to calculate bonus pay out

    You constructed your IF formula wrong, it should be:
    Please Login or Register  to view this content.
    You tried to put four separate IF formulas in the same cell. For the first IF, when the condition evaluates to TRUE, you calculate G6*0.5 but for the FALSE you put 0 and close the parentheses thus closing the formula. You want the False result to cause a test for a second condition, etc. Each of the following IF's should be in the "Value-if-False" position of the previous IF:

    IF(TEST 1 IS TRUE, THEN CHOICE 1, ELSEIF(TEST 2 IS TRUE, THEN CHOICE 2, ELSEIF(TEST 3 IS TRUE, THEN CHOICE 3, ELSEIF(TEST 4 IS TRUE, THEN CHOICE 4, ELSE DEFAULT))))

    This is a * NESTED IF *, not four separate IF's.
    Last edited by protonLeah; 01-02-2015 at 09:30 PM.
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    01-02-2015
    Location
    United States
    MS-Off Ver
    2010
    Posts
    2

    Re: Nested if/and formulas in one cell to calculate bonus pay out

    Thanks so much, that fixed it. I really appreciate your help

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Forecast Bonus Calculator - Require a formula to calculate the bonus' due
    By The_Snook in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-05-2013, 07:32 PM
  2. Calculate bonus for work
    By ojejones in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-16-2013, 03:56 PM
  3. Formula to calculate prorated bonus
    By dowling27 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-08-2011, 12:01 AM
  4. Calculate Bonus
    By mcarr5 in forum Excel General
    Replies: 4
    Last Post: 12-24-2009, 12:09 PM
  5. Bonus calculations using Nested IF's
    By Irfan123 in forum Excel General
    Replies: 3
    Last Post: 07-17-2008, 05:05 AM

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