+ Reply to Thread
Results 1 to 7 of 7

Stuck on an isna match index problem

  1. #1
    Registered User
    Join Date
    09-02-2015
    Location
    Southeast, USA
    MS-Off Ver
    2010
    Posts
    4

    Stuck on an isna match index problem

    Okay, index, match, and isna are all new to me, but I'm familiar with the most common functions, and have done stuff like nested if functions, but not much more complex than that. I can usually look at a program, or function and figure out how to get what I want, but I'm stuck on this one, as I've not been able to find any equivalent functions to borrow from. I'm able to match and sort two columns satisfactorily

    =IF(ISNA(MATCH(A1,C:C,0)),"",INDEX(C:C,MATCH(A1,C:C,0)))

    What I need to do is this, compare two tables and output the matches of two individual columns:

    A B C D L M N
    first last data data first last data

    I need to match the first and last names (A and B) and (L and M) and sort the data from L, M, and N, so that the order matches by name in A, B, C, and D. I've tried to figure this out myself, but haven't had any luck.

    Any hints or tips are appreciated in advance.

    Thanks,
    ep

  2. #2
    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
    52,946

    Re: Stuck on an isna match index problem

    Hi, welcome to the forum

    1st, you dont really need to use ISNA, 2010 has a nifty formula for testing for errors...
    =IFerror(INDEX(C:C,MATCH(A1,C:C,0)),"")

    2nd, it would probably be easier to assist if you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    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

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,552

    Re: Stuck on an isna match index problem

    If you MATCH A1 against column C, and then INDEX column C, you'll just get whatever is in A1 or a blank (null) returned.

    You might as well use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    09-02-2015
    Location
    Southeast, USA
    MS-Off Ver
    2010
    Posts
    4

    Re: Stuck on an isna match index problem

    I need to compare the first two tables, matching first and last name. Output should be third table, which is data from Table 2 sorted by match.



    Tester 9-2-2015.xlsx

  5. #5
    Registered User
    Join Date
    09-02-2015
    Location
    Southeast, USA
    MS-Off Ver
    2010
    Posts
    4

    Re: Stuck on an isna match index problem

    I've tried both suggestions. I think my original function above is incorrect as a starting point.

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

    Re: Stuck on an isna match index problem

    To get exactly the table you have in your workbook in N:Q (I put mine in S:V), I used ARRAYED formulas and two different ones (one for matching names and one for names only appearing in table2

    In N2 copied across and down, this ARRAYED formula
    =IFERROR(INDEX(H$2:H$32, MATCH($A2&$B2, $H$2:$H$32&$I$2:$I$32,0)),"")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    In N31 copied across and down, this Arrayed Formula
    =INDEX(H$2:H$32, SMALL(IF(ISERROR(MATCH($H$2:$H$32&$I$2:$I$32, $A$2:$A$29&$B$2:$B$29,0)), ROW($H$2:$H$32)-ROW($H$2)+1),ROWS($A$1:$A1)))

    Is that what you want?
    Attached Files Attached Files
    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

  7. #7
    Registered User
    Join Date
    09-02-2015
    Location
    Southeast, USA
    MS-Off Ver
    2010
    Posts
    4

    Re: Stuck on an isna match index problem

    ^ This works perfectly! Thanks so much for the help!

+ 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. Isna/index/match
    By MBCMDR in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-15-2015, 01:53 PM
  2. [SOLVED] Stuck on Match function with #N/A; attempting to reverse Index/Match
    By Cappytano in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-10-2014, 06:39 PM
  3. if)isna)index)match formula help
    By nguyenal07 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-11-2014, 12:53 AM
  4. IF(ISNA(INDEX,Match)
    By prince_xavier2001 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 08-22-2013, 08:23 PM
  5. ISNA INDEX Match Formula help
    By tcandls in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 05-01-2012, 02:54 PM
  6. IF(ISNA) and Index Match
    By JO505 in forum Excel General
    Replies: 2
    Last Post: 11-30-2011, 06:13 PM
  7. IF ISNA and INDEX MATCH together
    By certain_death in forum Excel General
    Replies: 5
    Last Post: 02-11-2009, 10:38 AM

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