+ Reply to Thread
Results 1 to 9 of 9

#N/A on index match multiple criteria

  1. #1
    Registered User
    Join Date
    06-06-2014
    Location
    Hong Kong
    MS-Off Ver
    2010
    Posts
    91

    #N/A on index match multiple criteria

    Hi guys, having issue with what I'm confident is a correctly entered formula and valid data but it still returns N/A in the field.

    Please Login or Register  to view this content.
    1. Yes, above formula is currently only using one criteria but purely as a test and still returns nothing even though it will correctly return a value when using a standard index match (also no ' at beginning of sheet name I know, I deleted actual sheet name for easier reading).

    2. Yes it is entered using the shift + ctrl + enter method.

    3. All values are text values apart from the values in column N but that shouldn't be an issue since that's the returned value and not the evaluated one.

    sheet 2 Column C is using 2 character codes e.g. 6E, KA, CX, 5J

    My final index match was suppose to look like this

    Please Login or Register  to view this content.
    Any help would be appreciated if solving the issue of why it returns #N/A, thanks.

  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,933

    Re: #N/A on index match multiple criteria

    Hard to say what the problem might be without seeing some sample data.

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    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 Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: #N/A on index match multiple criteria

    First MATCH is incorrect, should be: MATCH(TRUE,...,0) or MATCH(1,--(B2=...),0)
    Second MATCH looks correct. It is easier if you can post a dummy sample.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Quang PT

  4. #4
    Registered User
    Join Date
    06-06-2014
    Location
    Hong Kong
    MS-Off Ver
    2010
    Posts
    91

    Re: #N/A on index match multiple criteria

    Thanks bebo, changed the first match to work by changing to TRUE instead of 1, though unfortunately it's the second one I'll need to work properly.

    I've attached dummy data to the post.

    Thanks again.
    Attached Files Attached Files

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: #N/A on index match multiple criteria

    There is no formula in the attachment.

    Please explain the numbers highlighted in yellow.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

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

    Re: #N/A on index match multiple criteria

    I tested with 6D in B2, "AAA111" in column F and "XYZ1111" in column G with 2 option: INDEX(Array formula with Ctrl-shift-enter: returns 1st instance if there are more than 1 case) and LOOKUP( normal formula return last instance if there are more than 1 case)
    =INDEX($N$2:$N$23,MATCH(1,($C$2:$C$23=$B$2)*($F$2:$F$23="AAA111")*($G$2:$G$23="XYZ1111"),0))
    =LOOKUP(2,1/($C$2:$C$23=$B$2)/($F$2:$F$23="AAA111")/($G$2:$G$23="XYZ1111"),$N$2:$N$23)
    It seems OK. If it does not work, try to put your formula in spreadsheet.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    06-06-2014
    Location
    Hong Kong
    MS-Off Ver
    2010
    Posts
    91

    Re: #N/A on index match multiple criteria

    Sorry the yellow numbers mean nothing and was just left over from previous sheet.
    Can't supply formula for this example as when I enter it in sheet1, it works.... >_>

    My actual formula is spread over two workbooks.
    Let me try and recreate.

  8. #8
    Registered User
    Join Date
    06-06-2014
    Location
    Hong Kong
    MS-Off Ver
    2010
    Posts
    91

    Re: #N/A on index match multiple criteria

    Ok I've got it working after double checking my code to yours and had some syntax errors that I didn't notice in my original spreadsheet... -.-


    Thanks for the assistance.
    Last edited by Gunblade; 06-19-2018 at 12:22 AM.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: #N/A on index match multiple criteria

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. [SOLVED] Index Match with multiple criteria and date criteria
    By snolem75 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-28-2018, 03:51 PM
  2. Replies: 16
    Last Post: 01-05-2018, 11:04 PM
  3. Need help in Index, Match usage to match multiple criteria in sum function
    By Summer0830 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2017, 02:47 AM
  4. Index/Match to Match entries on multiple criteria
    By manning457 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-06-2015, 02:32 PM
  5. [SOLVED] INDEX/MATCH with Multiple MATCH criteria ?
    By KomicJ in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-17-2015, 09:04 AM
  6. [SOLVED] Index Match with Multiple Criteria Using Same Criteria Column
    By rominjn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-05-2015, 11:34 AM
  7. Replies: 2
    Last Post: 09-27-2014, 04: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