+ Reply to Thread
Results 1 to 4 of 4

3 Nested IF INDEX MATCH

  1. #1
    Forum Contributor
    Join Date
    05-20-2008
    Posts
    162

    3 Nested IF INDEX MATCH

    Hi All,

    I have the following formula:

    =IF(L4=32,INDEX('Test 1'!B9:H258,MATCH(Test 2!M4,'Test 1'!A9:A258,0),MATCH(Test 2!N4,'Test 1'!B8:H8)+ISNA(MATCH(Test 2!N4,'Test 1'!B8:H8,0))))
    ,IF(L4=64,INDEX('Test 1'!J9:P258,MATCH(Test 2!M4,'Test 1'!I9:I258,0),MATCH(Test 2!N4,'Test 1'!J8:P8)+ISNA(MATCH(Test 2!N4,'Test 1'!J8:P8,0))))
    ,IF(L4=100,INDEX('Test 1'!AA9:AH56,MATCH(Test 2!M4,'Test 1'!Z9:Z56,0),MATCH(Test 2!N4,'Test 1'!AA8:AH8)+ISNA(MATCH(Test 2!N4,'Test 1'!AA8:AH8,0))))


    I have split the formula up to show the 3 If statements, if i miss out the 3rd statement i get the correct value for "32" or "64".
    When i add the 3rd statement and input "100" i get the #VALUE! error.

    I cant work out why as it all looks ok to me....

    Please Help...

    Craig

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: 3 Nested IF INDEX MATCH

    Did you have your sample workbook, maybe better try to upload it at the forum to review the problem....

    Cheers

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: 3 Nested IF INDEX MATCH

    You were closing your IF statements at the end of every TRUE argument. Try this version

    =IF(L4=32,INDEX('Test 1'!B9:H258,MATCH(Test 2!M4,'Test 1'!A9:A258,0), MATCH(Test 2!N4,'Test 1'!B8:H8)+ISNA(MATCH(Test 2!N4,'Test 1'!B8:H8,0))) , IF(L4=64,INDEX('Test 1'!J9:P258, MATCH(Test 2!M4,'Test 1'!I9:I258,0), MATCH(Test 2!N4,'Test 1'!J8:P8)+ ISNA(MATCH(Test 2!N4,'Test 1'!J8:P8,0))) , IF(L4=100,INDEX('Test 1'!AA9:AH56, MATCH(Test 2!M4,'Test 1'!Z9:Z56,0), MATCH(Test 2!N4,'Test 1'!AA8:AH8)+ ISNA(MATCH(Test 2!N4,'Test 1'!AA8:AH8,0))))))
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Contributor
    Join Date
    05-20-2008
    Posts
    162

    Re: 3 Nested IF INDEX MATCH

    Perfect.

    Thankyou Very Much.

+ 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 with nested Index Match formula
    By LilSisKin in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-09-2013, 06:10 PM
  2. [SOLVED] Nested Lookup or Index,Match or ??
    By rwabennett in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-27-2013, 10:42 AM
  3. Nested Index Match Error
    By cyclops755 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-13-2012, 01:26 AM
  4. 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
  5. Nested IF (index and match)
    By mikera in forum Excel General
    Replies: 2
    Last Post: 01-21-2010, 11:27 AM

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