+ Reply to Thread
Results 1 to 6 of 6

IF ISNA and INDEX MATCH together

  1. #1
    Registered User
    Join Date
    06-23-2005
    Posts
    86

    IF ISNA and INDEX MATCH together

    Hi I am using this formula which works fine, except when the amount isnt there in which case it returns an #N/A


    =INDEX('Trade P'!A$4:Z$46,MATCH(A15,'Trade P'!A$4:A$46,0),MATCH("Sum of "&Cover!M$84,'Trade P'!A$4:Z$4,0))


    I have previously used =IF(ISNA to get around this problem but I cant seem to put the two together. Can you help?

    Basically I want to use the top formula but if the result is #N/A i want it to put a zero.

    Any help really appreciated.
    Thanks
    cd:

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: IF ISNA and INDEX MATCH together

    easiest way...

    Please Login or Register  to view this content.
    eDIT:

    Added what_if_true = 0 condition
    Last edited by NBVC; 02-11-2009 at 10:18 AM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: IF ISNA and INDEX MATCH together

    If you know that it is for sure one of the 2 Matches always causing the NA... ie. if there is an NA, it is because the row match is always the one not found...then you can use something like:

    Please Login or Register  to view this content.
    Likewise, if it is the Column Match that is the one that causes the N/A

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: IF ISNA and INDEX MATCH together

    If you're result is always to be numerical (ie 0 for Error else INDEX result which is numerical) there is a slightly different approach you can take which avoids use of IFS and NA altogether:

    Please Login or Register  to view this content.
    Those running 2007 could of course use:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-23-2005
    Posts
    86

    Re: IF ISNA and INDEX MATCH together

    wow

    Thanks everybody.

    I'll give them all a try

    Thanks
    Mark

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: IF ISNA and INDEX MATCH together

    If you're result is always to be numerical (ie 0 for Error else INDEX result which is numerical) there is a slightly different approach you can take which avoids use of IFS and NA altogether:
    Maybe, slightly more efficient... but the If/Na or If/Isnumber approach is more universal... (accomodates text and numerics) and is easier to understand... especially years from now, when one looks back to see how the solution came to be...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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