+ Reply to Thread
Results 1 to 5 of 5

Ignore N/A in INDEX MATCH sum

  1. #1
    Registered User
    Join Date
    01-17-2016
    Location
    England
    MS-Off Ver
    2013
    Posts
    23

    Ignore N/A in INDEX MATCH sum

    Hi,
    I have the following formula:

    =INDEX(Daily_Data!$E:$E,MATCH(C$2&$A$1,Daily_Data!$A:$A,0))+INDEX(Daily_Data!$E:$E,MATCH(C$2&$B$1,Daily_Data!$A:$A,0))+INDEX(Daily_Data!$E:$E,MATCH(C$2&$C$1,Daily_Data!$A:$A,0))

    Sometimes one of the criteria does not exist and therefore instead of returning the result for the other 2, it will return #N/A.

    How can I get around this? I could put IFNA then 0, however when ALL 3 don't exist I want to return "" blank.

    Thanks

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Ignore N/A in INDEX MATCH sum

    Will there be only 1 (or 0) match for each criteria in column A ?

    You could try

    =SUMPRODUCT(SUMIF(Daily_Data!$A:$A,C$2&$A$1:$C$1,Daily_Data!$E:$E))

    Then to return "" if the result is 0

    =IFERROR(1/(1/SUMPRODUCT(SUMIF(Daily_Data!$A:$A,C$2&$A$1:$C$1,Daily_Data!$E:$E))),"")

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Ignore N/A in INDEX MATCH sum

    Perhaps wrap each of the INDEX functions with IFERROR like=iferror( INDEX(Daily_Data!$E:$E,MATCH(C$2&$A$1,Daily_Data!$A:$A,0)),0)+IFERROR...

  4. #4
    Registered User
    Join Date
    01-17-2016
    Location
    England
    MS-Off Ver
    2013
    Posts
    23

    Re: Ignore N/A in INDEX MATCH sum

    Jonmo1, that is great, returning values where required and blank cell if there is an error
    =IFERROR(1/(1/SUMPRODUCT(SUMIF(Daily_Data!$A:$A,C$2&$A$1:$C$1,Daily_Data!$E:$E))),"")

    Thank You

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Ignore N/A in INDEX MATCH sum

    You're welcome.

+ 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? Ignore blank rows - (rows without values)
    By jgray in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-26-2015, 01:12 PM
  2. Ignore Blanks for INDEX/MATCH with multiple criteria search
    By Stephen23 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-15-2015, 09:14 AM
  3. 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
  4. Replies: 0
    Last Post: 11-05-2014, 10:54 AM
  5. [SOLVED] Ignore if NA in index/match
    By anon in forum Excel General
    Replies: 5
    Last Post: 06-16-2014, 09:32 AM
  6. [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
  7. [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

Tags for this Thread

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