+ Reply to Thread
Results 1 to 6 of 6

Nested level limit exceeded with IF statements

  1. #1
    Registered User
    Join Date
    08-25-2011
    Location
    Wisconsin, USA
    MS-Off Ver
    Excel 2003
    Posts
    11

    Nested level limit exceeded with IF statements

    This formula works:
    Please Login or Register  to view this content.
    This formula doesn't work:
    Please Login or Register  to view this content.
    ...because of error: "The specified formula cannot be entered because it uses more levels of nesting than are allowed in the current file format."

    I need to continue the above logic all the way down to "ZZ"
    Please Login or Register  to view this content.
    Any ideas?

    Thanks!

    UPDATE:
    Sample data excel file uploaded a couple posts below this one: http://www.excelforum.com/2633576-post4.html
    Last edited by SimonDorfman; 11-02-2011 at 03:59 PM.

  2. #2
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: Nested level limit exceeded with IF statements

    Please read this article. It will help you immensely.

    http://www.excelhero.com/blog/2010/01/i-heart-if.html

    I imagine a lookup function will work here.

    In cell B62, enter this formula then copy down to B113:
    =A62<>A63

    Then fill C62:C113 with your results (e.g. A,B,C,...XX,YY,ZZ)

    Then use this formula anywhere on the sheet to return the appropriate value:
    =VLOOKUP(TRUE,B62:C113,2,FALSE)

    See the attached.
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Nested level limit exceeded with IF statements

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

  4. #4
    Registered User
    Join Date
    08-25-2011
    Location
    Wisconsin, USA
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Nested level limit exceeded with IF statements

    Thank you both for your help. I've read the article linked above ( http://www.excelhero.com/blog/2010/01/i-heart-if.html ) and I'm still scratching my head trying to figure out how to make it work for my situation. I've created a sample data file and attached it to this post. I hope this will help you guys get a more clear picture of the problem at hand. Thanks!
    Attached Files Attached Files

  5. #5
    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: Nested level limit exceeded with IF statements

    I expect this could be simplified, but in B2 and copy down,

    =SUBSTITUTE(IF(A2<>A1, "A", ADDRESS(1, COLUMN(INDIRECT(B1 & 1)) + 1, 4)), "1", "")
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Registered User
    Join Date
    08-25-2011
    Location
    Wisconsin, USA
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Nested level limit exceeded with IF statements

    Quote Originally Posted by shg View Post
    I expect this could be simplified, but in B2 and copy down,

    =SUBSTITUTE(IF(A2<>A1, "A", ADDRESS(1, COLUMN(INDIRECT(B1 & 1)) + 1, 4)), "1", "")
    Wow, it's like magic. I'll have to read up on how INDIRECT, COLUMN, ADDRESS & SUBSTITUTE work. I want to understand how this works.

    Unfortunately, it doesn't quite work. When it gets to Z, instead of continuing with AA, BB, CC, it continues with AA, AB, AC, etc.

    Is there anyway to change that?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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