+ Reply to Thread
Results 1 to 4 of 4

IF Statement - multiple criteria - won't quite work

  1. #1
    Forum Contributor Webbers's Avatar
    Join Date
    09-06-2005
    Location
    Poinciana, FL
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    337

    IF Statement - multiple criteria - won't quite work

    This formula started out much smaller, however there are 9 levels within the comp plans. This formula work fine, when I had it at 5 levels, but I added the additional components, and I just cannot figure out where my mistake is. Before this formula, everything was being done manually, and I am trying to automate as many of the calculations as possible. The issue before was that EACH month the formulas were being updated with the new criteria for the levels, now I have it all linked to tables (on the Comp Plans tab). I have been fighting... and losing with this formula for at least an hour know. I know it is something simple, I just cannot seem to SEE the problem. What am I doing wrong? I am Using Excel 2010 also.


    =IF(K2=0,"-",IF(AND($K2>='Comp Plans'!$C$115,$K2<='Comp Plans'!$E$115),'Comp Plans'!$B$115,IF(AND($K2>='Comp Plans'!$C$116,$K2<='Comp Plans'!$E$116),'Comp Plans'!$B$116,IF(AND($K2>='Comp Plans'!$C$117,$K2<='Comp Plans'!$E$117),'Comp Plans'!$B$117,IF(AND($K2>='Comp Plans'!$C$118,$K2<='Comp Plans'!$E$118),'Comp Plans'!$B$118,IF(AND($K2>='Comp Plans'!$C$119,$K2<='Comp Plans'!$E$119),'Comp Plans'!$B$119,IF(AND($K2>='Comp Plans'!$C$120,$K2<='Comp Plans'!$E$120),'Comp Plans'!$B$120,IF(AND($K2>='Comp Plans'!$C$121,$K2<='Comp Plans'!$E$121,'Comp Plans'!$B$121,IF(AND($K2>='Comp Plans'!$C$122,$K2<='Comp Plans'!$E$122),'Comp Plans'!$B$122,IF(AND($K2>='Comp Plans'!$C$123),'Comp Plans'!$B$123,"No Bonus"))))))))
    ~*~ Sherry ~*~
    Poinciana, FL

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,080

    Re: IF Statement - multiple criteria - won't quite work

    Deleted...
    Last edited by Special-K; 04-09-2012 at 03:45 PM.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,080

    Re: IF Statement - multiple criteria - won't quite work

    Looks like you got a table of ranges in C and E with a lookup in column B
    You may need to modify it for the "No Bonus" result

    Replace your formula with this

    =INDEX('Comp Plans'!B$115:B$123,MATCH(K2,'Comp Plans'!C$115:C$123,1),1)

  4. #4
    Forum Contributor Webbers's Avatar
    Join Date
    09-06-2005
    Location
    Poinciana, FL
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    337

    Cool Re: IF Statement - multiple criteria - won't quite work

    Ya'll rock! Obviously I was "overcomplicating" things! Thanks for the claification! I used the original formula you provided me with and it worked perfectly!

    =INDEX('Comp Plans'!B$115:B$123,MATCH(K2,'Comp Plans'!C$115:C$123,1),1)

    I then made some slight revisions to account for the "NO Bonus" aspect, and this is what I came up with... which works perfect. Thanks so very much!!!!!

    =IF(K2="-","-",IF($K2<'Comp Plans'!$C$115,"No Bonus",INDEX('Comp Plans'!$B$115:$B$123,MATCH($K2,'Comp Plans'!$C$115:$C$123,1),1)))

+ 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