+ Reply to Thread
Results 1 to 3 of 3

Need help getting an index/match function to value other than #N/A when no data present

  1. #1
    Registered User
    Join Date
    05-22-2017
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    2

    Need help getting an index/match function to value other than #N/A when no data present

    Whats's up? Need some help working with a index match function that I am using to aggregate data from 4 separate columns and average them together as a total. The problem is that for half of the names I am searching, they have not data in the last 2 columns to be found and index/match simply returns N/A as it should because of a lack of data.

    I need to find out how to have the function return something other than #N/A to me if the cell it is searching for has no data, it can return a 0 or simply just skip that look up in the total calculation.

    Here is a copy of the formula I am using at the moment.

    =AVERAGE(INDEX(C:C,MATCH(AO5,B:B,0)),INDEX(K:K,MATCH(AO5,J:J,0)),INDEX(S:S,MATCH(AO5,R:R,0)),INDEX(AA:AA,MATCH(AO5,Z:Z,0)))

    For the players that have data in all 4 look up columns, this formula works exactly as intended but need to figure out how to get it to ignore the cells with no data for half of the list. Basically the 3rd and 4th index/match functions are the ones in question because everyone has data for the first 2 columns, it is only in columns, S & AA that I am having an issue because there is no reference for half of the field list and it returns N/A but i still need the average from the 1st arrays for these players.

    Any help is much apprenticed, thanks community.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Need help getting an index/match function to value other than #N/A when no data presen

    Perhaps


    =AVERAGE(IfError(INDEX(C:C,MATCH(AO5,B:B,0)),INDEX(K:K,MATCH(AO5,J:J,0)),INDEX(S:S,MATCH(AO5,R:R,0)),INDEX(AA:AA,MATCH(AO5,Z:Z,0)),"")
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    05-22-2017
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    2

    Re: Need help getting an index/match function to value other than #N/A when no data presen

    appreciate the attempt but keeps coming back with "too many arguments in this function"

+ 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. Data Sorting for LTn & LTa using INDEX and MATCH function
    By manoj_b118 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-23-2015, 05:34 AM
  2. Data Sorting using INDEX MATCH function
    By manoj_b118 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-22-2015, 10:54 AM
  3. Problems applying INDEX-MATCH-MATCH function on other data
    By LennartB in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-13-2015, 05:33 AM
  4. index function error using match function to get data from a cell in an array
    By mabildgaard in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-17-2013, 02:21 AM
  5. help with index(match) function to lookup data
    By arekkusu03 in forum Excel General
    Replies: 3
    Last Post: 09-06-2012, 02:50 AM
  6. Compare data with Index & Match function
    By herukuncahyono in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-27-2010, 02:17 AM
  7. Index Match vs D Function to summarize Data
    By ChromeDome in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-02-2008, 05:24 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