+ Reply to Thread
Results 1 to 6 of 6

Too Many "Nests"

  1. #1
    Forum Contributor
    Join Date
    11-25-2012
    Location
    Edmonton, Alberta
    MS-Off Ver
    2010
    Posts
    146

    Too Many "Nests"

    Hi,
    I have a formula that exceeds the nesting limit on excel. I there any way I can re-write this formula to shorten the nesting amount? I am nested to 84 currently and limit is 64 I believe. Here is a partial sample of what the formula looks like.

    =IF('Start Page'!$J20=Costs!$BC$1,Costs!$BB$1,IF('Start Page'!$J20=Costs!$BC$2,Costs!$BB$2,
    IF('Start Page'!$J20=Costs!$BC$3,Costs!$BB$3,IF('Start Page'!$J20=Costs!$BC$4,Costs!$BB$4,
    IF('Start Page'!$J20=Costs!$BC$5,Costs!$BB$5,IF('Start Page'!$J20=Costs!$BC$6,Costs!$BB$6,
    ""))))))))))))))))))))))))))))) etc to 84 "nests"

    Any help would be appreciated,
    Thanks

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Too Many "Nests"

    problaby it can be done with index / match.

    to be sure you have to add an excel file, without confidentional information.

    Maybe you can try this one:

    =index(Costs!$BB$1:$BC$84,match('Start Page'!$J20,Costs!$BC$1:$BC$84,0),-1)
    Last edited by oeldere; 02-27-2013 at 06:53 PM.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Contributor
    Join Date
    11-25-2012
    Location
    Edmonton, Alberta
    MS-Off Ver
    2010
    Posts
    146

    Re: Too Many "Nests"

    Thanks, I will play around with that and let you know how it works out

  4. #4
    Forum Contributor
    Join Date
    11-25-2012
    Location
    Edmonton, Alberta
    MS-Off Ver
    2010
    Posts
    146

    Re: Too Many "Nests"

    Thanks worked great, just had to tweak a bit and came up with the following to avoid any #N/A errors.
    Thanks for your help!

    =IF(ISERROR(INDEX($BC$1:$BC$84,MATCH('Start Page'!$J20,Costs!$BC$1:$BC$84,0))),"",INDEX($BC$1:$BC$84,MATCH('Start Page'!$J20,Costs!$BC$1:$BC$84,0)))

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Too Many "Nests"

    Since you use excel 2007 it can be done with

    =iferror(INDEX($BC$1:$BC$84,MATCH('Start Page'!$J20,Costs!$BC$1:$BC$84,0),"")

    Just to be curious.
    Your formula works?

    You don't add a columnreference in it, so i'm wondering if it will work for you.

    Please reply

  6. #6
    Forum Contributor
    Join Date
    11-25-2012
    Location
    Edmonton, Alberta
    MS-Off Ver
    2010
    Posts
    146

    Re: Too Many "Nests"

    Here it is again, yes it works great.

    =IF(ISERROR(INDEX($BC$1:$BC$84,MATCH('Start Page'!$J20,Costs!$BC$1:$BC$84,0))),"",INDEX($BC$1:$BC$84,MATCH('Start Page'!$J20,Costs!$BC$1:$BC$84,0)))

+ 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