+ Reply to Thread
Results 1 to 11 of 11

ISNA with INDEX(MATCH) function not working

  1. #1
    Registered User
    Join Date
    02-22-2013
    Location
    Lichfield, UK
    MS-Off Ver
    Excel 2003
    Posts
    12

    Question ISNA with INDEX(MATCH) function not working

    Hello,

    I'm working on a timetable spreadsheet and having trouble hiding the #NA reports.
    I have 2 WS's - Sheet 1 holds the data, and sheet 2 presents a summary of staffs details (as in a school timetable). I have attached 2 pics if they help

    The presnt formula works fine, but including the ISNA creates problems!
    The formula is:
    =INDEX('TT 2012-13'!D2:D335,MATCH(1,('TT 2012-13'!A2:A335=B4)*('TT 2012-13'!B2:B335="Tues")*('TT 2012-13'!C2:C335="AM"),0))

    I tried for ages to use VLOOKUP but failed. If there are other solutions I'm happy to adapt

    Many thanks

    G






    data-sheet.jpgsummary-sheet.JPG

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: ISNA with INDEX(MATCH) function not working

    Try this

    Please Login or Register  to view this content.

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: ISNA with INDEX(MATCH) function not working

    Try this...

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: ISNA with INDEX(MATCH) function not working

    You would use ISNA like this:

    =IF(ISNA(some_formula),"error_message",some_other_formula)

    so, applying this to your situation, you would need something like this:

    =IF(ISNA(MATCH(1,('TT 2012-13'!A2:A335=B4)*('TT 2012-13'!B2:B335="Tues")*('TT 2012-13'!C2:C335="AM"),0)),"",INDEX('TT 2012-13'!D2:D335,MATCH(1,('TT 2012-13'!A2:A335=B4)*('TT 2012-13'!B2:B335="Tues")*('TT 2012-13'!C2:C335="AM"),0)))

    which will give you blanks instead of #N/A.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    02-22-2013
    Location
    Lichfield, UK
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: ISNA with INDEX(MATCH) function not working

    Wow, stunningly fast response.
    Unfortunately the IFERROR bit generates a #name? error.
    Thanks anyhow

    G


    Quote Originally Posted by kvsrinivasamurthy View Post
    Try this

    Please Login or Register  to view this content.

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: ISNA with INDEX(MATCH) function not working

    IFERROR is not available in XL2003.

    Pete

  7. #7
    Registered User
    Join Date
    02-22-2013
    Location
    Lichfield, UK
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: ISNA with INDEX(MATCH) function not working

    Quote Originally Posted by :) Sixthsense :) View Post
    Try this...

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Great response - thankyou, it worked! I'm a very happy chap

  8. #8
    Registered User
    Join Date
    02-22-2013
    Location
    Lichfield, UK
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: ISNA with INDEX(MATCH) function not working

    Thank you to everybody, for helping me sort this so quickly.

  9. #9
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: ISNA with INDEX(MATCH) function not working

    Glad it helps you and thanks for the feedback

  10. #10
    Registered User
    Join Date
    02-22-2013
    Location
    Lichfield, UK
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: ISNA with INDEX(MATCH) function not working

    Hi Sixth sense,

    If you're still there......
    The INDEX(MATCH) lookup is only giving the 1st result it finds that matches the criteria. Can I modify the existing code to continue looking for other matches or do I need to look for another solution. What I really want to happen is to repeat the formula in the next cell below taking into account the matches that have already been made. How can I get the lower cell formula to acknowledge that 1 match has been found already......? A look at the earlier jpegs might help.
    Thanks a million
    G

  11. #11
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: ISNA with INDEX(MATCH) function not working

    Please start a new thread

+ 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