+ Reply to Thread
Results 1 to 5 of 5

Index Match function returns #NA

  1. #1
    Registered User
    Join Date
    03-12-2017
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    25

    Index Match function returns #NA

    Hi.

    Please look at the attached sample.

    I don't know why the cell returns as #NA

    Any ideas?

    Cheers.
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Index Match function returns #NA

    Edit: Removed.

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: Index Match function returns #NA

    Looks like standard, run of the mill, floating point error. If you are unfamiliar with floating point errors, I have gathered several links here: https://www.excelforum.com/groups/ma...nd-errors.html You can see this by entering =(I2-A3) into any cell (and formatting as scientific, if needed).

    I'm not sure what strategy you would like to use. The usual first suggestion is to use the ROUND() function to force the result to a suitable precision. I don't know what your expected precision is, but this might look like =...MATCH(ROUND(I2,6),... or nest the existing subtraction in I2 inside of a ROUND() function =ROUND(H2-G2,6). As described in the above discussions, there are other strategies as well. One way or another, the solution to this is to employ some strategy for dealing with floating point errors.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Index Match function returns #NA

    Going off of what MrShorty said, try this:

    =INDEX(B:B,MATCH(ROUND(I2,10),A:A,0))

  5. #5
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Index Match function returns #NA

    Quote Originally Posted by MrShorty View Post
    =...MATCH(ROUND(I2,6),... or [....] =ROUND(H2-G2,6).
    But it is prudent to round to the degree of accuracy that you expect, not an arbitrary number of decimal places.

    In the example Excel file, the numbers in column A have at most 2 decimal places. So use ROUND(...,2).

+ 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. Index/Match Function Returns '#VALUE!' Error
    By VirenS in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-17-2016, 05:36 AM
  2. [SOLVED] Index match that returns 0
    By Keldion in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-11-2016, 03:41 PM
  3. [SOLVED] Index+Match+Match doesnt returns right values
    By SwissExcel in forum Excel General
    Replies: 10
    Last Post: 07-21-2015, 08:39 AM
  4. [SOLVED] Index/Match returns #N/A result
    By pjkcpa in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-27-2014, 02:23 PM
  5. [SOLVED] INDEX MATCH function returns result #N/A
    By morrisondan in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 04-22-2013, 03:01 PM
  6. Excel 2007 : Index Match returns 0
    By Martin Chamberlin in forum Excel General
    Replies: 6
    Last Post: 10-27-2011, 09:49 PM
  7. Replies: 2
    Last Post: 03-16-2009, 01:09 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