+ Reply to Thread
Results 1 to 4 of 4

Need 0 Value Returned for NA# on Index Match Formula

  1. #1
    Registered User
    Join Date
    07-20-2014
    Location
    phoenix,az
    MS-Off Ver
    200
    Posts
    22

    Need 0 Value Returned for NA# on Index Match Formula

    I've looked at quite a few threads and haven't been able to find a working solution.

    I'm searching two sheets for a value, and on occasion the value will not be present so I am met with #N/A. I want to replace the #N/A with a 0.

    My formula is:

    =IF($C178="","",INDEX('1530T'!K:K,MATCH($C178,'1530T'!$B:$B,0)))

    If I try:

    =IFNA(($C178="","",INDEX('1530T'!K:K,MATCH($C178,'1530T'!$B:$B,0))),"0")

    It doesnt seem to work.

    Probably missing something very obvious here, any help is appreciated.

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

    Re: Need 0 Value Returned for NA# on Index Match Formula

    There is no IFNA, but IFERROR (For version 2007+):

    =IFERROR(INDEX('1530T'!K:K,MATCH($C178,'1530T'!$B:$B,0)),"")

    If 2003+

    =IF(ISERROR(INDEX('1530T'!K:K,MATCH($C178,'1530T'!$B:$B,0))),"",INDEX('1530T'!K:K,MATCH($C178,'1530T'!$B:$B,0)))
    Quang PT

  3. #3
    Registered User
    Join Date
    02-10-2012
    Location
    Duluth, MN
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Need 0 Value Returned for NA# on Index Match Formula

    I'm not totally sure if you're working with number results or letters, but you might try this:

    Start your code with this:

    "{=IF(ISBLANK(RESULT CELL),"",INDEX(...}"

    This will return "0" instead of "N/A".

    Hope this helps.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Need 0 Value Returned for NA# on Index Match Formula

    Quote Originally Posted by bebo021999 View Post
    There is no IFNA, but IFERROR (For version 2007+)
    There is an IFNA function in Excel 2013.

    It works like IFERROR except that it checks specifically for the #N/A error.

    IFNA(value,value_if_na)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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] Incorrect column number returned in INDEX, MATCH for nth instance
    By BuZZarD73 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-29-2014, 11:00 AM
  2. Index Match returning values when none should be returned
    By Khaos1208 in forum Excel General
    Replies: 6
    Last Post: 04-27-2014, 04:48 PM
  3. Replies: 4
    Last Post: 01-10-2014, 05:09 PM
  4. [SOLVED] Lookup & Index Match - Errors Returned
    By shudder in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-23-2013, 05:56 AM
  5. Replies: 10
    Last Post: 08-19-2013, 11:33 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