Closed Thread
Results 1 to 13 of 13

How do I hide #N/A?

  1. #1
    Registered User
    Join Date
    05-29-2005
    Posts
    6

    How do I hide #N/A?

    Hi,

    I have a large spreadsheet with a lot of formulas. A lot of cells end up with the value #N/A. Is there a way to hide that value #N/A (ie so that it looks like there is nothing in the cells)? I hope I'm not displaying my ignorance here. I have a feeling it's possible and probably quite simple.

    Thanks

    Tim

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good morning MelbTim

    The standard way of trapping errors using formulae is using the ISERR() function (which doesn't work with the #N/A error) and the ISERROR() function. In general if you have a formula A1/B1 that is causing the error then this formula in it's place would return 0:

    =IF(ISERROR(A1/B1),0,A1/B1)

    Really, you need to include details of what's causing the error - for example if it's a lookup formula, it may be easier to solve.

    HTH

    DominicB

  3. #3
    Registered User
    Join Date
    05-29-2005
    Posts
    6

    Thanks for the response Dominicb

    Each cell has a VLOOKUP function in it. It automatically takes data from another spreadsheet and when it runs out of data it starts returning #N/A. It's really for neatness of presentation that I want to eliminate it as I typically end up with most of the screen filled with #N/A.

    Thanks for any further suggestions you can offer.

    Tim

  4. #4
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Hi MelbTim

    Can you give me an example of one of the formulae that returns an error - I need to see how many parameters you're using.

    DominicB

  5. #5
    Registered User
    Join Date
    05-29-2005
    Posts
    6
    Thanks again for your help.

    This is what is in cell B12 (other cells have only marginally different formulae):

    =VLOOKUP($A12,'[referraldata.xls]autodata(Bei)'!$A$6:$I$10000,2,0)

    Cell A12 contains the number 12. The first column of the other spreadsheet (which holds all the source data) doesn't contain the value 12 which generates the #N/A response.

    I hope this helps.

    Thanks again.

    Tim

  6. #6
    Bill Martin -- (Remove NOSPAM from address)
    Guest

    Re: How do I hide #N/A?

    MelbTim wrote:
    > Hi,
    >
    > I have a large spreadsheet with a lot of formulas. A lot of cells end
    > up with the value #N/A. Is there a way to hide that value #N/A (ie so
    > that it looks like there is nothing in the cells)? I hope I'm not
    > displaying my ignorance here. I have a feeling it's possible and
    > probably quite simple.
    >
    > Thanks
    >
    > Tim


    Some people just replace the N/A with 0 or blank as Dominic describes.
    Personally I don't like that since it can be misleading in some cases,
    but a lot of people do like it.

    My solution is generally to just use conditional formatting so that if
    #N/A is displayed in a cell the text is formatted as light grey and
    perhaps a smaller font than the rest of the page. I can still see that
    the cells are N/A, but they're not so distracting as they are in normal
    font.

    Good luck....

    Bill


  7. #7
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    Hi MelbTim,

    When you use VLOOKUP and the search item is not present in the table, it returns #N/A. To avoid this, you could use some thing like:
    =IF(ISERR(VLOOKUP($A12,'[referraldata.xls]autodata(Bei)'!$A$6:$I$10000,2,0)),VLOOKUP($A12,'[referraldata.xls]autodata(Bei)'!$A$6:$I$10000,2,0),"")

    This will put a blank space in the cell where you now get the #N/A

    Mangesh

  8. #8
    Bobbie
    Guest

    Re: How do I hide #N/A?

    OK, so I'll assume that you know why the errors are there, and it is OK
    with you for them to be there. If that is the case, and you are just
    looking to hide them, a little trick I use is the change the color of
    the font for those cells to white. You will still be able to see the
    contents of the cell in the function bar when you select one of the
    cells with the error in it. But you won't see the errors when you've
    selected any other cell on the worksheet or when you print the
    worksheet...assuming you use regular, white paper. I use this little
    trick when I want top have a side calculation just for my own purposes.

    But, as Dominicb said above, it is best to understand what is actually
    causing the error and determine how to correct it appropriately.

    Maybe this will help..
    bb


  9. #9
    Registered User
    Join Date
    05-29-2005
    Posts
    6

    Removing #N/A

    Thank you all so much for your help. It's very much appreciated.

    Cheers

    Tim

  10. #10
    Peo Sjoblom
    Guest

    Re: How do I hide #N/A?

    =IF(ISNUMBER(MATCH($A12,'[referraldata.xls]autodata(Bei)'!$A$6:$A$10000,0)),VLOOKUP($A12,'[referraldata.xls]autodata(Bei)'!$A$6:$I$10000,2,0),"")


    --
    Regards,

    Peo Sjoblom

    (No private emails please)


    "MelbTim" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Thanks again for your help.
    >
    > This is what is in cell B12 (other cells have only marginally different
    > formulae):
    >
    > =VLOOKUP($A12,'[referraldata.xls]autodata(Bei)'!$A$6:$I$10000,2,0)
    >
    > Cell A12 contains the number 12. The first column of the other
    > spreadsheet (which holds all the source data) doesn't contain the value
    > 12 which generates the #N/A response.
    >
    > I hope this helps.
    >
    > Thanks again.
    >
    > Tim
    >
    >
    > --
    > MelbTim
    > ------------------------------------------------------------------------
    > MelbTim's Profile:
    > http://www.excelforum.com/member.php...o&userid=23847
    > View this thread: http://www.excelforum.com/showthread...hreadid=375130
    >



  11. #11
    Registered User
    Join Date
    06-23-2005
    Location
    Buenos Aires
    Posts
    1

    ISNA Formula

    Just use the "ISNA" formula.
    It returns TRUE if the value asked is #N/A. So in that case, just ask if it is #N/A and replace the true response for whatever you want.


    Hope it helps!

    regards

    Matías

  12. #12
    Registered User
    Join Date
    07-30-2009
    Location
    Brisbane Australia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: How do I hide #N/A?

    Seems like if you have a formula enter "" where there was an #N/A then that cell won't be regarded as blank. This in turn can involve problems when drawing charts. Another reason for changing colour instead. See Excel help HP10070515 for how to do that.

  13. #13
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How do I hide #N/A?

    Not sure to whom you are addressing this in a four-year old thread. If there's a question hiding in your post, please start a new thread.
    Entia non sunt multiplicanda sine necessitate

Closed 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