+ Reply to Thread
Results 1 to 19 of 19

IF function has more than 64 levels of nesting

  1. #1
    Registered User
    Join Date
    02-06-2014
    Location
    Mesa, Arizona
    MS-Off Ver
    Excel 2010
    Posts
    7

    IF function has more than 64 levels of nesting

    Hello,

    I am creating a tool in excel using the IF and AND functions. I am sure there is an easier way of doing this but I have no idea how. I just got through creating the formula but I am getting an error message that indicates I have exceeding the 64 levels of nesting. I have looked this issue up in the forums but I cannot find an answer that helps me resolve my issue. My only thought is to split up the formula into two cells, but I don't want to do that unless I have to. Here is the formula:

    =IF(C9="","",IF(AND(C9<DATE(2013,1,1),C8="Single",C5="Single"),"Submit Cert",IF(AND(C9>=DATE(2013,1,1),C9<DATE(2014,1,1),C8="Single",C5="Single"),"Submit Cert",IF(AND(C9>=DATE(2014,1,1),C8="Single",C5="Single"),"Collect Docs",IF(AND(C9<DATE(2013,1,1),C8="Married/Remarried",C5="Single"),"Collect Docs",IF(AND(C9>=DATE(2013,1,1),C9<DATE(2014,1,1),C8="Married/Remarried",C5="Single"),"Collect Docs",IF(AND(C9>=DATE(2014,1,1),C8="Married/Remarried",C5="Single"),"Submit Cert",IF(AND(C9<DATE(2013,1,1),C8="Separated",C5="Single"),"Submit Cert as long as there is no other conflicting information",IF(AND(C9>=DATE(2013,1,1),C9<DATE(2014,1,1),C8="Separated",C5="Single"),"Submit Cert as long as there is no other conflicting information",IF(AND(C9>=DATE(2014,1,1),C8="Separated",C5="Single"),"Collect Docs",IF(AND(C9<DATE(2013,1,1),C8="Divorced",C5="Single"),"Submit Cert",IF(AND(C9>=DATE(2013,1,1),C9<DATE(2014,1,1),C8="Divorced",C5="Single"),"Submit Cert",IF(AND(C9>=DATE(2014,1,1),C8="Divorced",C5="Single"),"Collect Docs",IF(AND(C9<DATE(2013,1,1),C8="Widowed",C5="Single"),"Submit Cert",IF(AND(C9>=DATE(2013,1,1),C9<DATE(2014,1,1),C8="Widowed",C5="Single"),"Collect Docs",IF(AND(C9>=DATE(2014,1,1),C8="Widowed",C5="Single"),"Collect Docs",IF(AND(C9<DATE(2013,1,1),C8="Single",C5="Married-Separate"),"Collect Docs",IF(AND(C9>=DATE(2013,1,1),C9<DATE(2014,1,1),C8="Single",C5="Married-Separate"),"Collect Docs",IF(AND(C9>=DATE(2014,1,1),C8="Single",C5="Married-Separate"),"Submit Cert",IF(AND(C9<DATE(2013,1,1),C8="Married/Remarried",C5="Married-Separate"),"Submit Cert",IF(AND(C9>=DATE(2013,1,1),C9<DATE(2014,1,1),C8="Married/Remarried",C5="Married-Separate"),"Submit Cert",IF(AND(C9>=DATE(2014,1,1),C8="Married/Remarried",C5="Married-Separate"),"Collect Docs",IF(AND(C9<DATE(2013,1,1),C8="Separated",C5="Married-Separate"),"Submit Cert",IF(AND(C9>=DATE(2013,1,1),C9<DATE(2014,1,1),C8="Separated",C5="Married-Separate"),"Submit Cert",IF(AND(C9>=DATE(2014,1,1),C8="Separated",C5="Married-Separate"),"Submit Cert",IF(AND(C9<DATE(2013,1,1),C8="Divorced",C5="Married-Separate"),"Collect Docs",IF(AND(C9>=DATE(2013,1,1),C9<DATE(2014,1,1),C8="Divorced",C5="Married-Separate"),"Collect Docs",IF(AND(C9>=DATE(2014,1,1),C8="Divorced",C5="Married-Separate"),"Submit Cert",IF(AND(C9<DATE(2013,1,1),C8="Widowed",C5="Married-Separate"),"Collect Docs",IF(AND(C9>=DATE(2013,1,1),C9<DATE(2014,1,1),C8="Widowed",C5="Married-Separate"),"Submit Cert",IF(AND(C9>=DATE(2014,1,1),C8="Widowed",C5="Married-Separate"),"Submit Cert",IF(AND(C9<DATE(2013,1,1),C8="Single",C5="Married-Joint"),"Collect Docs",IF(AND(C9>=DATE(2013,1,1),C9<DATE(2014,1,1),C8="Single",C5="Married-Joint"),"Collect Docs",IF(AND(C9>=DATE(2014,1,1),C8="Single",C5="Married-Joint"),"Submit Cert",IF(AND(C9<DATE(2013,1,1),C8="Married/Remarried",C5="Married-Joint"),"Submit Cert",IF(AND(C9>=DATE(2013,1,1),C9<DATE(2014,1,1),C8="Married/Remarried",C5="Married-Joint"),"Submit Cert",IF(AND(C9>=DATE(2014,1,1),C8="Married/Remarried",C5="Married-Joint"),"Collect Docs",IF(AND(C9<DATE(2013,1,1),C8="Separated",C5="Married-Joint"),"Submit Cert",IF(AND(C9>=DATE(2013,1,1),C9<DATE(2014,1,1),C8="Separated",C5="Married-Joint"),"Submit Cert",IF(AND(C9>=DATE(2014,1,1),C8="Separated",C5="Married-Joint"),"Submit Cert",IF(AND(C9<DATE(2013,1,1),C8="Divorced",C5="Married-Joint"),"Collect Docs",IF(AND(C9>=DATE(2013,1,1),C9<DATE(2014,1,1),C8="Divorced",C5="Married-Joint"),"Collect Docs",IF(AND(C9>=DATE(2014,1,1),C8="Divorced",C5="Married-Joint"),"Submit Cert",IF(AND(C9<DATE(2013,1,1),C8="Widowed",C5="Married-Joint"),"Collect Docs",IF(AND(C9>=DATE(2013,1,1),C9<DATE(2014,1,1),C8="Widowed",C5="Married-Joint"),"Submit Cert",IF(AND(C9>=DATE(2014,1,1),C8="Widowed",C5="Married-Joint"),"Submit Cert",IF(AND(C9<DATE(2013,1,1),C8="Single",C5="Head of Household"),"Submit Cert",IF(AND(C9>=DATE(2013,1,1),C9<DATE(2014,1,1),C8="Single",C5="Head of Household"),"Submit Cert",IF(AND(C9>=DATE(2014,1,1),C8="Single",C5="Head of Household"),"Collect Docs",IF(AND(C9<DATE(2013,1,1),C8="Married/Remarried",C5="Head of Household"),"Collect Docs",IF(AND(C9>=DATE(2013,1,1),C9<DATE(2014,1,1),C8="Married/Remarried",C5="Head of Household"),"Collect Docs",IF(AND(C9>=DATE(2014,1,1),C8="Married/Remarried",C5="Head of Household"),"Submit Cert",IF(AND(C9<DATE(2013,1,1),C8="Separated",C5="Head of Household"),"Submit Cert",IF(AND(C9>=DATE(2013,1,1),C9<DATE(2013,7,1),C8="Separated",C5="Head of Household"),"Submit Cert",IF(AND(C9>=DATE(2013,7,1),C9<DATE(2014,1,1),C8="Separated",C5="Head of Household"),"Student Requires Qualifying HOH Form, Amended Taxes(1040X), or Tax Preparer Letter",IF(AND(C9>=DATE(2014,1,1),C8="Separated",C5="Head of Household"),"Collect Docs",IF(AND(C9<DATE(2013,1,1),C8="Divorced",C5="Head of Household"),"Submit Cert",IF(AND(C9>=DATE(2013,1,1),C9<DATE(2014,1,1),C8="Divorced",C5="Head of Household"),"Submit Cert",IF(AND(C9>=DATE(2014,1,1),C8="Divorced",C5="Head of Household"),"Collect Docs",IF(AND(C9<DATE(2013,1,1),C8="Widowed",C5="Head of Household"),"Submit Cert",IF(AND(C9>=DATE(2013,1,1),C9<DATE(2014,1,1),C8="Widowed",C5="Head of Household"),"Submit Cert",IF(AND(C9>=DATE(2014,1,1),C8="Widowed",C5="Head of Household"),"Collect Docs",IF(AND(C9<DATE(2013,1,1),C8="Single",C5="Widow(er)"),"Submit Cert",IF(AND(C9>=DATE(2013,1,1),C9<DATE(2014,1,1),C8="Single",C5="Widow(er)"),"Submit Cert",IF(AND(C9>=DATE(2014,1,1),C8="Single",C5="Widow(er)"),"Collect Docs",IF(AND(C9<DATE(2013,1,1),C8="Married/Remarried",C5="Widow(er)"),"Collect Docs",IF(AND(C9>=DATE(2013,1,1),C9<DATE(2014,1,1),C8="Married/Remarried",C5="Widow(er) "),"Collect Docs",IF(AND(C9>=DATE(2014,1,1),C8="Married/Remarried",C5="Widow(er)"),"Submit Cert",IF(AND(C9<DATE(2013,1,1),C8="Separated",C5="Widow(er)"),"Collect Docs",IF(AND(C9>=DATE(2013,1,1),C9<DATE(2014,1,1),C8="Separated",C5="Widow(er)"),"Collect Docs",IF(AND(C9>=DATE(2014,1,1),C8="Separated",C5="Widow(er)"),"Collect Docs",IF(AND(C9<DATE(2013,1,1),C8="Divorced",C5="Widow(er)"),"Collect Docs",IF(AND(C9>=DATE(2013,1,1),C9<DATE(2014,1,1),C8="Divorced",C5="Widow(er)"),"Collect Docs",IF(AND(C9>=DATE(2014,1,1),C8="Divorced",C5="Widow(er)"),"Collect Docs",IF(AND(C9<DATE(2013,1,1),C8="Widowed",C5="Widow(er)"),"Submit Cert",IF(AND(C9>=DATE(2013,1,1),C9<DATE(2014,1,1),C8="Widowed",C5="Widow(er)"),"Collect Docs",IF(AND(C9>=DATE(2014,1,1),C8="Widowed",C5="Widow(er)"),"Collect Docs","")))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))

    I attached a spreadsheet as well. Any suggestions as to whether or not there is an easier way to put this together would be appreciated. The fields labeled N/A on the spreadsheet are not applicable now but I added them as they may be in the future. Also the point of this tool is for the user to input a filing status, marital status, and marital status date...The output would be whatever documentation is required based off the input. That is why I created text for each scenario.

    Any guidance is appreciated! Test 2.xlsx

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: IF function has more than 64 levels of nesting

    welcome to the forum

    Looking at that monster....ummm noway!!! Im not even goin to try and decypher that. I think you need to look into creating a table of values and using index/match or vlookup.

    Walk me (slowly) through what you are trying to do?

    (I have to say, that is probably the biggest, messyest formula I have seen - no disprespect intended, I can appreciate the effort that went into giving birth to that)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: IF function has more than 64 levels of nesting

    Seems to me you could tabulate all of the possibilities ...

    B
    C
    D
    10
    Single Single >=1/1/2013
    11
    Single Single >=1/1/2014
    12
    Single Married/Remarried >=1/1/2013
    13
    Single Married/Remarried >=1/1/2014
    14
    Single Separated >=1/1/2013
    15
    Single Separated >=1/1/2014
    16
    Single Divorced >=1/1/2013
    17
    Single Divorced >=1/1/2014
    18
    Single Widowed >=1/1/2013
    19
    Single Widowed >=1/1/2014
    20
    Married-Joint Single >=1/1/2013
    21
    Married-Joint Single >=1/1/2014
    22
    Married-Joint Married/Remarried >=1/1/2013
    23
    Married-Joint Married/Remarried >=1/1/2014
    24
    Married-Joint Separated >=1/1/2013


    ... add a column for resolution, and use a simple formula to return the value where all the criteria are met.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: IF function has more than 64 levels of nesting

    Thanks for the assist shg. Not sure how you weedled that tabke from that formula, but great job

  5. #5
    Registered User
    Join Date
    02-06-2014
    Location
    Mesa, Arizona
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: IF function has more than 64 levels of nesting

    Yeah, I really appreciate the help from the both of you. I know this my formula was crazy long....I am a beginner with excel (obviously).

    I think I see where you are going with this...Make a table with the possibilities and then when the user makes their selections, the resolution will populate? I have never done something like this. Can you show me an example of what type of formula I should use? Let's just say it's a single, single, >=01/01/2013, and the resolution is to "Collect Docs".

    Sorry about my ignorance on this!

  6. #6
    Registered User
    Join Date
    02-06-2014
    Location
    Mesa, Arizona
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: IF function has more than 64 levels of nesting

    @Fdibbins

    Here is what I am trying to do

    I want the user to be able to select the Tax Return Filing Status, Marital Status, and then enter the marital status date. Based off the elections made, I want excel to tell the user what action is needed. Here is a visual:

    When the filing status = single, and marital status = single, and marital status date < 01/01/2013, then the user should Request Cert
    When the filing status = single, and marital status = single, and marital status date >=01/01/2013 and <01/01/2014, then the user should Request Cert
    When the filing status = single, and marital status = single, and marital status date >=01/01/2014, then the user should submit docs

    I would like for the user to be able to select the filing status and marital status from a list and then manually enter in the marital status date. Once they do that, then the hope is to have the "Request Cert" or "Submit Docs" populate as the resolution.

    I hope this explanation helps!

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: IF function has more than 64 levels of nesting

    You call yourself a beginner, but I would completely disagree. I doubt any beginner would be able to string together a beast like that - that showed a level of competance

    Based on shg's table I modified it a bit....
    A
    B
    C
    D
    1
    Cat1
    Cat2
    1/1/2013 1/1/2014
    2
    Single Single aa aa11
    3
    Single Married/Remarried bb bb11
    4
    Single Separated cc cc11
    5
    Single Divorced dd dd11
    6
    Single Widowed ee ee11
    7
    Married-Joint Single ff ff11
    8
    Married-Joint Married/Remarried gg gg11
    9
    Married-Joint Separated hh hh11
    10
    11
    Cat1 Single
    12
    Cat2 Divorced
    13
    date
    6/6/2014
    14
    dd11


    B14=INDEX($C$2:$D$9,MATCH(B11&"-"&B12,INDEX($A$2:$A$9&"-"&$B$2:$B$9,0),0),MATCH(B13,$C$1:$D$1,1))

  8. #8
    Registered User
    Join Date
    02-06-2014
    Location
    Mesa, Arizona
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: IF function has more than 64 levels of nesting

    Thanks again for all your help! I used what you showed me in conjunction with a few youtube videos and voila!!! My first array! Thanks again for all your help and encouragement!!!!

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: IF function has more than 64 levels of nesting

    Glad you got it resolved, and thanks for the feedback (both)

  10. #10
    Registered User
    Join Date
    01-05-2017
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    2

    Re: IF function has more than 64 levels of nesting

    I'm trying to create an "IF" condition to fill in the cell with an id. however, it only allows me to create 64 nesting "IF" statements. i cannot add anymore.

    how do I go about this?
    the purpose of this is to automatically identify the ID number with just a specific format of the name.

    =IFERROR(IF(C3="Akosah, Michael", "MA045", IF(C3="Brighenti, Alessandra ", "MA206", IF(C3="Kasusula, Audry", "MA266", IF(C3="Maher, Maureen", "MA043", IF(C3="Murphy, Jonathan", "MA269", IF(C3="Raney, Shreya", "MA208", IF(C3="Scanavacca, Laura", "MA328", IF(C3="Hinder, Jai", "MA255", IF(C3="Clark, Jade", "MA260", IF(C3="Fordyce-Harvey, Craig", "MA277", IF(C3="Gardner, Alex", "MA211", IF(C3="Garven, Mark", "MA041", IF(C3="Parkes, Jason", "MA200", IF(C3="Russell, Andrew", "MA279", IF(C3="Whitmore, Brad", "MA016", IF(C3="Milburn, Scott", "MA323", IF(C3="Child, Alex", "MA329", IF(C3="Hernando, Raul", "MA006", IF(C3="Uluinaceva, Bernadette", "MA001", IF(C3="Yildirim, Natalie", "MA005", IF(C3="Winterstein, Barbra", "MA110", IF(C3="Albaladejo, Alfredo", "MA070", IF(C3="Venieris, Theodora", "MA007", IF(C3="Sim, Colette", "MA018", IF(C3="Bailey, Siobhan", "MA258", IF(C3="Barillaro, Giulio", "MA030", IF(C3="Desuyo-Ferguson, Atissa", "MA067", IF(C3="Esler, Melissa", "MA044", IF(C3="Fong, Syt Bin", "MA252", IF(C3="Hookey, Robert", "MA055", IF(C3="Magerano, Raoul", "MA053", IF(C3="Moorcroft, Joseph", "MA254", IF(C3="Patterson, Phil", "MA271", IF(C3="Rathore, Shakti", "MA260", IF(C3="Saini, Mona", "MA250", IF(C3="Saleman-Dahir, Suban", "MA276", IF(C3="Tapueluelu, Fatai", "MA276", IF(C3= "Zimmatore, Christine", "MA020", IF(C3="Andlovec, Lauren", "MA317", IF(C3="Patanker, Aaditya", "MA319", IF(C3="Murphy, Michelle", "MA325", IF(C3="Davis, Aaron", "MA009", IF(C3="Harpum, Hollie", "MA032", IF(C3="Panchal, Arjun", "MA332", IF(C3="Venkata, Jeevan", "MA333", IF(C3= "Evershed, Chris", "MA018", IF(C3="Ahio-Tuivai, Mele", "MA259", IF(C3="Bhave, Ruchita", "MA256", IF(C3="Jamil, Mifrah", "MA265", IF(C3="Mala, Kalpana", "MA268", IF(C3="Povall, Daniel", "MA024", IF(C3="Taefu, Roberta", "MA056", IF(C3="Tonghahai, Nicolette", "MA048", IF(C3="Marshall, Charlotte", "MA321", IF(C3="Ahuja, Vinod", "MA331", IF(C3="Abucot, Lirome", "MA207", IF(C3="Albinus, Vikki", "MA262", IF(C3="Brooks, Jamie-Leigh", "MA262", IF(C3="Cortes, Deraljin", "MA251", IF(C3="Hennessey, Katy", "MA263", IF(C3="Karbhjari, Priyanka", "MA052", IF(C3="Lawrence, Kieron", "MA253", IF(C3="Manapat, Charly", "MA017", IF(C3="Martin, Terence", "MA063", "")))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))),"")


    thank you.

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: IF function has more than 64 levels of nesting

    red123 welcome to the forum

    wow, that is some monster!!
    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.

  12. #12
    Registered User
    Join Date
    01-05-2017
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    2

    Re: IF function has more than 64 levels of nesting

    Apologies. it's the first time I posted online in a forum. will note it next time. thanks.

  13. #13
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: IF function has more than 64 levels of nesting

    No problem, I will keep an eye open for your new thread on this

  14. #14
    Registered User
    Join Date
    05-26-2017
    Location
    sydney
    MS-Off Ver
    2103
    Posts
    2

    Unhappy Re: IF function has more than 64 levels of nesting

    Thanks again for all your help! I used what you showed me in conjunction with a few youtube videos and voila!!! My first array! Thanks again for all your help and encouragement!!!!

    I found your problem in google searching for the same problem of excess levels to 64. So would have you newly found array example handy to send me or show?

    Below is what I have: If the object meets the range of the formula I get a boolean answer

    =
    IF(AND($AA$2<=0.78,$U$2>=1,$U$1=9,$K$4="WET",$B$5>=13,$AA$2<0.7,$Y7="YES6"),"YES",
    IF(AND($AA$2<=0.78,$U$2>=1,$U$1=9,$K$4="DRY",$B$5>=13,$AA$2<0.7,$Y7="YES6"),"YES",
    IF(AND($AA$2<=0.78,$U$2>=1,$U$1=7,$B$5<13,$AA$4<$AA$1,$AA7>=($AA$1*0.13),$X$1<=4,$Y7="YES6"),"YES",
    IF(AND($AA$2<=0.78,$U$2>=1,$B$5<13,$J$2<=0.986,$X$1<=2,$Y7="YES6"),"YES",
    IF(AND($J$2<=0.986,($X$2+X$3)=4,$U$2>=1,$AA$2<=0.89,$AA7>=($AA$1*0.13),$X$1<=4,$Y7="YES6"),"YES",
    IF(AND($J$2<=0.986,$U$2>=1,$AA$2<=0.78,$AA$4<$AA$1,$B$5<13,$X$1<=4,$Y7="YES6"),"YES",
    IF(AND($J$2<=0.986,$AA$2<=0.78,$U$2>=1,$AA7>=($AA$1*0.001),$X$1<=1,$Y7="YES6"),"YES",
    IF(AND($U$2>=1,$AA$4<$AA$1,$J$2<=0.986,$AA7>=($AA$1*0.51),$B$5<13,$Y7="YES6"),"YES",

    IF(AND($AA$2<=0.78,$U$2>=1,$U$1=9,$K$4="WET",$B$5>=13,$AA$2<0.7,$Y7="YES6A"),"YES",
    IF(AND($AA$2<=0.78,$U$2>=1,$U$1=9,$K$4="DRY",$B$5>=13,$AA$2<0.7,$Y7="YES6A"),"YES",
    IF(AND($AA$2<=0.78,$U$2>=1,$U$1=7,$B$5<13,$AA7>=($AA$1*0.13),$X$1<=4,$Y7="YES6A"),"YES",
    IF(AND($AA$2<=0.78,$U$2>=1,$B$5<13,$J$2<=0.986,$X$1<=2,$Y7="YES6A"),"YES",
    IF(AND(($X$2+X$3)=4,$U$2>=1,$AA$2<=0.78,$AA7>=($AA$1*0.13),$X$1<=4,$Y7="YES6A"),"YES",
    IF(AND($J$2<=0.986,$U$2>=1,$AA$4>$AA$1,$AA$2<=0.78,$B$5<13,$X$1<=4,$Y7="YES6A"),"YES",
    IF(AND($AA$2<=0.78,$U$2>=1,$X$1<=1,$Y7="YES6A"),"YES",

    IF(AND($AA$2<=0.78,$U$2>=1,$U$1=9,$K$4="WET",$B$5>=13,$AA$2<0.7,$Y7="YES9"),"YES",
    IF(AND($AA$2<=0.78,$U$2>=1,$U$1=9,$K$4="DRY",$B$5>=13,$AA$2<0.7,$Y7="YES9"),"YES",
    IF(AND($AA$2<=0.78,$U$2>=1,$U$1=7,$B$5<13,$AA7>=($AA$1*0.13),$X$1<=4,$Y7="YES9"),"YES",
    IF(AND($AA$2<=0.78,$U$2>=1,$B$5<13,$J$2<=0.986,$X$1<=2,$Y7="YES9"),"YES",
    IF(AND(($X$2+X$3)=4,$U$2>=1,$AA$2<=0.78,$AA7>=($AA$1*0.13),$X$1<=4,$Y7="YES9"),"YES",
    IF(AND($J$2<=0.986,$U$2>=1,$AA$4>$AA$1,$AA$2<=0.78,$B$5<13,$X$1<=4,$Y7="YES9"),"YES",
    IF(AND($AA$2<=0.78,$U$2>=1,$X$1<=1,$Y7="YES9"),"YES",

    IF(AND($U$2>=1,$X$2<=2,$AA$2>=0.986,$Y7="YES2"),"YES",
    IF(AND($U$2>=1,$X$2<=2,$AA$2<=0.986,$AA7>=($AA$2*0.01),$Y7="YES2"),"YES",
    IF(AND($U$2>=1,($X$2+X$3)=4,$AA7>=($AA$3*0.005),$Y7="YES2"),"YES",
    IF(AND($U$2>=1,$U$1<>8,$U$1<>9,$B$5<13,$AA$2>=0.8,$AA7>=($AA$2*0.005),$X$2=4,$Y7="YES2"),"YES",
    IF(AND($U$2>=1,$U$1<>8,$U$1<>9,$B$5>=13,$AA$2>=0.8,$AA7>=($AA$2*0.005),$X$2=4,$Y7="YES2"),"YES",
    IF(AND($U$2>=1,$X$2=4,$J$2<=0.986,$AA7>=($AA$2*0.005),$Y7="YES2"),"YES",
    IF(AND($U$2>=1,$U$1=7,$AA7>=(($AA$2+$AA$3)*0.13),$Y7="YES2"),"YES",

    IF(AND($U$2>=1,$X$2<=2,$AA$2>=0.9,$Y7="YES4"),"YES",
    IF(AND($U$2>=1,$X$2<=2,$AA$2<=0.9,$AA7>=($AA$2*0.2),$Y7="YES4"),"YES",
    IF(AND($U$2>=1,($X$2+X$3)=4,$AA7>=($AA$3*0.005),$Y7="YES4"),"YES",
    IF(AND($U$2>=1,$U$1<>8,$U$1<>9,$B$5<13,$AA$2>=0.8,$AA7>=($AA$3*0.005),$X$2=4,$Y7="YES4"),"YES",
    IF(AND($U$2>=1,$U$1<>8,$U$1<>9,$B$5>=13,$AA$2>=0.8,$AA7>=($AA$3*0.005),$X$2=4,$Y7="YES4"),"YES",
    IF(AND($U$2>=1,$X$2=4,$AA7>=($AA$2*0.2),$Y7="YES4"),"YES",
    IF(AND($U$2>=1,$U$1=7,$AA7>=(($AA$2+$AA$3)*0.13),$Y7="YES4"),"YES",

    IF(AND($U$2>=1,$X$2<=2,$AA$2>=0.9,$Y7="YES4A"),"YES",
    IF(AND($U$2>=1,$X$2<=2,$AA$2<=0.9,$AA7>=($AA$2*0.2),$Y7="YES4A"),"YES",
    IF(AND($U$2>=1,($X$2+X$3)=4,$AA7>=($AA$3*0.005),$Y7="YES4A"),"YES",
    IF(AND($U$2>=1,$U$1<>8,$U$1<>9,$B$5<13,$AA$2>=0.8,$AA7>=($AA$3*0.005),$X$2=4,$Y7="YES4A"),"YES",
    IF(AND($U$2>=1,$U$1<>8,$U$1<>9,$B$5>=13,$AA$2>=0.8,$AA7>=($AA$3*0.005),$X$2=4,$Y7="YES4A"),"YES",
    IF(AND($U$2>=1,$X$2=4,$AA7>=($AA$2*0.2),$Y7="YES4A"),"YES",
    IF(AND($U$2>=1,$U$1=7,$AA7>=(($AA$2+$AA$3)*0.13),$Y7="YES4A"),"YES",

    IF(AND($U$2>=1,$J$2<=0.986,$AA$2<=0.89,$AA7>=($AA$3*0.01),($X$2+X$3)=4,$Y7="YES3"),"YES",
    IF(AND($U$2>=1,$J$2>=0.986,$AA$2<=0.79,$X$3=1,$X$2=4,$U$2>1,$J7<=6,$Y7="YES3"),"YES",
    IF(AND($U$2>=1,$J$2<=0.986,$AA$2<=0.89,$U$1<>7,$X$3=1,$X$2=1,$AA7>=($AA$3*0.001),$Y7="YES3"),"YES",
    IF(AND($U$2>=1,$J$2<=0.986,$AA$2<=0.89,$X$3=1,$AA$3>=0.01,$U$1<>7,$AA7>=($AA$3*0.001),$B$5<13,$Y7="YES3"),"YES",
    IF(AND($U$2>=1,$J$2>=0.986,$X$3=1,$AA$3>=0.01,$AA7>=0.005,$B$5>13,$Y7="YES3"),"YES",
    IF(AND($U$2>=1,$J$2>=0.986,$AA$2>=0.8,$X$3=1,$U$2>1,$U$1<>7,$J7<=4,$B$5<13,$Y7="YES3"),"YES",
    IF(AND($U$2>=1,$J$2>=0.986,$X$3=1,$U$1<>7,$J7<=4,$B$5<13,$Y7="YES3"),"YES",
    IF(AND($U$2>=1,$J$2<=0.986,$X$3=1,$U$1<>7,$AA7>=($AA$3*0.01),$B$5<13,$Y7="YES3"),"YES",
    IF(AND($U$2>=1,$J$2>=0.986,$AA$2>=0.79,$U$1=9,$Y7="YES3"),"YES",

    IF(AND($AA$2<=0.79,$U$2>=1,$U$1=7,$B$5<13,$AA$2<=0.9,$J$2<=0.986,$AA7>=($AA$4*0.3),$X$1<=2,$AA$1<0.03,$AA$4>=0.001,$Y7="11"),"YES",
    IF(AND($AA$2<=0.79,$U$2>=1,$B$5<13,$J$2<=0.986,$AA$2<=0.9,$AA$1<0.03,$AA$4>=0.001,$AA7>=($AA$4*0.3),$X$4<=1,$Y7="11"),"YES",
    IF(AND(OR((($X$2+X$3)=3),$AA$2<=0.79),$U$2>=1,$J$2<=0.986,$AA$2<=0.9,$AA$2<=0.79,$AA$1<0.03,$AA$4>=0.001,$AA7>=($AA$4*0.3),$X$4<=2,$Y7="11"),"YES",
    IF(AND($U$2>=1,$J$2<=0.986,$AA$2<=0.79,$AA7>=($AA$4*0.3),$X$4<=1,$Y7="11"),"YES",

    IF(AND($AA$2<=0.79,$J$2<=0.986,$U$2>=1,$U$1=9,$K$4="WET",$B$5>=13,$AA$2<=0.9,$AA$3<=0.003,$AA$1<0.03,$AA$4>=0.001,$Y7="YES1"),"YES",
    IF(AND($AA$2<=0.79,$J$2<=0.986,$U$2>=1,$U$1=9,$K$4="DRY",$B$5>=13,$AA$2<=0.9,$AA$1<0.03,$AA$4>=0.001,$Y7="YES1"),"YES",
    IF(AND($AA$2<=0.79,$J$2<=0.986,$U$2>=1,$U$1=7,$B$5<13,$AA$4>$AA$1,$AA$2<=0.9,$AA7>=($AA$4*0.3),$X$1<=2,$AA$1<0.03,$AA$4>=0.001,$Y7="YES1"),"YES",
    IF(AND($AA$2<=0.79,$J$2<=0.986,$U$2>=1,$AA$2<=0.9,$AA$1<0.03,$AA$4>=0.001,$AA$4>$AA$1,$AA7>=($AA$4*0.3),$X$4<=1,$Y7="YES1"),"YES",
    IF(AND(OR((($X$2+X$3)=3),$AA$2<=0.79),$J$2<=0.986,$U$2>=1,$AA$2<=0.9,$AA$4>$AA$1,$AA$2<=0.79,$AA$1<0.03,$AA$4>=0.001,$AA7>=($AA$4*0.3),$X$4<=2,$Y7="YES1"),"YES",
    IF(AND($U$2>=1,$AA$2<=0.79,$B$5<13,$J$2<=0.986,$X$4=1,$AA7>=($AA$4*0.2),$Y7="YES1"),"YES",
    IF(AND($U$2>=1,$AA$2<=0.79,$J$2<=0.986,$AA7>=($AA$4*0.01),$AA$4>$AA$1,$B$5<13,$Y7="YES1"),"YES",
    IF(AND($U$2>=1,$AA$2<=0.9,$J$2<=0.986,$AA7>=($AA$4*0.51),$AA$4<$AA$1,$B$5<13,$Y7="YES1"),"YES",
    " "))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
    Last edited by 1ajdelacruz; 05-26-2017 at 06:47 AM. Reason: need more info

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

    Re: IF function has more than 64 levels of nesting

    1ajdelacruz,
    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Ben Van Johnson

  16. #16
    Registered User
    Join Date
    05-26-2017
    Location
    sydney
    MS-Off Ver
    2103
    Posts
    2

    Re: IF function has more than 64 levels of nesting

    Quote Originally Posted by pdalvara View Post
    Thanks again for all your help! I used what you showed me in conjunction with a few youtube videos and voila!!! My first array! Thanks again for all your help and encouragement!!!!
    Hi can I be sold bold to ask how you solved the problem? Can I see the spreadsheet update?

    Many thanks for putting forward your excel problem

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

    Re: IF function has more than 64 levels of nesting

    1ajdelacruz,
    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.


    Rule #12: Don't quote whole posts -- it's just clutter. If you are responding to a post out of sequence, limit quoted content to a few relevant lines that makes clear to whom and what you are responding

    For normal conversational replies, try using the QUICK REPLY box below.

  18. #18
    Registered User
    Join Date
    09-27-2017
    Location
    Indonesia
    MS-Off Ver
    2007
    Posts
    9

    Re: IF function has more than 64 levels of nesting

    hello newbie here.
    and how to use IF for PLUS? like this

    Captures.PNG
    =IF(C7="RNI UD",F7+30,IF(C7="HIDUP BARU",F7+30,IF(C7="ZUBIR UD",F7+30,IF(C7="TAMAN SARI BARU",F7+30,IF(C7="SUMBER REJEKI",F7+30,IF(C7="USAHA SAKTI",F7+30,IF(C7="MUTIARA JAYA",F7+30,IF(C7="HIDUP BARU 2",F7+30,IF(C7="PUTRO SAKTI",F7+30,IF(C7="ACR",F7+30,IF(C7="ILHAM",F7+30,IF(C7="SEJAHTERA GALERY",F7+30,IF(C7="NOUVAL",F7+30,IF(C7="AYAH GEUBRINA",F7+30,IF(C7="ARIZKY JAYA",F7+30,IF(C7="RAHMAD ILAHI",F7+30,IF(C7="SEJAHTERA FLORIS",F7+30,IF(C7="SUMBER AKA",F7+30,IF(C7="MBAK MOEL",F7+30,IF(C7="KIOS SYUKUR LAMTEMEN",F7+30,IF(C7="ZAKIR DARUSSALAM (WARKOP)",F7+30,IF(C7="MHD",F7+30,IF(C7="YSF TOKO",F7+30,IF(C7="SUMBER BARU",F7+30,IF(C7="ANEKA RAGAM",F7+30,IF(C7="ABADI JAYA BLANG BINTANG",F7+30,IF(C7="KUTA MULIA",F7+30,IF(C7="FAIZAH",F7+30,IF(C7="KS UMMI",F7+30,IF(C7="SEJAHTERA UTAMA",F7+30,IF(C7="LENTERA ABADI",F7+30,IF(C7="ARAFAH JAYA",F7+30,IF(C7="KAK ROSI",F7+30,IF(C7="TOKO ANOLA",F7+30,IF(C7="SUBUR JAYA",F7+30,IF(C7="ADEK ABANG",F7+30,IF(C7="ADI MARKET",F7+30,IF(C7="MINI MARKET ADEK ABANG",F7+30,IF(C7="BINA SEHAT APOTEK",F7+30,IF(C7="USAHA MANDIRI",F7+30,IF(C7="PRODATA FOTO COPY",F7+30,IF(C7="FIRMAN FOTO COPY",F7+30,IF(C7="YASIR MANDIRI",F7+30,IF(C7="TOSERBA AJI",F7+30,IF(C7="ILAH DAYA LAMNO",F7+30,IF(C7="BAHAGIA BARU",F7+30,IF(C7="RAMA JAYA",F7+30,IF(C7="GELORA",F7+30,IF(C7="ZEA BARONA",F7+30,IF(C7="SAMA-SAMA",F7+30,IF(C7="JASA BARU",F7+30,IF(C7="RAHMAT YH UD",F7+30,IF(C7="HARKAT JAYA",F7+30,IF(C7="WONG SOLO",F7+30,IF(C7="RAMLI",F7+30,IF(C7="RIZKY",F7+30,IF(C7="PULAU MAKMUR",F7+30,IF(C7="MULYA JAYA",F7+30,IF(C7="RUDA",F7+30,IF(C7="FANTASI COLECTIONS",F7+30,IF(C7="FZ LUENGBATA",F7+30,IF(C7="NAWI UD",F7+30,IF(C7="ALENTA (ALEX)",F7+30,IF(C7="JASA AYAH POMA",F7+30,IF(C7="RAHMAD YH UD",F7+30,IF(C7="PELANGI JAYA BARU",F7+30,IF(C7="ANANDA SWALAYAN",F7+30,IF(C7="YUSDA SAKTI",F7+30,IF(C7="MULYA JAYA",F7+30,IF(C7="RAJIN",F7+30,IF(C7="MUARA SABANG",F7+30,IF(C7="KUTA MULIA",F7+30,IF(C7="BERKAT KAWAN",F7+30,IF(C7="EVERLAND",F7+30,IF(C7="NURI FOTOCOPY",F7+30,IF(C7="ZUBIR",F7+30,IF(C7="SUBUR JAYA MOBIL",F7+30,IF(C7="PUSKOPAD",F7+30,IF(C7="EKA MULIA",F7+30,IF(C7="INDI FOTO COPY",F7+30,IF(C7="USAHA MAJU JAYA",F7+30,IF(C7="USAHA RAJIN",F7+30,IF(C7="FAJAR ASMARA",F7+30,IF(C7="INDOMER FOTOCOPY",F7+30,IF(C7="SUMBER HIDUP",F7+30,IF(C7="ANANDA SAKTI",F7+30,IF(C7="HAWAI UD",F7+30,IF(C7="RAHMAD",F7+30,IF(C7="FALAH JAYA",F7+30,IF(C7="AZRAH",F7+30,IF(C7="AMIR UD",F7+30,IF(C7="ARAFAH",F7+30,IF(C7="TIGA PUTRA SEJATI",F7+30,IF(C7="SINAR MAJU",F7+30,IF(C7="ABADI SEMBAKO",F7+30,IF(C7="HARI HARI",F7+30,IF(C7="KARONA UD",F7+30,IF(C7="SYUKUR NIKMAT",F7+300,F7+14
    Attached Images Attached Images
    Last edited by Rizarusty; 09-27-2017 at 12:35 AM.

  19. #19
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: IF function has more than 64 levels of nesting

    Maybe read post#17 first ? (above yours)

+ 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. IF statement nesting levels
    By rod642 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-23-2014, 10:53 AM
  2. [SOLVED] levels of nesting help
    By jamiemu in forum Excel General
    Replies: 4
    Last Post: 05-15-2012, 06:44 PM
  3. levels of nesting
    By buddydubbo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-02-2011, 01:29 AM
  4. Levels of Nesting more than 7
    By Bigwilliewilcox in forum Excel General
    Replies: 5
    Last Post: 12-04-2010, 05:14 AM
  5. too many levels of nesting
    By gss in forum Excel General
    Replies: 7
    Last Post: 04-02-2009, 09:01 PM

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