+ Reply to Thread
Results 1 to 3 of 3

Nested IF Index Match formula reached limit. Suggestions?

  1. #1
    Registered User
    Join Date
    07-10-2009
    Location
    Omaha, NE
    MS-Off Ver
    Excel 2013
    Posts
    5

    Smile Nested IF Index Match formula reached limit. Suggestions?

    Hello, I am trying to accomplish a nested IF Index Match, and I hit the wall for number of nested allowed. I know somebody out there has to have a better way of doing this. If possible, I want to use a formula that does not need a reference table or use VBA code. What I'm looking to do here is on a quote form, reference an external price sheet document with multiple sheets for different categories of product. Each of these sheets has consecutive columns with different price levels. I'm sure if you look at the below formula, you'll see the pattern:

    =IF($H$35=1,...!D$1:D$65536,
    =IF($H$35=4,...!F$1:F$65536,
    =IF($H$35=7,...!H$1:H$65536,

    Below is the actual formula that works, but again I've nested too much and Excel won't allow this to continue (and probably for good reason). I need to continue the above pattern to include $H$35 cell reference to: 8 and !J$1:J$65536 then in addition 9 and !L$1:L$65536

    =IF($H$35=1,IFERROR(INDEX('F:\CUSTOMER PRICE SHEETS\PRICE LISTS\[PRICE LIST.xls]DVR SYSTEMS & COMPONENTS'!D$1:D$65536,MATCH(B14,'F:\CUSTOMER PRICE SHEETS\PRICE LISTS\[PRICE LIST.xls]DVR SYSTEMS & COMPONENTS'!A$1:A$65536,0)),IFERROR(INDEX('F:\CUSTOMER PRICE SHEETS\PRICE LISTS\[PRICE LIST.xls]WI-FI DVR SYSTEMS'!D$1:D$65536,MATCH(B14,'F:\CUSTOMER PRICE SHEETS\PRICE LISTS\[PRICE LIST.xls]WI-FI DVR SYSTEMS'!A$1:A$65536,0)),"")),
    IF($H$35=4,IFERROR(INDEX('F:\CUSTOMER PRICE SHEETS\PRICE LISTS\[PRICE LIST.xls]DVR SYSTEMS & COMPONENTS'!F$1:F$65536,MATCH(B14,'F:\CUSTOMER PRICE SHEETS\PRICE LISTS\[PRICE LIST.xls]DVR SYSTEMS & COMPONENTS'!A$1:A$65536,0)),IFERROR(INDEX('F:\CUSTOMER PRICE SHEETS\PRICE LISTS\[PRICE LIST.xls]WI-FI DVR SYSTEMS'!F$1:F$65536,MATCH(B14,'F:\CUSTOMER PRICE SHEETS\PRICE LISTS\[PRICE LIST.xls]WI-FI DVR SYSTEMS'!A$1:A$65536,0)),"")),
    IF($H$35=7,IFERROR(INDEX('F:\CUSTOMER PRICE SHEETS\PRICE LISTS\[PRICE LIST.xls]DVR SYSTEMS & COMPONENTS'!H$1:H$65536,MATCH(B14,'F:\CUSTOMER PRICE SHEETS\PRICE LISTS\[PRICE LIST.xls]DVR SYSTEMS & COMPONENTS'!A$1:A$65536,0)),IFERROR(INDEX('F:\CUSTOMER PRICE SHEETS\PRICE LISTS\[PRICE LIST.xls]WI-FI DVR SYSTEMS'!H$1:H$65536,MATCH(B14,'F:\CUSTOMER PRICE SHEETS\PRICE LISTS\[PRICE LIST.xls]WI-FI DVR SYSTEMS'!A$1:A$65536,0)),"")))))

    I tried to figure out a dynamic shorter formula to reference a cell on the main quote form to change the letter in this part of the formula: !D$1:D$65536
    However I could not make it happen.

    I would be grateful for expert assistance, because through all of my web searching and experimenting, I cannot figure this out. Thanks in advance!

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,659

    Re: Nested IF Index Match formula reached limit. Suggestions?

    Follow this pattern:
    =IF($H$35=1,...!D$1:D$65536,
    =IF($H$35=4,...!F$1:F$65536,
    =IF($H$35=7,...!H$1:H$65536,
    next set should be H35=10. Why it is 8:

    : 8 and !J$1:J$65536 then in addition 9 and !L$1:L$65536
    Quang PT

  3. #3
    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
    53,049

    Re: Nested IF Index Match formula reached limit. Suggestions?

    My 1st reaction to all of that is...can this not be done in 1 file? That will make the formula a *bit* easier to read, and bring in the possibility of using INDIRECT
    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

+ 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. HELP on INDEX(MATCH) or SUGGESTIONS
    By katu in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-31-2015, 04:04 PM
  2. [SOLVED] Have I reached nested if limit on only the 9th nest?
    By pongmeister in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-31-2015, 04:02 PM
  3. [SOLVED] Help Requested with Nested Small Function Inside Index/Match Formula
    By trandle in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-26-2015, 10:07 AM
  4. [SOLVED] Reached Nested function limit
    By sarah321 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-05-2014, 10:00 AM
  5. Help with nested Index Match formula
    By LilSisKin in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-09-2013, 06:10 PM
  6. Nested Match(index()) vs. Match() array formula.
    By GeneralDisarray in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-14-2011, 07:57 AM
  7. Dependent Percentile Formula in Table with Nested Lookup or Index Match?
    By chogan in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-11-2010, 06:34 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