+ Reply to Thread
Results 1 to 8 of 8

hide #N/A error

  1. #1
    Registered User
    Join Date
    05-13-2010
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    90

    hide #N/A error

    Hello,

    I am using an IF Vlookup and i am trying to hide the #N/A error and nothing would work. (I want to import the data to a program that cannot read the #N/A)

    This is the code

    =IF(VLOOKUP(A17,'MT4 Paste'!$A$3:$B$15,2,FALSE)>0,VLOOKUP(A17,'MT4 Paste'!$A$3:$B$15,2,FALSE),0)

    or

    =IF(D17=0,VLOOKUP(A17,'MT4 Paste'!A3:B30,2,FALSE),0)

    (doesnt matter which of the 2 , if i will be able to hide it for 1 i will do it for the rest as well)

    I really have to get rid of the #N/A ...

    Couldnt make it with conditional formating.
    I also tried the ISNA, ISERROR but i cannot combine the 2 IFs, i always get an error.

    Any ideas??

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: hide #N/A error

    Maybe

    =IF(D17=0,IF(ISNA(VLOOKUP(A17,'MT4 Paste'!A3:B30,2,FALSE)),"",VLOOKUP(A17,'MT4 Paste'!A3:B30,2,FALSE)))


    Hope this helps

  3. #3
    Registered User
    Join Date
    05-13-2010
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    90

    Re: hide #N/A error

    Still #N/A unfortunatelly .

    It doesn't gives me any errors but the #N/A is still there

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: hide #N/A error

    Can't explain that, it works on my test sheet.

    Is it possible that the error is in your source sheet and #N/A is a valid result?

  5. #5
    Registered User
    Join Date
    05-13-2010
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    90

    Re: hide #N/A error

    It returns #N/A because it cannot find the value that i asked it to find(A17 in this case).

    How can the source sheet have an error? There are just data there.

    I am trying to make it return 0 or an empty cell if it doesnt find the data.

    Thanks for the try anyway

  6. #6
    Forum Contributor day92's Avatar
    Join Date
    04-20-2010
    Location
    Los Angeles
    MS-Off Ver
    Excel 360
    Posts
    600

    Re: hide #N/A error

    tsioumiou please post some sample data with this error so we can better understand your issue.

  7. #7
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    Re: hide #N/A error

    try putting () around the vlookups.

    =IF((VLOOKUP(A17,'MT4 Paste'!$A$3:$B$15,2,FALSE))>0,(VLOOKUP(A17,'MT4 Paste'!$A$3:$B$15,2,FALSE)),0)

  8. #8
    Forum Contributor
    Join Date
    09-23-2008
    Location
    Mexico
    Posts
    200

    Re: hide #N/A error

    Try something like this:
    =IF(COUNTIF(B$2:B$7,B23),VLOOKUP(B23,B$2:D$7,2,0),"")

+ 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