+ Reply to Thread
Results 1 to 4 of 4

#N/A in index match

  1. #1
    Registered User
    Join Date
    11-11-2019
    Location
    Earth
    MS-Off Ver
    2016
    Posts
    2

    #N/A in index match

    Hi there
    Could someone pls help me withe following:

    Odd Even
    1 2
    3 4
    5 6
    7 8
    9 10

    In cell F1 i have the following function to show the matching number entered by the user in E1.
    =IFERROR(INDEX(A2:A5,MATCH($E$1,B2:B5,0)),INDEX(B2:B5,MATCH($E$1,A2:A5,0)))

    this works but when a non listed number is entered or blank in cell F1, it shows #N/A.
    How could I fix or perhaps have a shorter function that meet the purpose.
    Excuse my ignorance, my 1st post!
    Aib

  2. #2
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: #N/A in index match

    You can add IFERROR over your old formula.

    =IFERROR( IFERROR(INDEX(A2:A5,MATCH($E$1,B2:B5,0)),INDEX(B2:B5,MATCH($E$1,A2:A5,0))) , "" )

    Regards.

  3. #3
    Registered User
    Join Date
    11-11-2019
    Location
    Earth
    MS-Off Ver
    2016
    Posts
    2

    Re: #N/A in index match

    it worked. U're a champion, thanks heaps Menem

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: #N/A in index match

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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] INDEX+MATCH instead of VLOOKUP+MATCH, why is INDEX a better choice and how to re-write?
    By Renejorgensen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2016, 10:54 AM
  2. [SOLVED] Index / Match - match 3 input values and return the results from the index
    By t83357 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2016, 07:34 PM
  3. [SOLVED] Match-Index in stead of Index-Match lookup Array among Arrays
    By Numnum in forum Excel General
    Replies: 2
    Last Post: 10-15-2015, 02:08 PM
  4. INDEX MATCH MATCH/OFFSET MATCH MATCH with named ranges
    By Andrew-Mark in forum Excel General
    Replies: 3
    Last Post: 02-27-2015, 10:56 PM
  5. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  6. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  7. Replies: 3
    Last Post: 05-02-2013, 01:31 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