+ Reply to Thread
Results 1 to 6 of 6

Ignore if NA in index/match

  1. #1
    Registered User
    Join Date
    12-23-2010
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    66

    Ignore if NA in index/match

    Hello,

    I'm trying to add up a bunch of data using a series of index/match functions. For example, =(index/match + index/match + index/match, etc...) I'm using the match function to give me the column number. However, it's possible that there may not be a match, and thus the index/match function will return a value of #N/A.

    Is there a way to make it so that if it returns a value of #N/A, either ignore it or give it a value of 0. I know I can use the ISNA function, but that would require that I create an If function for each index/match term.

    I was wondering if there was a quicker way to accomplish this.

    Thanks!

  2. #2
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Ignore if NA in index/match

    You can use IFERROR function. Enclose you INDEX function into IFERROR clause in all your index formulas as
    Please Login or Register  to view this content.
    If my assistance has helped, there is a reputation icon * on the left hand corner below the post - you can show your appreciation to the user who has helped in resolving your requirement.

    If your requirement has been solved please mark your thread as Solved.
    In the menu bar above the very first post, select Thread Tools, then select "Mark this thread as Solved".

    Kindly use [FORMULA] or [CODE] tags when posting your code.

    Regards,
    Sarang

  3. #3
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Ignore if NA in index/match

    Can you post your full formula?

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Ignore if NA in index/match

    For each INDEX/MATCH element

    NOT(ISNA(MATCH(A1,B1:B10,0)))*MATCH(A1,B1:B10,0)

    returns the value if found or 0
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  5. #5
    Registered User
    Join Date
    12-23-2010
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    66

    Re: Ignore if NA in index/match

    Quote Originally Posted by Saarang84 View Post
    You can use IFERROR function. Enclose you INDEX function into IFERROR clause in all your index formulas as
    Please Login or Register  to view this content.
    Thanks. That's probably the most concise way since each index/match term will be kind of lengthy too. I just don't want my formula to get ridiculously large with =If(isna(index/match),0,index/match)
    Last edited by anon; 06-16-2014 at 09:31 AM.

  6. #6
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Ignore if NA in index/match

    I would still recommend posting your full formula - Maybe you can use an array formula to shorten the whole thing..

+ 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. How to ignore blanks in an Index/Match Array Formula
    By michaelcarrera in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-06-2015, 08:50 PM
  2. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  3. [SOLVED] how to ignore text in a sumproduct, index, and match formula.
    By sbham in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-12-2013, 04:55 PM
  4. [SOLVED] An INDEX MATCH formula has blank cell - need to ignore or delete
    By rls231 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-26-2013, 11:13 PM
  5. Replies: 4
    Last Post: 07-18-2012, 02: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