+ Reply to Thread
Results 1 to 5 of 5

Logical formula for multiple input

  1. #1
    Registered User
    Join Date
    03-07-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Logical formula for multiple input

    Hi

    trying to formulate the excel to return a percentage rebate/charge from the table which contain of 2 argument(purchase year & how many installment) but got error, i was trying to apply nesting if to do it but error come "the specified formula cannot be entered because it uses more levels of nesting than are allowed in the current file format.

    this is my formula, however error come when i insert another nesting if, i believe i do the wrong way, please correct me.

    =IF(AND(C11<=2006,C13<=3),"65%",IF(AND(C11<=2006,C13<=6),"60%",IF(AND(C11<=2006,C13<=12),"55%",IF(AND(C11<=2006,C13<=18),"50%",IF(AND(C11<=2006,C13<=24),"35%",IF(AND(C11=2007,C13<=3),"55%",IF(AND(C11<=2007,C13<=6),"50%")))))))

    Appreciate your assistance.

    example 2.xls

    Best Regards

    Eric Tham

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Logical formula for multiple input

    Hi. Welcome to the forum.

    In Excel 2003, there is a limit of 7 IF.

    But there is way to do it.

    Which is the extra condition?

    Look this

    =IF(AND(C11<=2006;C13<=3);"65%";IF(AND(C11<=2006;C13<=6);"60%";IF(AND(C11<=2006;C13<=12);"55%";IF(AND(C11<=2006;C13<=18);"50%";IF(AND(C11<=2006;C13<=24);"35%";IF(AND(C11=2007;C13<=3);"55%";IF(AND(C11<2007;C13<=6);"50%";IF(C13>1000;"FOTIS"))))))))

    Is this helps you?
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Logical formula for multiple input

    As you're using a table you don't need any if statements at all ...

    =INDEX(B2:F7,MATCH(C11,{0,2007,2008,2009,2010,2011},1),MATCH(C13,{0,4,7,13,19},1))
    Last edited by Andrew-R; 03-07-2012 at 11:57 AM.

  4. #4
    Registered User
    Join Date
    03-07-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Logical formula for multiple input

    Dear Fotis1991,

    thank for your assistance, my problem solve already but im still curious about your method, my extra condition is as per below:-

    =IF(AND(C11<=2006,C13<=3),"65%",IF(AND(C11<=2006,C13<=6),"60%",IF(AND(C11<=2006,C13<=12),"55%",IF(AN D(C11<=2006,C13<=18),"50%",IF(AND(C11<=2006,C13<=24),"35%",IF(AND(C11=2007,C13<=3),"55%",IF(AND(C11< =2007,C13<=6),"50%",IF(AND(C11< =2007,C13<=12),"45%".......till i covered the whole table))))))))

    Dear Andrew-R,

    thank you so much, my problem solve.

    Best Regards

    Eric Tham

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Logical formula for multiple input

    Hi

    An answer,just because i need to answer when someone ask me something.

    ...Dear Fotis1991,

    thank for your assistance, my problem solve already but im still curious about your method, my extra condition is as per below:-....
    Of course Andrew solution, it's much better!

    My idea, was for a solution that we used mutch time ago

    In each columns, 7 IF and then Concatenate these columns.
    Attached Files Attached Files

+ 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