+ Reply to Thread
Results 1 to 8 of 8

#N/A Error in Array Formula

  1. #1
    Registered User
    Join Date
    03-15-2010
    Location
    london , england
    MS-Off Ver
    Excel 2007
    Posts
    8

    #N/A Error in Array Formula

    Hi,

    I am using the following array formula to copy certain text from another cell:

    =INDEX(E1:E100,MATCH(1,IF(A1:A 100=Selections!J4,IF(ISNUMBER(MATCH(E1:E100,{"F ","U"},0)) ,1)),0))

    I am getting the #N/ A error in the cell when the source cell contains something other than "F" or"U". I have tried to wrap the ISERR command around the formula but this does not seem to work. Is there another way of getting rid of the #N/A and just leaving a blank cell?

    Thanks,

    James

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

    Re: #N/A Error in Array Formula

    Did you try IFERROR? As in:

    =IFERROR(INDEX(E1:E100,MATCH(1,IF(A1:A 100=Selections!J4,IF(ISNUMBER(MATCH(E1:E100,{"F ","U"},0)) ,1)),0)),"")
    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
    Registered User
    Join Date
    03-15-2010
    Location
    london , england
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: #N/A Error in Array Formula

    Thanks for the quick response. I hadn't tried that - still learning Excel - but have done so now. It gives the #NAME? error message this time. Any other ideas?

    Thanks,

    James

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

    Re: #N/A Error in Array Formula

    You are using XL2007?

    if not, then what kind of values are your supposed to return from column E, numbers or text?

  5. #5
    Registered User
    Join Date
    03-15-2010
    Location
    london , england
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: #N/A Error in Array Formula

    No we're still on 2003 here.

    The content of the source cell will be either a letter (including F and U) or blank.

    Thanks,

    James

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

    Re: #N/A Error in Array Formula

    tRY:

    Please Login or Register  to view this content.
    Confirmed with CTRL+SHIFT+ENTER

  7. #7
    Registered User
    Join Date
    03-15-2010
    Location
    london , england
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: #N/A Error in Array Formula

    That works perfectly. Thanks again for your help.

    James

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

    Re: #N/A Error in Array Formula

    Great!

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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